Readit News logoReadit News
jdrek1 commented on Converting a Git repo from tabs to spaces (2016)   eev.ee/blog/2016/06/04/co... · Posted by u/keybored
daneel_w · 4 months ago
With a large set of arguments broken down to multiple lines I prefer to keep them clear of the function name.

    with_long_func_names(
        this_scheme,
        looks_muddled
    );
    
    long_func_name(
                    tidier,
                    scheme
                  );
But my main gripe with tabs is that no one agrees on the width.

jdrek1 · 4 months ago
> But my main gripe with tabs is that no one agrees on the width.

That's the entire point of tabs. One tab means one indentation level and you as the user can decide how that's displayed. Spaces forces everyone to see the code exactly as whoever decided on his favourite width and that is in the best case "only" annoying to people with different preferences and in the worst case actively hurtful to people with disabilities.

The only argument spaces people ever have is "some of my colleagues are too stupid to properly indent with tabs and align with spaces" and that is trivially fixed by either of those:

- don't use alignment, it's useless anyway

- get better coworkers

- educate your coworkers

- use commit hooks to check wrong usage

So basically there is no argument left on the spaces side at all^[1]. Meanwhile tabs semantically mean "one indentation level", take up less bytes, and most importantly allow everyone to have their own preferences without affecting other people. And honestly I am insanely baffled by how many people don't get the importance of that last part. Accessibility like that costs you nothing but means the world to other people, similarly how we have ramps at public buildings for the elder, wheelchair users, strollers, and so on. And not to mention the fact that there are a lot of autistic people in programming, which often have a harder time dealing with things not being as they want them to be. Is there any reason to choose an objectively inferior method and force that onto those demographics just because "muh alignment"?

[1] Okay fine, there is one: "Tools I don't own don't display tabs as I want them, for example GitHub with their retarded default of 8". But first of all you can change that if you're logged in and second you're supposed to use your IDE and not a web interface...

jdrek1 commented on U.S. autism data project sparks uproar over ethics, privacy and intent   washingtonpost.com/health... · Posted by u/perihelions
autoexec · 4 months ago
It's one of the many private data sources they were planning to use to track and collect data on autistic people for their database. https://people.com/rfk-jr-to-launch-autism-registry-using-pr...

Autistic or not, giving that kind of health information to private for-profit companies who collect that data to use it against you or sell to third parties was never a good idea even before the government wanted to take it for themselves.

jdrek1 · 4 months ago
Ah, I didn't know that. To me your sentence read like autists out themselves by wearing a smartwatch.

Fully agree with you on that, the less data they have, the better.

jdrek1 commented on U.S. autism data project sparks uproar over ethics, privacy and intent   washingtonpost.com/health... · Posted by u/perihelions
autoexec · 4 months ago
activities that would result in "identifying themselves as autists" include: seeking a diagnosis in the first place, getting the help of a mental health professional, frequenting support groups and forums, and wearing a fitbit or smart watch.

It's really not a good thing when people, high functioning or not, are forced to choose between getting the help they need and being targeted by their government.

jdrek1 · 4 months ago
> and wearing a fitbit or smart watch.

Since when is wearing smart watches only for autists?

jdrek1 commented on Most iPhone owners see little to no value in Apple Intelligence so far   9to5mac.com/2024/12/16/mo... · Posted by u/mgh2
guappa · 9 months ago
? My calculator does too. Unless you mean (9, 11) > (9, 9) which is an entirely different thing.
jdrek1 · 9 months ago
You should get your calculator checked. 9.11 is definitely less than 9.9
jdrek1 commented on Pulsar – A Community-Led Hyper-Hackable Text Editor   pulsar-edit.dev/... · Posted by u/dotcoma
loup-vaillant · a year ago
Knowing that it’s on GitHub, I could to this:

  1. Scroll down to the bottom of the home page:
  2. Under the "Team" subsection of the footer, click "Org Repositories".
  3. Now we’re on GitHub, click on the first pinned repository: "pulsar".
  4. Scroll down, *now* there’s a screenshot.
If I didn’t know it was on GitHub, I would never have gone through step (2). Those screenshots are decidedly not easy to find.

jdrek1 · a year ago
There is a GitHub icon directly at the top right of the side so your first two steps can be combined into one shorter one. But yes, screenshots should absolutely be on the home page, and prominently so.
jdrek1 commented on Progress Quest   progressquest.com/... · Posted by u/hyperific
TomatoCo · a year ago
Is there a game in this genre where you script your character? As a kid I made a few RuneScape bots and found that getting the logic right like "the world is in this state, what actions do you perform?" was the fun part about that.

