148 reputation
5
bio website
location Auckland, New Zealand
age 24
visits member for 2 years
seen 2 hours ago

2d
comment Are there any benefits of using this extra variable in the for loop annotation?
Interesting example. Thank you for sharing.
2d
awarded  Popular Question
2d
answered How do I organizing 2 different projects with shared code
2d
comment S3 image urls in database
@the_ You can consider creating a product record as soon as your users enters the page. This way you have an ID nice and early. You can have a process which cleans out the DB from not finished products.
2d
comment Are there any benefits of using this extra variable in the for loop annotation?
I think we are having a communication breakdown. I'm not arguing with you. For a big array it makes total sense and I would definitely use it. But if there are 5-20 items...
2d
comment Are there any benefits of using this extra variable in the for loop annotation?
I agree. It's good to know about this option, but I probably wouldn't use it very often, unless I get a similar example to your sql query. Thank you☺
2d
comment Are there any benefits of using this extra variable in the for loop annotation?
Thank you. This is a good answer. I have added performance test for javascript sample if anybody is interested: jsperf.com/ninforloop
2d
awarded  Editor
2d
accepted Are there any benefits of using this extra variable in the for loop annotation?
2d
revised Are there any benefits of using this extra variable in the for loop annotation?
Added performance test
2d
asked Are there any benefits of using this extra variable in the for loop annotation?
Jan
26
awarded  Scholar
Jan
26
comment Design Pattern to parse array of objects
Thank you very much☺
Jan
26
accepted Design Pattern to parse array of objects
Jan
26
comment Design Pattern to parse array of objects
Thank you very much for the suggestion, I appreciate it. Would this factory class used to parse objects of one type only or would you use the same factory class for all Services within the application? My application is pretty small, but I would like to know the best practices.
Jan
26
awarded  Student
Jan
26
asked Design Pattern to parse array of objects
Jan
8
awarded  Supporter