247 reputation
26
bio website
location Boulder, CO
age 32
visits member for 4 years, 3 months
seen 2 days ago

Web Developer


Feb
11
comment Is it better to call a function multiple times, or to assign a variable multiple times and call the function once?
I think it depends on the language, the intent of changing the variables as such, and how likely you think you are going to need to change the arg's to the function. Many times, you could easily build a small hash/map object that has each of the conditions you need, keyed to that condition and then just call the variable with the value of the map. It doesn't really slim down the content, but it organizes and reduces the chance that you would miss a function call if you later need to edit the call.
Sep
24
awarded  Autobiographer
Feb
27
awarded  Caucus
Feb
27
awarded  Constituent
Oct
31
awarded  Critic
Jan
11
awarded  Yearling
Aug
2
answered What are some reasonable arguments in favor of closed source software?
May
31
awarded  Citizen Patrol
May
31
answered I've been programming in one language for many years. Is this career suicide?
Feb
17
answered What to do as a new team lead on a project with maintainability problems?
Feb
17
awarded  Supporter
Jan
20
awarded  Teacher
Jan
14
answered Do most programmers copy and paste code?
Jan
11
answered Should a c# dev switch to VB.net when the team language base is mixed?