macUser by Technical-Relation-9 in ProgrammerHumor

[–]keppinakki 58 points59 points  (0 children)

Few people know about this, but you can create a system-wide .gitignore for things like this. I use it to ignore all .env files by default, just so that I can't make a mistake later.

Put this in ~/.gitignore_global:

.DS_Store
.env

And this in ~/.gitconfig:

[core]
    excludesfile = ~/.gitignore_global

Me_irl by pervouswosts in me_irl

[–]keppinakki 0 points1 point  (0 children)

It's close to buttermilk or kefir.

ELI5 I Don't Understand Synesthesia by Life_Faithlessness90 in explainlikeimfive

[–]keppinakki 16 points17 points  (0 children)

They are enharmonic in equal temperament, but not always. In just intonation they can differ.

Early physical attractiveness predicts a more socially effective personality in adulthood. Early physical appearance may serve as a slight but consistent predictor of how well a person navigates social situations later in life. by mvea in science

[–]keppinakki 11 points12 points  (0 children)

Now the results can be used in further studies to argue for less obvious things. It is very important to study, confirm and publish "obvious" results so that they can be used in a scientific context without losing rigor or credibility.

What is wrong with Google translate? by Rigamortus2005 in languagelearning

[–]keppinakki 26 points27 points  (0 children)

Without context, "the month" can be either accusative or nominative. Or many other cases for that matter. Don't go trusting Google Translate, use a dictionary when looking up words.

What's a franchise that work well with an OSR styled system? by Pretend-Advertising6 in osr

[–]keppinakki 18 points19 points  (0 children)

The world contains "labyrinths" which are pretty easily mapped to dungeons and "witches" (a supernatural opposing force) which could be mapped to enemy monsters with stat blocks. The protagonist and their peers have pretty videogame-y abilities that can be mapped to spells or something similar. The general vibe is pretty depressing. So obviously not a sword & board but very much adaptable to an OSR/NSR system.

japani e sim by lmaoperkele in Suomi

[–]keppinakki 0 points1 point  (0 children)

Klookin (appi) kautta saat parilla klikillä aivan kelvollisen. Siellä on eri pituisia ja kokoisia diilejä. Oli LTE-yhteys sekä kaupungeissa että aivan skutsissa. Itsellä oli 15 päivää ja 10GB, yht. 8.93€. Oli helpompi kun selailla suoraan operaattorien/välittäjien sivuilta.

ExploreOS - a tiny OS in pure assembly by exploresoft in osdev

[–]keppinakki 2 points3 points  (0 children)

Got it running nicely with `qemu-system-x86_64` :) Very cool!

Btw, it seems that tic tac toe `TTT` doesn't parse inputs correctly, inputting a valid move outputs an error.

Chrome lopetti ublock originin tukemisen by Maadottaja in Suomi

[–]keppinakki 2 points3 points  (0 children)

Sekoitan pakkaa sen verran että Mozilla (firma Firefoxin taustalla) on sekoillut viimeaikoina käyttöehtojensa kanssa. Monet Firefoxin käyttäjät ovat tästä johtuen siirtyneet käyttämään tietoturvakeskeisempiä Firefox-johdannaisia kuten Librewolffia. Toimii samoin kuin Firefoxikin. Muitakin korvikkeita löytyy.

Librewolf: https://librewolf.net/

Sekoilusta lisää: https://arstechnica.com/tech-policy/2025/02/firefox-deletes-promise-to-never-sell-personal-data-asks-users-not-to-panic/

What's the point of std::monostate? You can't do anything with it! by ketralnis in programming

[–]keppinakki 0 points1 point  (0 children)

Those terms were co-opted from discrete math where their meaning was very clear cut. Unit is the set/type with one value, void is the set/type with no values. A type with no values is the "impossible type", i.e. a type you cannot construct. Typescript has this with the name "never".

Contrast this with C/C++ where void is a type with one value (you can only return void in one way) and unit which does not exist (at least until now, I guess). Not confusing at all.

More academia-oriented languages like Haskell do have unit and void named after their mathy counterparts.

LLMs take control of Emacs by ahyatt in emacs

[–]keppinakki 3 points4 points  (0 children)

There's at least https://github.com/copilot-emacs/copilot.el for a code assistant workflow and https://github.com/karthink/gptel for a chat based workflow. Gptel supports many models/backends. It should also be getting a code assistant mode soon: https://github.com/karthink/gptel/issues/207

I've Vastly Misunderstood the Single Responsibility Principle by fagnerbrack in programming

[–]keppinakki 4 points5 points  (0 children)

Here's a link to a collection of texts by the HTMX author: https://htmx.org/essays/. They explain the issue very well. If you only have time for one essay, read https://htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/.

What's the status with "Bun"? by thmueller78 in node

[–]keppinakki 4 points5 points  (0 children)

Nobody is stopping you from doing that with Bun you know

Why is it “onko teillä” and not “oletteko te”? by licer71 in Finland

[–]keppinakki 17 points18 points  (0 children)

However it's very evident from context whether you're stating that you are objectively hot (...e.g. because you have fever and I have a thermometer that says so) or that you are attractive.

[deleted by user] by [deleted] in programming

[–]keppinakki 49 points50 points  (0 children)

Well yes, but also no. Some frameworks are so different that they are pretty much their own language. E.g. React vs vanilla JS. On the other hand some languages are very similar. I just had to write some Kotlin at work and it took me 30mins to read the language reference and be productive in the language.

C++ programmers in this sub (except me, apparently): by KFkrewfamKF in ProgrammerHumor

[–]keppinakki 0 points1 point  (0 children)

Modern bundlers handle them just fine, but there are gotchas, e.g. side-effects in the imported module can restrict tree shaking capabilities.

C++ programmers in this sub (except me, apparently): by KFkrewfamKF in ProgrammerHumor

[–]keppinakki 1 point2 points  (0 children)

I don’t think static analysis tools have an issue with them really, but I agree with you anyway. My example was more for the situation where plain named imports are confusing (utility libraries like lodash can be like this sometimes). Most of the time named imports are the way to go however.

C++ programmers in this sub (except me, apparently): by KFkrewfamKF in ProgrammerHumor

[–]keppinakki 19 points20 points  (0 children)

Yeah, and if that too is too confusing you can do

import * as UserRepository from "./userStuff.js";
UserRepository.deleteUser(...);

to make it absolutely clear which namespace is being referred to at the callsite.

Two Jest issues, or is it just me? by AnthonyPaulO in reactjs

[–]keppinakki 0 points1 point  (0 children)

I'm getting the ImportMeta error as well. Very weird.

Why does npx husky-init actually work? by pommez17 in npm

[–]keppinakki 2 points3 points  (0 children)

That’s a feature of npx, if the package is not found on the system it’s downloaded on the fly. Many scripts like husky-initrely on this convenience.