Better HN
topnewbestaskshowjobs
Log inSign up

panthomakos

49 karma · joined Mar 23, 2011 (15y ago) · 29 submissions

Submissions

1.

Time to Learn React – Web Guild Week at Strava(medium.com ↗)

2 points · by panthomakos · 8y ago · discuss

2.

Engineering Interviewing at Strava(medium.com ↗)

5 points · by panthomakos · 9y ago · 2 comments

3.

A Brief History of Jams at Strava(medium.com ↗)

1 points · by panthomakos · 9y ago · discuss

4.

How Strava Merges Code (Butler Merge Queue)(labs.strava.com ↗)

5 points · by panthomakos · 9y ago · discuss

5.

(Ruby/Rails) Benchmark Your Bundle(ablogaboutcode.com ↗)

3 points · by panthomakos · 14y ago · discuss

6.

Overwriting Console Output in Ruby(ablogaboutcode.com ↗)

2 points · by panthomakos · 14y ago · discuss

7.

Rails - Respect the Active Record(ablogaboutcode.com ↗)

5 points · by panthomakos · 14y ago · discuss

8.

Understanding the Law of Demeter(ablogaboutcode.com ↗)

1 points · by panthomakos · 14y ago · discuss

9.

Clarifying The Ruby GIL(ablogaboutcode.com ↗)

2 points · by panthomakos · 14y ago · discuss

10.

A Simple Rails Boot Time Improvement(ablogaboutcode.com ↗)

3 points · by panthomakos · 14y ago · discuss

11.

The & Operator in Ruby(ablogaboutcode.com ↗)

1 points · by panthomakos · 14y ago · discuss

12.

Courteous Meta-Programming in Ruby(ablogaboutcode.com ↗)

2 points · by panthomakos · 14y ago · discuss

13.

Object Oriented Ruby and Rails in the Complex World of Gems(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

14.

Using Rails Observers to write Faster Tests and Simpler Models(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

15.

Dynamic Rescue Clause in Ruby(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

16.

New Version of Sham Ruby Gem(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

17.

After_create bug in Rails 3(ablogaboutcode.com ↗)

5 points · by panthomakos · 15y ago · 1 comment

comment 15y ago · link · parent

You make a good point and thanks for the performance link. I should have been more clear. The first and third examples are only comprable in the way they create closures - which is equivalent, but they are meant to demonstrate different things. The first demonstrates nested callbacks while the last example demonstrates named functions that are organized by closures.

comment 15y ago · link · parent

Absolutely - the code can be re-factored - but your example doesn't demonstrate that you can used named functions/callbacks within closures to further organize code.

comment 15y ago · link · parent

I think you make good points. The reason I used these simple examples was only for simplicity and to illustrate that named function callbacks can be used within closures rather than littering your global space with function declarations. More complex examples would probably have taken away from the core point of the article.

comment 15y ago · link · parent

The closures aren't meant to be more performant, they simply allow you to separate your code. It's not fair to compare the unnamed function example with the closure example, since the first doesn't create closures. If it did - which would be necessary to create both functions - the examples would be equally performant.

comment 15y ago · link · parent

But this is happening anyways with unnamed functions - they will be defined any time the top level function is called. The difference is really just whether or not you are naming your functions.

23.

Avoiding Nested Callbacks in JavaScript(ablogaboutcode.com ↗)

15 points · by panthomakos · 15y ago · 23 comments

24.

A Faster YARD Documentation Server with Guard-Yard(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

25.

How Javascript Loading Works – DOMContentLoaded and OnLoad(ablogaboutcode.com ↗)

3 points · by panthomakos · 15y ago · discuss

26.

Recap and Thoughts on Facebook Deploy/Push Process(ablogaboutcode.com ↗)

2 points · by panthomakos · 15y ago · discuss

27.

Spork, RSpec, Sham and Caching Classes(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss

28.

ActiveRecord 3.1 - Mass-Assignment Roles(ablogaboutcode.com ↗)

16 points · by panthomakos · 15y ago · 4 comments

29.

Spork Testing Tip - Caching Classes(ablogaboutcode.com ↗)

1 points · by panthomakos · 15y ago · discuss