fidodo
@fidodo@lemm.ee
- Comment on Drivers Co-op is doing a kickstarter to expand their Uber alternative thats owned by the drivers. 1 year ago:
Isn’t new York flooded right now?
- Comment on Got laid off my first job out of college after three months, Help! 1 year ago:
It will be questioned, but you have a good explanation. The tricky part is explaining it elegantly. Hiring managers kinda glance at resumes so you should add a sentence at the end explaining that you were let off due to internal company reasons. You should also try and get a letter from the company explaining that it wasn’t for performance reasons. Even better would be to get letters of recommendation from your coworkers and manager. Hopefully they’ll be extra nice to you due to your situation, but you need to be proactive about it.
- Comment on 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 Earth 1 year ago:
Because it’s the country the company is based in.
- Comment on Calif. passes strongest right-to-repair bill yet, requiring 7 years of parts 1 year ago:
Can you be more specific? I’d like to know what it’s missing.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Yes, 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.
- Comment on The Inventor Behind a Rush of AI Copyright Suits Is Trying to Show His Bot Is Sentient 1 year ago:
It’s basically a book you can talk to. A book can contain incredibly knowledge, but it’s a preserve artifact of intelligence, not intelligence.
- Comment on The lengths we have to go to 1 year ago:
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.
- Comment on It's routine 1 year ago:
I was taught java my first semester. I certainly hope no schools teach dynamic languages in the first semester.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
To 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.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
I 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.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
I 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.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Maybe 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 html. IMO it’s pretty sleek for static websites since tsx let’s you do basic templating with functions.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Best 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…
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Why 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.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Even if you do, you can still use most modern js features with transpilation.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
TS is amazingly powerful when it comes to refactoring. When people say they don’t see how TS makes you more productive it just makes me think they never refactor their code.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
I feel like there’s no typescript drama, just JavaScript drama. Things are pretty happy in the TS community. I’ve been writing js code since it literally first came out. I’m definitely no js hater. In the early days js code bases quickly turned to spaghetti code, but I genuinely think the js community has done miracles turning what was essentially a super simplistic toy language into a seriously good production quality language. I’ve seen first hand how much work has gone into it, and while most of the js community has been great with embracing change for the better, there’s always been the niche of detractors against any change that adds complexity even when it makes coding safer and more productive.
I’ve always had a love hate relationship with JavaScript, but with typescript it’s really been just straight up love. Pretty much all the trouble I have with typescript has been due to external libraries that use types lazily or incorrectly, and even then there are solutions to add safety to your own codebase. Sometimes I run into some trouble with the type system itself, but it’s pretty much always because I’m doing something really complicated that would be hard in any type system. I’ve been working with typescript for years now and my code bases are some of the most solid ones in my company. Typescript is really safe as long as you’re actually using it and not telling the compiler to ignore types through using any or making unsafe assertions.
It makes no difference to me if other people prefer JavaScript. Any important js library will get ts support anyways through definitely typed, and if a library is so sloppy it can’t be typed well then it’s not a good library to use anyways. Having people proudly announce they only want to use JavaScript is also great for hiring. It easily tips me off on who not to hire.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
I really don’t get how people can feel more productive in JavaScript. With typescript the code practically writes itself. Sometimes when refactoring I’ll change a functions input and output signature and just fix compiler errors until it stops complaining, and the code just works without me having to really even think about what the code is doing.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
The transpilation that typescript does doesn’t really have anything to do with typescript, it’s just there because typescript wants to support the latest ecmascript features, so transpilation is necessary for that, but technically you could simply strip out the type info and have another transpiler like babel handle the backwards compatibility. I think there are a few minor exceptions to that, like enums. There was even a proposal to add some typescript types to native JavaScript that would be ignored by the interpreter and just act as comments.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
I’ve used JavaScript since its creation. I would describe typescript as JavaScript as it should have been. I’ve always actually liked JavaScript’s simplicity, but I’ve never liked its lack of type safety. At its core, JavaScript has a tiny conceptual footprint, and that’s actually pretty refreshing compared to other very complicated languages. But it was plagued with terrible implementations and the inherent messiness of dynamic typing. I’ve watched it evolve over the years and it’s improved beyond my greatest hopes. Between the advent of transpilation, tooling, and typescript, I’m very proud of where the language has gotten to. Having made websites in the 90s and 00s, I feel like people don’t realize how much work has gone into getting the ecosystem in a much better place.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Typescript doesn’t have strong typing but static typing still gets you really really far. It means you need to be more careful with your io and avoid dangerous type assertions, but I don’t think that’s a bad thing. Having used typescript an absolute ton, the only real jank I’ve encountered is from bad library typings that either use it lazily or incorrectly, but for code bases that use it through and through it has been smooth sailing, and having used both traditional static typed languages and dynamically typed languages, I really enjoy typescript’s type inference and structural typing. I think you should give it an honest try before judging it.
- Comment on According to Elon Musk’s own math, the company formerly known as Twitter has lost 90% of its value and could be worth just $4 billion 1 year ago:
And he’s blaming the anti defamation league…
- Comment on AI-generated child sex imagery has every US attorney general calling for action 1 year ago:
Shouldn’t that already be covered under revenge porn laws?
- Comment on I'll just sort it myself 1 year ago:
You can put any type of value in an array in JavaScript. You can have numbers, strings, booleans, arrays, and objects. So what should the default sort function sort by? Sorting by numbers makes sense, but what if it wanted to sort strings instead?
When you don’t know what value is in an array ahead of time you can’t assume how to sort it. When you’re controlling the program you can provide a sort function for the type of values you know will be in it, but when you’re writing the standard default sort function, there’s only one type that you can convert all the other types to safely and simply in the most predictable way, which is strings.
- Comment on They’ve grown up online. So why are our kids not better at detecting misinformation? 1 year ago:
Calling them psychologists is giving them too much credit, but you’re right that the companies trying to trick them are putting tons of resources into it.
- Comment on We should pick a few words to start intentionally misspelling to see when AI picks up on it 1 year ago:
That’s a lot of work for something that could be corrected for in a few seconds with find and replace
- Comment on Requiring ink to scan a document—yet another insult from the printer industry 1 year ago:
HP has been shit for decades now, it’s not some techie secret. Companies used to live and die by their reputation. What happened?
- Comment on Bleeding edge tech 1 year ago:
Nobody can seem to consistently define what ai even means
- Comment on Bleeding edge tech 1 year ago:
That was true like 5 years ago, but now companies are just irresponsibly calling out to LLMs as a function without proper safe guards instead.
- Comment on Requiring ink to scan a document—yet another insult from the printer industry 1 year ago:
Stop buying HP. Seriously what the hell is wrong with people?