I interpreted this as a criticism of the sort of people who make posts for the ‘brain crack’ of maybe learning to code one day in place of putting the actual work in to learn.
- 0 Posts
- 22 Comments
Typically when creating API interfaces you’d be better off marking the inputs as unknown, and then using something like Zod to validate the types
I love how Gemini is so sorry that it can’t help you kill children
jpeps@lemmy.worldto
Mildly Infuriating@lemmy.world•I'm locked out of my 6 year old Chipotle account because they now say my email address is invalid when I login. Here is me asking for their help:English
2·2 years agoTo be fair nor do most email providers! It’s in the spec, though.
jpeps@lemmy.worldto
Mildly Infuriating@lemmy.world•I'm locked out of my 6 year old Chipotle account because they now say my email address is invalid when I login. Here is me asking for their help:English
4·2 years agoHere’s two: you can have multiple @s forming relays in an email address, and you can also break all the rules around dots and spaces if you put quotes around the local part, eg ".sarah.."@emails.com
jpeps@lemmy.worldto
Mildly Infuriating@lemmy.world•Spotify doesn't allow podcast ratings unless you use the mobile appEnglish
1·2 years agoShoutout to Pocket Casts
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
1·2 years agoHaha well that’s fair enough then!
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoI think that’s fine if that’s how you like to work on your own, but I’d challenge anyone to do that and write better documentation while also getting a team or whole business to do the same. A huge strength of TS is that it gives people no choice but to document their work.
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoFor what? If they took it away, the source code would still be there if someone wanted to fork it. Not to mention removing TypeScript from an application is relatively trivial.
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
4·2 years agoI can understand that. Does it’s open source status not change anything for you?
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
91·2 years agoI wasn’t going to say it, but yes, 100% 😂
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
1·2 years agoIt’s very typical to import code from other files, but it’s also typical to have a minification step that essentially performs what you’re saying, compressing the files down into something more optimal. In fact more advanced solutions essentially stream the minium amount to users as needed, and compute as much as possible in the server side.
To be honest, I’d bet a lot than by not utilising larger libraries and their standardised functions, your code has a good chance of running slower. Besides, for the typical computer and network capabilities today, there’s a lot of wiggling room.
That said, for absolute tip top of performance (where experience is a trade off) you can find fun things like this, where groups do have to push for the upmost performance.
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
43·2 years agoRoR will always have a special place in my heart, but yeah… DHH sure does have opinions. What possible justification is there for removing it when it’s already there? Guess someone could just shift the types out to DT.
Edit: So I read his blog post about it. He’s dropping it because he just doesn’t like it and he’s allowed to not like it. Okay then 🤷
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
212·2 years agoEven alone I find it indespensible. I find it’s mainly useful for writing code correctly the first time around.
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
1135·2 years agoWhat Typescript drama is there? It’s fantastic. It’s been an industry standard for years. In my anecdotal experience the only people that hate it are juniors who did pure JS at their bootcamp and seniors that have refused to learn anything for the last 5 years.
jpeps@lemmy.worldto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
13·2 years agoYou do you, but no ECMA6 stuff? I don’t use a lot of ECMA6 either because JS is at ECMA14 and continues to change. I can’t imagine reinplementing stuff on every project you work on, though perhaps your work is very different to mine. That said, treeshaking has really brought down the cost of imports and there are few occasions where using a custom solution over a reliable third party library is a good option. Curious to hear your thoughts.
jpeps@lemmy.worldto
Mildly Infuriating@lemmy.world•"Sponsored recommendations": I pay for Spotify Premium, and yet somehow I'm still the product?English
69·2 years agoI agree with you, but you may be missing the point - this recommendation is sponsored, so likely it wouldn’t have been recommended unless the artist paid.
jpeps@lemmy.worldto
Mildly Infuriating@lemmy.world•Somehow, TikTok is sending me notifications even though I don't have the app. And in order to disable them I have to install it.English
8·2 years agoIt’s tough for me to accept that these poor people still exist haha. I remember back in 2005 or so clearing upwards of 5 toolbars from various relatives’ browsers, but not so much since. I suppose notification management is the modern equivalent.

We need to know! Using GitHub at the moment and this is driving me fucking wild.