Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
dan-pud8586yI'm guessing you don't have many unit tests? Doing TDD those errors are very unlikely to happen.
-
@dan-pud you got it right, I'm new to all that web dev thing, I try to understand before I actually go into real world example where I do unit tests
-
dan-pud8586y@gitpush doing TDD is a great way to learn. Put your scenario in a test, given-when-then is a good way to structure it, then write as little code as possible to make it pass. Then repeat. Then you can play around with implementation knowing what works and what doesn't.
-
@dan-pud The down side for me is not that I don't understand TDD but I'm not convinced with it, I need to try it first just to see it, observe its results and actually experience its benefits. It is next on my list but for now I'll be going the old school way writing code and hoping I do all unit tests lol
However; if you do know of any resources that could help me learn TDD faster it would be great :D
The joy of learning typescript!
One thing I hated about Javascript, fucking runtime errors when I mistakenly fuckup with a typo or assign wrong param to my vars
random
just random thoughts