Why was this written like this? It makes no sense. I’ll git blame it and ask them what’s going on. Oh it’s me…
- 0 Posts
- 144 Comments
fidodo@lemm.eeto
Technology@lemmy.world•Drivers Co-op is doing a kickstarter to expand their Uber alternative thats owned by the drivers.English
9·2 years agoIsn’t new York flooded right now?
I just peeked at the docs and right off the bat I don’t like how they have conflicting attributes like hx-get and hx-post. What happens if both are set at the same time? Why not just have hx-method?
fidodo@lemm.eeto
Technology@lemmy.world•Space Drugs Factory Denied Reentry to Earth - The Air Force and the FAA denied permission for Varda Space's capsule to return and land on EarthEnglish
2·2 years agoBecause it’s the country the company is based in.
By the end of the meeting you have 10 more questions and no answers and more meetings to discuss the new questions
fidodo@lemm.eeto
Technology@lemmy.world•Calif. passes strongest right-to-repair bill yet, requiring 7 years of partsEnglish
3·2 years agoCan you be more specific? I’d like to know what it’s missing.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoYes, it’s still a transpiler, I’m not saying it isn’t, but what I mean is that it doesn’t add any functionally specific to the typescript language. There’s a transpiler for TS that doesn’t even do any type checking at all and just does the type stripping and back porting. But of course, that’s not why people use typescript. All the features that are actually important to typescript could be done through a linter instead. If type annotations were added to JavaScript you could get most of typescript’s features with linting rules and just handle back porting in a more standard way.
fidodo@lemm.eeto
Technology@lemmy.world•The Inventor Behind a Rush of AI Copyright Suits Is Trying to Show His Bot Is SentientEnglish
5·2 years agoIt’s basically a book you can talk to. A book can contain incredibly knowledge, but it’s a preserve artifact of intelligence, not intelligence.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
1·2 years agoIt can be overkill if you need something simple that doesn’t match next’s defaults, but if the default settings of next work for your use case I found the base project setup very simple to use.
Have you tried using an auto formatter? Let’s you write code however and fixes the structure automatically on save. It’s way easier for me to write curly braces then hit ctrl+s than have to select multiple lines manually and tab in and out. I feel the biggest gains I’ve made in productivity came after I learned to embrace tooling.
I was taught java my first semester. I certainly hope no schools teach dynamic languages in the first semester.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
3·2 years agoTo be perfectly frank, I’ve only seen the drama on social media platforms. Outside of this one library Ive hardly seen anyone trying to fight typescript in the professional community.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoI view it more like a powered exoskeleton around a blob fish. IMO static typing is way more valuable than strong typing and I’d take static typing only over strong typing any day if I can only choose one.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoI don’t see any practical use case for it as is as anyone wanting to use them would want the full TS feature set anyways, but I could see it being a good step forward for more meaningful features to be added in the future.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
3·2 years agoCurious if you’ve used next with react. React itself has a scope rendering design goal and leaves the rest of the app to the community, and next sets up all the stuff around it for you and I think they did a really great job with the defaults they close, and it’s still fully extendable.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoMaybe I’m just too used to it, but with next.js static site generation I find react to also work really well for simple sites too. If you’re not dealing with state, react is basically just functions that return templated html. IMO it’s pretty sleek for static websites since tsx let’s you do basic templating with functions.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoBest practices are pretty straight forward in the typescript community. Frankly I think all the serious professionals from the JavaScript community just went to TS so the people left over that didn’t migrate are well…
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
2·2 years agoWhy would you not want to be using a rendering library? Your code is basically storing your application state in the dom which will turn into a horrible mess as soon as you reach any actual level of complexity. I know first hand. I’m traumatized from having to maintain large jquery code bases in the 00s. No serious professional writes code like this anymore.
Also, your vanilla code isn’t modern. It should look more like this:
document.querySelector("#element").classList.toggle("hidden")I could see not wanting to use a rendering library if you’re building a simple site on top of basic static HTML, but that’s not a serious discussion for industry professionals, and even still, jQuery is such a heavy dependency for saving some characters. If you find yourself using it so much you need the extra convenience then your site is already complicated enough that you should be using a rendering library with state management instead.
fidodo@lemm.eeto
Programmer Humor@programming.dev•Which side are you? Javascript or Typescript
3·2 years agoEven if you do, you can still use most modern js features with transpilation.

And doesn’t this basically admit to the crime?