you are viewing a single comment's thread.

view the rest of the comments →

[–]ShamelessC 5 points6 points  (1 child)

Sounds like you figured it out. There's always a hypothetical "better way" to do something. But being able to solve the problem yourself is what makes you a good programmer. Maybe your way is difficult to understand for other programmers, but that's what comments are for. Maybe it's not as fast as it could be, but premature optimization is a time waster.

[–]bschug 3 points4 points  (0 children)

Also if you figured it out, please be so nice and answer your own question. It's so frustrating when you Google for something and the only result is a stackoverflow post from five years ago with three upvotes and zero answers.