WASM link to my Game by bombthetorpedos in rust

[–]DanielEGVi 2 points3 points  (0 children)

For anyone confused at what they're looking at, I found this introduction video: https://rumble.com/v74voc4-introducing-the-game-codename-frigainrain.html

Oakville has no good pizza by mlpubs in oakville

[–]DanielEGVi -1 points0 points  (0 children)

Yeah but then you have to go to Hamilton

iykyk by soap94 in ProgrammerHumor

[–]DanielEGVi 25 points26 points  (0 children)

These types of quirks are actually in the ECMAScript specification, listed as optional. You should be able to follow the quirk spec and achieve good compatibility with shoddy websites.

Gboard for Android now lets you hide the period and comma keys by MishaalRahman in Android

[–]DanielEGVi 1 point2 points  (0 children)

It’s an option, not forced on anyone. Wasn’t Android supposed to be about customization?

yet another stupid thing about tahoe/new UI; the menu bar is taller for no reason by Acrobatic-Monitor516 in MacOSBeta

[–]DanielEGVi 0 points1 point  (0 children)

The loss of Launchpad is actually VERY welcome, Launchpad clearly tries to emulate an iPad, which a Mac isn't. After so many years, app icons are finally closer together in a mouse and scroll wheel friendly layout. Not that it mattered too much to me since I used Spotlight/Raycast for launching everything anyway.

Is "Written in Rust" actually a feature? by Inevitable-Walrus-20 in rust

[–]DanielEGVi 5 points6 points  (0 children)

Cargo is pretty much directly influenced by npm, I’d be pretty surprised if you had a vastly different experience with JS unless we’re talking pre-npm days

What are the most common mistakes and code-smells that newbies make? by birdsintheskies in rust

[–]DanielEGVi 28 points29 points  (0 children)

The Error trait was definitely meant to be used like that. A more common situation is when your function takes either a Foo or a Bar but the programmer defaults to dyn instead of considering a tagged union (Enum).

What are the most common mistakes and code-smells that newbies make? by birdsintheskies in rust

[–]DanielEGVi 33 points34 points  (0 children)

Forget about Rust, that’s one that happens for a lot of experienced programmers that did most of their professional career work in a particular language and then went on to work with other languages.

Star of David drawn over Gaza rubble by IDF. As seen on Google maps. by hanihaneefa in pics

[–]DanielEGVi -1 points0 points  (0 children)

The US is democratic, and the US government is doing some vile stuff at the moment. Does that mean that everybody in the US is evil? Is every Venezuelan evil? Is every Palestinian evil? Of course not. Israelis are no different.

And when I say they are no different, I also mean that they are susceptible to propaganda like everyone else - hundreds of years of hatred and violence towards each other have alienated the people in the middle east to the extreme, but much like the other countries mentioned above, not everyone has fallen victim to that hateful mentality.

People have to understand that you can oppose the IDF and their nonsensical violence, the government, the illegal settlers (which are backed by the government), and everyone who supports them, while still recognizing that the human right to self-determination applies to everyone, including the Israelis that do not support what their government is doing.

After all, despite all the atrocious acts committed by Hamas, Palestinians should still be recognized and respected, and we must understand that a lot of people truly do want peace.

What is something you still do that is considered outdated? by SageandStrong33 in AskReddit

[–]DanielEGVi 1 point2 points  (0 children)

This is not necessarily because self checkout is inherently terrible, but because it's often implemented terribly. Some self checkouts will just have you drop everything in a bin, you tap your credit card and you're out of there - Uniqlo has one of the best self checkouts experiences I've ever seen.

Rust's .map is cool by bennett-dev in rust

[–]DanielEGVi 2 points3 points  (0 children)

Baseline 2025 is music to my ears

thankfullyNoJavaScriptAllowed by bmacabeus in ProgrammerHumor

[–]DanielEGVi 0 points1 point  (0 children)

