The new list initializing syntax is less boilerplate, no?
- 0 Posts
- 12 Comments
Lucky@programming.devto
Programming@programming.dev•Visual Studio Code is designed to fracture
6·2 years agoAgreed. Their business model is transparent: we give them money, they give us good products
Lucky@programming.devto
Programming@programming.dev•Visual Studio Code is designed to fracture
15·2 years agoVscode is beginning it’s enshittification cycle. They got everyone using it, now they start locking it down. Much of the fear is what Microsoft could do, not so much what they have done so far
The C# extension going proprietary is the smoke to the coming fire though, and highlights what could happen to other languages. The new extension cannot be installed on open source redistributions like vscodium. What happens now if the typescript extension gets a similar update? Or Python? Etc.
They’ve made it so technically anyone can spin off their own extensions marketplace, and attempt to make their own C#/typescript/Python extensions, but can they truly compete with Microsoft? That is the fracture the author is talking about. They’ve effectively made a walled garden out of an open source platform, they’ve just been playing nice to hook devs and companies in before the slow enshittification
Lucky@programming.devto
Programming@programming.dev•Tabs are objectively better than spaces - gomakethings.com
112·2 years agoThe argument for having tabs adjust depending on your ide sounds better than it is in practice. Someone formatting code to look nice with width 4 will look horrendous for someone who uses width 8.
Spaces makes it uniform and captures the exact style the original dev intended
Lucky@programming.devto
Programming@programming.dev•Linux file system developer: we're severely under-resourced
8·2 years agoThey didn’t say anything about “forced simplicity”. Not everything is a slippery slope
Lucky@programming.devto
Programming@programming.dev•What are your programming hot takes?
2·2 years agoIn my opinion, pre-designing your code is generally a good thing. Hours of planning saves weeks of coding
Lucky@programming.devto
Programming@programming.dev•thrown into a backend project as a backend dev with a language I don't know, how fucked am I?
2·2 years agoTo clarify for OP, the only time you need this at all is when the object has a reference to something that the garbage collector won’t dispose of naturally. Things like an open file stream, db connection, etc.
You won’t need to dispose of an object you created if it just has properties and methods
The second comment explains a lot. There is a build script that generated the binary, which they are using to reduce the overall build time. They mention this resulting from a limitation on cargo and this being a workaround
It seems like you could build it all from scratch if needed with a bit of effort
Lucky@programming.devto
Rust@programming.dev•What is the best memory model for a Tic Tac Toe grid? (References and ownership)
71·2 years agoWhy does the way you present the data change how the memory is managed? I think you are mixing data storage with display logic.
Lucky@programming.devto
Programming@programming.dev•What's stopping WebAssembly from effectively replacing JavaScript?
42·2 years agoI’d imagine one of those killer features is using a language with a solid standard library. Npm dependencies are notoriously complex because js as a language is missing basic functionality that is standard in other languages. Just a few years ago the Internet broke because “pad left” was pulled by it’s maintainer, that simply doesn’t happen in other languages
From a maintenance perspective npm is a nightmare. From a security perspective it is worse. Being able to build your entire website using a language that eliminates most dependencies, and the ones you take on don’t pull in a zillion dependencies either, is absolutely a killer feature
Of course that isn’t the full story and using js still has it’s advantages as people have already pointed out. If wasm closes the gap in those areas then it would absolutely be worth the switch
Lucky@programming.devto
Ask Experienced Devs@programming.dev•How to store a password for a desktop client?
3·2 years agoWindows credential manager is also an option baked into the OS, though I don’t have experience working with it to say how good or bad it is
This is for custom collections, right? And you don’t even have to use it, you can keep using existing ctors for your custom collections
Worse case scenario you keep doing what we’ve always had to do. But for the 99% of use cases we get a much more streamlined initializer, with extensions to use our own.
I don’t see how that’s a bad thing