Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
feoren
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
feoren
11mo ago
> Why would you instantiate a class and call it result‽ Are you suggesting that the results of calculations should always be some sort of primitive value? It's not clear what you're getting hung up on here.
62.
▲
by
feoren
11mo ago
> For example disassembling a microwave Getting this wrong will not be a learning experience, because it will kill you. This is an incredibly dangerous thing to do and should only be done by people who already know what they're doin
63.
▲
by
feoren
1y ago
> Should it be memory-efficient? Fast? Secure? Simple? Easy to formally prove? Easy for beginners? Work on old architecture? Work on embedded architecture? What do any of these have to do with guarantees of long-term compatibility? I
64.
▲
by
feoren
1y ago
> > Code is just math. > What?? No. If it was there'd never be any bugs. Are you claiming there is no incorrect math out there? Go offer to grade some high-school algebra tests if you'd like to see buggy math. Or Google f
65.
▲
by
feoren
1y ago
No, weather forecasting models are "just math". The forecast itself is an output of the model. I sure hope our weather forecasting models are still useful next year! weather forecasting models <=> code <=> math
66.
▲
by
feoren
1y ago
> Mathematical notation evolved a lot in the last thousand years That is not counter to what I'm saying. Mathematical notation <=> Programming Languages. Proofs <=> Code. When mathematical notation evolves,
67.
▲
by
feoren
1y ago
> Math is continually updated, clarified and rewritten And yet math proofs from decades and centuries ago are still correct. Note that I said we write "code that lasts", not "programming languages that never change".
68.
▲
by
feoren
1y ago
People's own opinions about what their name is is not a "non-issue", shitty-ass governments or not. Declaring a people's opinions about names stupid and irrelevant (or even illegal) is one of the many ways majorities opp
69.
▲
by
feoren
1y ago
> I'm pretty sure you didn't go through Στοιχεία (The Elements) in its original version This is like saying "you haven't read the source code of the first version of Linux". The only reason to do that would be fo
70.
▲
by
feoren
1y ago
I respect and understand the appeal of LISP. It is a great example of code not having to change all the time. I personally haven't had a compelling reason to use it (post college), but I'm glad I learned it and I wouldn't be
71.
▲
by
feoren
1y ago
> the real ones use Typst now Are you intentionally leaning into the exact caricature I'm referring to? " Real programmers only use Typstly, because it's the newest !". The website title for Typst when I Googled it
72.
▲
by
feoren
1y ago
"Just don't write bad code" means that you can easily avoid some of the anti-patterns that people list as weaknesses of C#. Yes, maybe you inherit code where people do those things, but how much of that is because of C#, and
73.
▲
by
feoren
1y ago
You hope it doesn't ? > [Donald Knuth] firmly believes that having an unchanged system that will produce the same output now and in the future is more important than introducing new features This is such a breath of fresh air in a
74.
▲
by
feoren
1y ago
The latter is what happened, for upwards of ten years. And it wasn't a small fraction of the funding -- almost no funding was allocated to any research not looking at amyloid plaques, because the intellectual giants' (falsified) r
75.
▲
by
feoren
1y ago
> You can call it "evil" if you want It was a concerted and intentional effort to fake data and falsify research into a pervasive deadly disease, specifically in order to hoard funds going to research they knew was, if not a de
76.
▲
by
feoren
1y ago
Huh? 10 years ago was 2015. Entity Framework had been around for nearly 7 years by then, and as far back as I remember using it, it used source generators to subclass your domain models. Even with "Code First", it generated subcla
77.
▲
by
feoren
1y ago
That is tedious with or without a source generator, mainly because there's a much better way to do it: public Optional<string> Name; With Optional being something like: class Optional<T> { public T? V
78.
▲
by
feoren
1y ago
Let's be careful about exactly what we mean by this. When we say an algorithm is O(f(N)), we need to be very clear about what N we're talking about. The whole point is to focus on a few variables of interest (often "number of
79.
▲
by
feoren
1y ago
> linear search worse case is not O(N), it is O(N^4/3) No, these are different 'N's. The N in the article is the size of the memory pool over which your data is (presumably randomly) distributed. Many factors can influence
80.
▲
by
feoren
1y ago
Attributes do nothing at all on their own. It's someone else's code that does magic by reflecting on your types and looking for those attributes. That may seem like a trivial distinction, but there's a big difference between
81.
▲
by
feoren
1y ago
I have been coding in C# for 16 years and I have no idea what you mean by "hidden indirection and runtime magic". Maybe it's just invisible to me at this point, but GC is literally the only "invisible magic" I can t
82.
▲
by
feoren
1y ago
> We had the mass of a great white shark as 8.9e20 Kg, rather than 8.9e2 Kg We're going to need a bigger boat.
83.
▲
by
feoren
1y ago
> I don't think anyone ever really measures the elecromagnetic field. We might, for example, measure the displacement of a charged object attached to a spring in an electromagnetic field. I don't think anyone ever really measur
84.
▲
by
feoren
1y ago
A "measurement" in the general sense (not quantum) is about amplifying or isolating some signal out of all the noise. I simply don't agree that all measurements boil down to relative displacements. Did a chemical reaction occ
85.
▲
by
feoren
1y ago
> YAML is far easier to read and parse as a human than JSON. When you're on line 4000 of a YAML configuration file and the previous 70 lines have been at indentation level 6, and you see a blank line and another line at indentation
86.
▲
by
feoren
1y ago
Your advice is completely un-actionable. "Learn the gestalt?" Do you mean the principles of gestalt design? Because half of those are entirely about designing clever logos, not about making useful UX. If designers spent less time
87.
▲
by
feoren
1y ago
> You're describing commercial software, not FOSS No, I'm describing a funding mechanism. It may be easier with commercial software, but that's because humanity is largely allergic to collective action, not because of its
88.
▲
by
feoren
1y ago
> Eh, call me when your detector gives you back a complex number. Measurements return real numbers. There are an uncountably infinite number of real numbers. 100% of them (but not all) are not computable, and cannot be written down or de
89.
▲
by
feoren
1y ago
Lysenkoism! That's the one. Thank you for reminding me of the name (and for knowing what I was grasping at). I think some "bad people" used eugenics and phrenology to justify prior hate, but they were also effective tools at
90.
▲
by
feoren
1y ago
> complex numbers are a promise to square something at a later date and recover a real number Except, most complex numbers don't square to a real number. Only those lying along the complex or real axes square to a real number; eve
More ›