Readit News logoReadit News
mastermage commented on I'm working on implementing a programming language all my own   eli.li/to-the-surprise-of... · Posted by u/ingve
ffsm8 · 4 days ago
And let's use the keyword "go-to" to run a function, back to the basics basically ಥ ‿ ಥ
mastermage · 4 days ago
ok maybe not that, that was awful.
mastermage commented on Cognitive load is what matters   github.com/zakirullin/cog... · Posted by u/nromiun
Buttons840 · 4 days ago
It's been said: "Document the why, not the what."

I have a hard time separating the why and the what so I document both.

The biggest offender of "documenting the what" is:

    x = 4  // assign 4 to x
Yeah, don't do that. Don't mix a lot of comments into the code. It makes it ugly to read, and the context switching between code and comments is hard.

Instead do something like:

    // I'm going to do
    // a thing. The code
    // does the thing.
    // We need to do the
    // thing, because the
    // business needs a
    // widget and stuff.
    
    setup();
    t = setupThing();
    t.useThing(42);
    t.theWidget(need=true);
    t.alsoOtherStuff();
    etc();
    etc();
Keep the code and comments separate, but stating the what is better than no comments at all, and it does help reduce cognitive load.

mastermage · 4 days ago
I am trying to shift more to this style of commenting. Because I am not a programmer by education. I am a physicist and most physicists are like I want comments in my code so do it like this.. and then you as a student do what you need to for a good grade.
mastermage commented on Cognitive load is what matters   github.com/zakirullin/cog... · Posted by u/nromiun
marginalia_nu · 4 days ago
I generally don't mind documenting both when it's merited. Sometimes you need to clarify the why, occasionally you need to clarify the what.

I think comments in general are underrated. You don't need to annotate every line like a freshman programming assignment, but on the other hand most supposed self-documenting code just isn't.

mastermage · 4 days ago
sometimes you do some wack magic in just one line of code, sometimes thats necessary for performance or because what you are trying todo is inherently wack magic. Example the fast inverse square from quake. Insane magic and if you just document does inverse square approximately people would freak out. So sometimes when wack magic is used explain the wack magic (as concise as reasonable)
mastermage commented on A failure of security systems at PayPal is causing concern for German banks   nordbayern.de/news-in-eng... · Posted by u/tietjens
qznc · 6 days ago
This is the first time I hear of „sunset“. Afaik it just is a layer on top and that’s it.
mastermage · 4 days ago
It's in the first paragraph on Wikipedia. Although I know that Wikipedia isn't always 100% correct so take that with a grain of salt.

Quote: "Wero is a European mobile payment system that is intended to replace Giropay in Germany, Paylib in France,[1] Payconiq in Belgium[2] and Luxembourg, and iDEAL in the Netherlands."

mastermage commented on I'm working on implementing a programming language all my own   eli.li/to-the-surprise-of... · Posted by u/ingve
znkr · 5 days ago
> The equal sign should be reserved for comparisons, because that is what it means in mathematics.

This is touching on a pet peeve of mine: Mathematics and programming are similar in many aspects, but this is not one of them. In mathematics = is not a comparison, but a statement.

More generally, mathematics is about tautologies, that is statements that are always true. In programming, a comparison is evaluated to either true or false.

That doesn’t mean that there’s no room for conditionals in mathematics (one example is piecewise function definitions). But it’s not the same. Heck, even the definition of “function” is different between mathematics and programming.

mastermage · 4 days ago
That's why procedure is so much better of a name. It's not a hill I'm willing to die on but I think it's correct.
mastermage commented on John Carmack's arguments against building a custom XR OS at Meta   twitter.com/ID_AA_Carmack... · Posted by u/OlympicMarmoto
frognumber · 5 days ago
John describes exactly what I'd like someone to build:

"To make something really different, and not get drawn into the gravity well of existing solutions, you practically need an isolated monastic order of computer engineers."

As a thought experiment:

* Pick a place where cost-of-living is $200/month

* Set up a village which is very livable. Fresh air. Healthy food. Good schools. More-or-less for the cost that someone rich can sponsor without too much sweat.

* Drop a load of computers with little to no software, and little to no internet

* Try reinventing the computing universe from scratch.

Patience is the key. It'd take decades.

mastermage · 4 days ago
Honestly sounds like a very cool Science fiction concept.
mastermage commented on John Carmack's arguments against building a custom XR OS at Meta   twitter.com/ID_AA_Carmack... · Posted by u/OlympicMarmoto
markus_zhang · 5 days ago
Sounds like super fun if I could be paid a bit for it.

What is an easy gate task to get into “reverse engineering some drivers for some OS”?

Second thought: I don’t even know how to write a driver or a kernel, so I better start from there.

mastermage · 4 days ago
Isn't that what low level does on his YouTube channel teach people to reverse engineer stuff?
mastermage commented on John Carmack's arguments against building a custom XR OS at Meta   twitter.com/ID_AA_Carmack... · Posted by u/OlympicMarmoto
ForHackernews · 5 days ago
Arguably the distinction you're pointing at is macroinvention (the transistor) vs microinvention (a better VR headset): one is a refinement of something that exists, another is transformative opening up whole new worlds of possibility. https://www.antonhowes.com/blog/macroinvention-vs-microinven...
mastermage · 4 days ago
In my opinion the difference is rather invention versus innovation. A better VR headset is innovation, transistors are an invention.
mastermage commented on A failure of security systems at PayPal is causing concern for German banks   nordbayern.de/news-in-eng... · Posted by u/tietjens
tchalla · 7 days ago
> where a website gets a "yes this person is >18" signal, nothing else, from the user's bank.

I am amazed on how this practical solution can't be implemented for age verification instead of all those ID uploads etc.

mastermage · 7 days ago
Because legislators don't understand how the internet works. Thats like the biggest problem. IMHO.
mastermage commented on A failure of security systems at PayPal is causing concern for German banks   nordbayern.de/news-in-eng... · Posted by u/tietjens
fweimer · 7 days ago
The existing giro system is the real Paypal competitor. Most Europeans had access to Paypal-style money transfers before they had email. Merchants probably want to rely on another party to maintain their integration, but there is no real need for another centralized service similar to Paypal.

(The U.S. really is an outlier among developed nations in that its giro system is not widely used, and many residents would not even know how to access it. Hence Paypal's network effect can offer value there. Europe is very different.)

mastermage · 7 days ago
Wero is actually built to sunset Giro in the EU. Its built on top of Giro as to leverage the well working network but gives more convenience.

u/mastermage

KarmaCake day32July 14, 2025View Original