Joined July 2012
·
Posted to
JavaScript getElementById Not Required
over 1 year
ago
While this may work, it is so terrible for code maintenance that I would never consider it.
Posted to
Why assertions are so powerful
over 1 year
ago
Well, TDD could be seen as a more sophisticated way of expressing your assumptions on your code. I use both and I think they play very well together.
Assertions can express very small assumptions that you cannot reach so easily by tests. To me it is more of a local tool that is great at making code another slight pinch more reliable, wheras TDD is maybe the big paradigm that supersedes the idea.
Achievements
129 Karma
1,464 Total ProTip Views
Komodo Dragon
Have at least one original repo where Java is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Lab
Have at least one original repo where C# is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Honey Badger
Have at least one original Node.js-specific repo
T-Rex
Have at least one original repo where C is the dominant language
Epidexipteryx 3
Have at least three original repo where C++ is the dominant language
Epidexipteryx
Have at least one original repo where C++ is the dominant language
There is lots of other solutions which are IMHO nicer as they do not require global variables with static storage duration.
For example https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Type_Safe_Enum