I also never got the random events automated so I just read a book while it ran and killed it whenever one of those popped up.

jdrek1 · a year ago
If you want a game where you effectively script/program the entire gameplay, check out Bitburner: https://store.steampowered.com/app/1812820/Bitburner/
jdrek1 commented on Fortran vs Python: The counter-intuitive rise of Python in scientific computing (2020)   fortran-lang.discourse.gr... · Posted by u/zaikunzhang
__MatrixMan__ · 2 years ago
I'm trying to switch from traditional software engineering to something sciencier--I've been taking computational biology classes and learning Nim.

I like Nim a lot. And I know that it'll scratch a necessary itch if I'm working with scientists. I also know that it's too much to ask that the scientists just buckle down and learn Rust or something like that.

But as someone who is not afraid of Rust but is learning Nim because of its applicability to the crowd that I want to help... The vibrancy of the Rust community is really tempting me away from this plan.

I've really enjoyed the Nim community also. I even contributed some code into the standard library (a first) and was surprised at how easy they made it.

But I have also written issues against Nim libraries which have gone unanswered for months. Meanwhile, certain rust projects (helix, wezterm, nushell) just have a momentum that only Nim itself can match.

Python benefitted from there being no nearby neighbors which resembled it (so far as I'm aware). If you needed something like python, you needed python.

Rust and Go and Zig are not for scientists, but they're getting developer attention that Nim would get if they didn't exist. Also, Julia is there to absorb some of the scientist attention. It's a Tower of Babel problem.

I can't say why the scientists aren't flocking to Nim, but as someone who wants to support them wherever they go, this is why I'm uncertain if Nim is the right call. But when I stop and think about it, I can't see a better call either.

jdrek1 · 2 years ago
> I can't say why the scientists aren't flocking to Nim, but as someone who wants to support them wherever they go, it's why I'm uncertain if it was the right call.

Because most scientists are only using programming as a tool and don't care one bit about it beyond what they need it to do. They don't go looking for new tools all the time, they just ask their supervisor or colleague and then by default/network effects you get Python, Fortran, or C"++". You need a killer argument to convince them to do anything new. To most of them suggesting a new language is like suggesting to use a hammer of a different color to a smith - pointless. With enough time and effort you can certainly convince people, but even then it's hard. It took me years to convince even just one person to use matplotlib instead of gnuplot when I was working in academia. You can obviously put that on my lack of social skills, but still.

jdrek1 commented on Show HN: Rem: Remember Everything (open source)   github.com/jasonjmcghee/r... · Posted by u/jasonjmcghee
jdthedisciple · 2 years ago
why does CPP code always look so messy and unintelligible?

like if I see C# or Python it makes sense to me at least in some way

whereas CPP code always looks like it's powering some rocket engine?

Also thanks for sharing!

jdrek1 · 2 years ago
Well first of all, C++ is the language you'd be using to power a rocket engine. And second, that code is a terrible example because most of it isn't C++. Large parts of that are very C like or directly C because it's using the Windows API.
jdrek1 commented on What Will the World Look Like with Less Babies?   lindynewsletter.beehiiv.c... · Posted by u/walterbell
DeathArrow · 2 years ago
People have historically lived in a much severe poverty than now, yet the birth rates were much better.
jdrek1 · 2 years ago
Only due to contraceptions not being a thing for most of history.
jdrek1 commented on EurKEY: The European Keyboard Layout – For Europeans, Coders and Translators   eurkey.steffen.bruentjen.... · Posted by u/thunderbong
p-e-w · 2 years ago
> I've met more than a few Germans, Finns, and Swedish that map their local keyboards to US English

Which is impossible to do properly, because those keyboards differ from US keyboards in their geometry, not just in the labeling of the keys.

jdrek1 · 2 years ago
> Which is impossible to do properly, because those keyboards differ from US keyboards in their geometry, not just in the labeling of the keys.

The only difference is that on US keyboards the enter key is smaller and left shift is larger, leading to the "\" key being moved one down and one left on a German keyboard (and also being duplicated to left of z (German label: y)). So even if you move from a physical US keyboard to a physical German one while keeping the US layout, it's literally just one key where you'd have to retrain your hand. And for people that have learned to type on a German keyboard this is not a problem at all since they have never typed on a physical US one and using a different mapping means a training period anyway.

Source: German who mapped his keyboard to US (+ some AltGr modifiers for the German characters I need).

I don't know about the other European layouts, but I assume it's somewhat similar for them too.

u/jdrek1

KarmaCake day175February 21, 2019View Original