10
gitpush
6y

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

Comments
  • 2
    I'm guessing you don't have many unit tests? Doing TDD those errors are very unlikely to happen.
  • 1
    @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
  • 1
    @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.
  • 0
    @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
  • 1
    The only thing I hate about javascript is its fucking single threaded.
  • 0
    @desirous I don't understand, can you please explain more
  • 0
    @KAS89 till now :S
    Do you know why?
  • 0
  • 0
    @KAS89 I was asking if you know why I don't know lol
  • 0
    @desirous do you have a library in mind that I can check?
  • 1
    @gitpush I still can't understand you. Lol
  • 1
    @KAS89 😂
Add Comment