spartanatreyu
@spartanatreyu@programming.dev
- Comment on Have win7 laptop. What to play on it? 6 months ago:
No mouse and like games like MaM/Civ?
Recommendation for slower paced, top down strategy game:
- GBA emulator and the game Advance Wars 2
Recommendation for hard and fast paced game (audio required):
- Crypt of the Necrodancer
Recommendation for story based game:
- Undertale (avoid spoilers, this game will mess with you, only goes for 4 hours per playthrough but you will replay it for the different endings)
- Comment on Vaccine breakthrough means no more chasing strains 7 months ago:
Luckily for you, there’s not a vaccine for stupidity.
- Comment on Your 4G phone could be impacted by 3G shutdowns this year. Here's what to know 8 months ago:
The ones with 5G also cost a lot more.
What is the “ones” that you are referring to?
Are there plans that differenciate between 4g and 5g?
Or do you mean phones, or towers/infrastructure?
Because both the modems in phones and the infrastructure goes down as their production is scaled up. I don’t think there’s any new mainstream modem chipsets that don’t support 5g anymore.
- Comment on What are some common misconceptions about programming that you'd like to debunk? 9 months ago:
1 hour of planning can save 10 hours of work.
1 hour of research can save 10 hours of planning.
- Comment on What are some common misconceptions about programming that you'd like to debunk? 9 months ago:
Some small nits to fix:
-
C has it’s own undefined behavior.
-
JS has confusing behavior, not undefined behavior. Its specs are well defined and backwards compatible to a fault, making things harder to learn if you don’t learn the history of the language.
-
Problems with both should be avoided by learning and using standard practices. (Don’t pretend C is object oriented, always use
===
instead of==
in js, etc…)
In complete agreement:
- Result types are awesome, all future languages should be designed around them.
-
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
you have to fix the indentation because if not then the document won’t work or mean something completely different
Whitespace has no meaning in json. You can indent however you want, or not at all.
I’m assuming you’re running into issues because you’re writing json in a yaml file which does care about indentation, and you’re only writing json in yaml to get access to comments.
In which case it circles back around to: why not use toml? Whitespace formatting doesn’t corrupt the file, and it has built in comments.
- Comment on Tell me your Best Software Haiku 9 months ago:
If you read the
-
as “dash”:docker compose up docker system prune -a docker compose up
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
Cut and paste problem?
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
If you’re reaching for yaml, why not use toml?
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
How would you mark a flag in your json settings file as deprecated?
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
That doesn’t really work when you need two comments at the same level, since they’d both have the same key
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
Where do you put your comments in JSON files?
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
I think you’re forgetting about the Animation API.
Example: making something flash once to get a user’s attention
element.animate( {opacity: [1, 0, 1]}, { duration: 500 } );
Use CSS animations everywhere you can, but if you need to be able to hook into an animation (to dynamically change the speed, cancel something, sync animations together, etc…) you should be using the Animation API.
There’s never a need for jQuery.
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
What do you still need babel for?
The only features that come to mind for anyone who needs to reach out to babel today would be those working on the tc39 proposals themselves.
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
What do you mean about animations?
Every use-case I can think about is already well supported by vanilla css/js without libraries or frameworks. (not including really out-there use-cases like game engines or image editors)
Can you give an example?
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
DOM attributes are built for browsers and frameworks to take advantage of.
The style of some of those frameworks to stick symbols in there is weird. But that only goes against those frameworks. It doesn’t impact how good DOM attributes actually are.
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
Svelte uses labels, so Svelte itself is weird compared to everything. Except in a way to goto-style control-flow code.
- Comment on Is jQuery still the go-to JS helper library? 11 months ago:
But why bother with creating a new language
I can just do
items.map(item => 〈Item key={item.id} item={item} /〉)
I don’t think this is a very good example. You’ve just said not to use a new language, then used JSX, a new language.
- Comment on Games with characters you miss most after completion. 11 months ago:
Undertale for sure.
It has such a slow start, and meh graphics going into it. It took me 3 separate years trying to get into it, but once I got past the first 2 hours, man did the humour, characters and music blow me away.
If you’re worried you won’t get into it:
- The graphics start out rough to make the better graphics later on really stand out
- The slow start is actually them setting things up a whole bunch of things that pay off later, stick with it. (Also since the game is only 7 hours and there are multiple endings, you will replay it to get the other endings and notice just how much content is hidden at the start that you didn’t understand the first time playing it).
- Comment on Which language you wish would really grow and reach mainstream adoption? 1 year ago:
it looks like JS/TS with arrow functions.
JS/TS already has arrow functions.
- Comment on Monitor Alignment Alignment Chart 1 year ago:
- 50% of web developers: Chaotic Neutral
- Salespeople: Lawful Neutral
- Programmers (and the other 50% of web developers): Unaligned, we know how to use shortcuts.
- Comment on What programming languages aren't too criticized here? 1 year ago:
I thought I loved ts-node, since it’s a good patch over some annoying issues in node.
But I retried deno a few months ago (after having first tried it when it first came out) and I realised that I only ever liked ts-node, and that I actually loved deno.
Deno just ran ts as if it was ts-node without needing a dependency, or startup time, or any prior setup, and it did it so fast I thought something was wrong. It was great.
- Comment on Is there a game that you've been very patient for, which turned out to be dissappointing when you finally started playing it? 1 year ago:
I was in it for the parkour; I didn’t really like the combat and kept being forced to fight people.
Part of the charm of the game was to make its combat unwieldy to push people into parkour-ing past/out of each encounter. The whole game was made so that you could finish it without ever picking up a gun.
It sounds like you didn’t get far enough to learn this.
- Comment on What is the best file format for configuration file? 1 year ago:
It depends what you need your configuration file to be:
Need a well defined easy to understand concrete configuration file?
- Use
.toml
. It was made to be both human and computer friendly while taking special attention to avoid the pitfalls commonly found in other configuration files by explicitly stating expected types around commonly confused areas.
Need a simple to implement configuration file?
- Use
.json
. It’s famous for being so simple it’screator“discoverer” could define it on a business card.
Need an abstract configuration file for more complicated setups?
- Use
.ncl
. Nickle allows you to define functions so that you can generate/compute the correct configuration by changing a few variables/flags.
- Use
- Comment on Will the Gold, Sunshine coasts and Noosa be 'loved to death' as 600,000 people move in? 1 year ago:
What SE QLD needs:
- Less suburban sprawl
- More trams and bus ways
- More walkable cities
- Mixed zoning with each new development voted on by the people who live in the area. The company that puts forward the best proposal for residents gets the contract. (e.g. Luxury high rise = no, High rise with bakery, cafe, fruit & veg, grocers on bottom floor, and rentable office space on second floor = yes)
- Comment on Stop doing Color Management! 1 year ago:
What about OkLCH?
- Comment on Human Shader 1 year ago:
This really is a nice fun little intro to fragment shaders
- Comment on is it just me or GitHub is turning into some sort of LinkedIn 1 year ago:
Github has always had being a job site be it’s secondary feature.
Except that it has a slightly higher bar of entry to recruiters and recruitment bots spreading toxic positivity, and anyone asking for a job is able to prove (at least some of) their value by showing off their code and how they participate publically in other repos (if at all).