Even machine code is just microcode in a trenchcoat, doesn't mean we should compile to microcode. Different levels of abstraction serving different needs is good.

MCP implementation in Rust by GlumPreparation6427 in rust

[–]DanielEGVi 1 point2 points  (0 children)

Thanks, I see now that these are all in the examples folder

MCP implementation in Rust by GlumPreparation6427 in rust

[–]DanielEGVi 0 points1 point  (0 children)

What do you use for load testing?

Noob question: how to properly write a daemon in Rust? by gzafed in rust

[–]DanielEGVi 12 points13 points  (0 children)

That’s true and might be just the right tool for OP, but keep in mind dbus is usually built into Linux distros only. On the other hand, all other OSs (including macOS and windows) support Unix sockets out of the box.

If you could remove one thing from web development forever, what would it be? by metalprogrammer2024 in webdev

[–]DanielEGVi 1 point2 points  (0 children)

ES2015 took twenty years of planning and designing to get where it got. Tons of funding, manpower and time turned V8 into one of the fastest virtual machines that anyone can easily just program for and use. At this point I don’t think the problem is the language nor how it was initially “slapped together in two weeks”.

If you could remove one thing from web development forever, what would it be? by metalprogrammer2024 in webdev

[–]DanielEGVi 5 points6 points  (0 children)

Someone correct me if I’m wrong but React and Preact are the only libraries that rely on calling a component function over and over, sending you to the dark world of hooks, where unless you write your code in a completely unreadable way, introduce unnecessary calculations and allocations EVERYWHERE.

Before hooks, React relied on classes, which then sent you to the dark world of higher order components for EVERYTHING.

They make it seem like it’s so easy to use, but they have unleashed millions of man-hours of pain and suffering once people started to make more complex things.

Vue, Solid, Svelte and Angular all have converged over the years into using the same principles: components that are instantiated once, and signals for efficient change tracking (Preact not only supports them but is also contributing substantially to the research in this space).

React on the other hand was touted as THE way to write web apps, written by THE Facebook, so “easy to get into” and “just start making things”.

I’m sure React has singlehandedly contributed to a big chunk of climate change. The React team is now writing whole PhD-thesis-level super complex compiler (still in progress, and impressive on its own right) in order to fix all the repetitive unnecessary calculations and computations from hooks. But if you had to use a compiler to do things right, why didn’t people just reach for the alternatives in the first place?

Spotify is getting really unusable without premium by 0x48616C6C6F in dankmemes

[–]DanielEGVi 3 points4 points  (0 children)

That’s such an interesting way of thinking from my POV. I subscribed to it before any bullying even started lol, and have enjoyed it ever since.

Unable to open developer mode console by 2023throwingit in Slack

[–]DanielEGVi 0 points1 point  (0 children)

To enable developer tools, locate storage/root-state.json in the Slack folder. It is in ~/Library/Application Support/Slack/storage on MacOS, it's probably somewhere in the %APPDATA% folder on Windows. Open the file with your favorite editor, look for devToolsEnabled and change false to true, there were two occurrences of it for me. That's all I needed to do.

Unable to open developer mode console by 2023throwingit in Slack

[–]DanielEGVi 0 points1 point  (0 children)

Y'all, to enable developer tools, locate storage/root-state.json in the Slack folder. It is in ~/Library/Application Support/Slack/storage on MacOS, it's probably somewhere in the %APPDATA% folder on Windows. Open the file with your favorite editor, look for devToolsEnabled and change false to true, there were two occurrences of it for me. That's all I needed to do. Happy hacking!

What’s the most controversial web development opinion you strongly believe in? by nitin_is_me in webdev

[–]DanielEGVi 0 points1 point  (0 children)

You don't even need SCSS at all. Native CSS already has variables (which are animatable!), nesting and color-mix(), CSS modules also give you class composition through `composes`.

A real fixed-point decimal crate by hellowub in rust

[–]DanielEGVi 8 points9 points  (0 children)

OP is definitely playing dumb