I keep seeing posts of some drama with typescript. What happened?

You are viewing a single thread.
View all comments View context
54 points

Same boat: people who hate typescript and therefore ensuring type safety probably also hate unit tests because they are too inconvenient to awesome rockstar developers.

permalink
report
parent
reply
32 points
*

One hundred percent this. It reeks of the kind of ego you get from devs that think their code is so perfect it’s inherently easily maintainable.

I know junior devs that don’t struggle with types and unit testing—any dev that thinks they’re too good for either is immediately sub-junior in my assessment, because they’re clearly unable to write code intended to be maintained by a team.

permalink
report
parent
reply
27 points

Lmao I’ve literally had conversations with people who have asked me to not be as rigorous with unit tests because you have to change some tests when you make a modification to the business logic.

Bro: that’s the fucking point.

permalink
report
parent
reply
12 points

Can’t be a 10x developer if you keep spending your time writing unit tests.

permalink
report
parent
reply
5 points

I know you’re joking, but this isn’t even true. The feedback loop that you get from pre-written tests in watch mode is pretty much instantaneous. This helps me to arrive at the correct solution much more quickly than trying to validate each case as I go.

permalink
report
parent
reply
6 points

I hate it’s syntax. I have no problem with typed languaged like java and c#

permalink
report
parent
reply
6 points

People use rockstar in production?

https://codewithrockstar.com/

permalink
report
parent
reply
3 points

I love unit tests but I hate the eternal struggle behind them.

We should make unit tests so we can tell when the build runs that the app is going to be consistent

Everyone cheers

We lose a sprint setting up unit tests

Oh this one test just went yellow, somebody spends a few hours figuring it out and finds that it’s a bug in the unit test. No no we’re good That’s just a bug in the unit test we’ll plan to fix that in the next Sprint.

Oh look now this unit test is going red we’re blocked. 2 hours later they find out that it’s a real problem but it’s not so bad that it overrides current feature work. Well we’re going to need to override that and we’ll have to fix it in the next sprint.

Unit test failures slowly degrade in priority to try to get feature work done. You end up with a backlog full of yellow and red known problems and no one pays any attention to you that tests anymore.

permalink
report
parent
reply
1 point

I think it’s more of a JSDoc > TS thing. I need to check the drama, but I don’t believe anyone would want to write vanilla JS without some type declarations…

permalink
report
parent
reply
9 points
*

I don’t believe anyone would want to write vanilla JS without some type declarations…

I really hate to burst your bubble, but that’s exactly what’s going on

permalink
report
parent
reply

Out of the loop

!outoftheloop@lemmy.world

Create post

A community that helps people stay up to date with things going on.

Community stats

  • 16

    Monthly active users

  • 114

    Posts

  • 2.4K

    Comments

Community moderators