Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
foxfluff
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
361.
▲
by
foxfluff
5y ago
It's slightly less explicit, but at least it's still all explicitly contained within your function. For example, you don't have to open up the definitions for a dozen different classes and read their destructors to know what
362.
▲
by
foxfluff
5y ago
No problem. Another point I just thought of is that it is very common to have functions that allocate resources and only free them if an error happens; otherwise said resources are returned to the caller or otherwise retained, and not free
363.
▲
by
foxfluff
5y ago
Implementation defined is quite different from undefined... But I agree, making this bit implementation defined is not cool. I don't have strong opinions on whether defer should be in C or not. It does seem like a potentially usefu
364.
▲
by
foxfluff
5y ago
But is failing to clean up transient resources that are only allocated for the duration of one function (or block) really a big problem with C? These tend to be the easiest ones to handle (but admittedly a bit annoying & verbose withou
365.
▲
by
foxfluff
5y ago
Certainly if the only thing I want to do is to make sure a piece of code runs when I leave the block or function, defer is the most direct way to do it. I don't care for "strictly more powerful" if it requires something as r
366.
▲
by
foxfluff
5y ago
> Besides, C programmers just won't use the feature if it requires allocation out of performance concerns. Nevermind embedded platforms where heap might be unavailable or just so scarce that its use beyond early initialization is st
367.
▲
by
foxfluff
5y ago
So then you can't for example use defer with a pointer that may get realloc'd in a loop? Or pointer to the root node of tree-to-be-built? What a half-assed defer, in my opinion.
368.
▲
by
foxfluff
5y ago
On a related note, why a filesystem and not a database? I get the feeling that a filesystem ultimately is just a .. poor man's database. Except that it's quite crappy and there are no proper transactions, many things are impossi
369.
▲
by
foxfluff
5y ago
There's a middle ground though. I think most people would consider OpenBSD for instance to be "small." It comes packed full of tools, many of which you might never use. Many things come with "user friendly" config
370.
▲
by
foxfluff
5y ago
Yeah... I've been hearing these horror stories about paypal for a very long time now and it makes my blood boil knowing that nothing's ever been done about it. I really hope that a big change is about to happen.
371.
▲
by
foxfluff
5y ago
It hit a bug that causes it to busyloop. It would do that even if you don't visit any site. https://news.ycombinator.com/item?id=29918052
372.
▲
by
foxfluff
5y ago
Meanwhile my sister's first programming course at university involved making a game using an existing bespoke framework. It mostly involved adding graphics and a few methods & some properties to objects (which already had physics
373.
▲
by
foxfluff
5y ago
There's no "anymore" in these complaints though. There's just the complaint. It's not "my parents started beating me while they in the past didn't", it's just "parents are beating me."
374.
▲
by
foxfluff
5y ago
Aye. It's also not always obvious what's the optimal tactic, and I believe in many cases there are multiple equally valid approaches and you pick the one you feel most comfortable with. Sometimes the one you start with is a dead
375.
▲
by
foxfluff
5y ago
> Put a breakpoint early on startup, once hit put a data breakpoint on the part of the state which messed up, reproduce the bug, and there's very high chance debugger will take you to the code which broke the state. Except when you
376.
▲
by
foxfluff
5y ago
Somehow we went from obvious at first glance to .. trace a variable and you find the problem eventually? Now the question is, how do you tell from the trace that the total is wrong? If you can write a function to check it in the debugger
377.
▲
by
foxfluff
5y ago
I use vim but I don't think it's a superpower and it's rare for me to need its advanced features. I doubt vim is giving me any edge over $other_editor, I just happen to find it ergonomic and a good fit for me. Maybe I don&#
378.
▲
by
foxfluff
5y ago
"Doesn't need debugger" isn't same as "error-free code." You can solve bugs by thinking about / reading code. I'd say that's the way I solve the vast majority of my bugs. Also "using a debu
379.
▲
by
foxfluff
5y ago
> a bug in a if statement that would've been obvious at a first glance with a debugger If you already knew which if statement to look at, it's irrelevant whether you use a debugger or printf(). Actually, it becomes even less re
380.
▲
by
foxfluff
5y ago
It really depends on a lot of things. Debuggers can completely throw off timing, concealing the bug you're after. Debuggers may tell you that your program state is messed up (doh, sure), but not how you got there. Figuring out how y
381.
▲
by
foxfluff
5y ago
> - there's a TON wrong with the BER family of encoding rules (BER, DER, and CER), and with every tag-length-value scheme I would like to hear more about what's wrong with tag-length-value schemes. And can these be corrected o
382.
▲
by
foxfluff
5y ago
Copyright kinda flips this around by saying that copying is (with some exceptions) the exclusive right of the rightsholder. I don't see how this is murky.
383.
▲
by
foxfluff
5y ago
It's not completely irrelevant. The US has to cooperate with whichever country Kim/Julian/etc resides in. That country can totally reject the extradition request.
384.
▲
by
foxfluff
5y ago
I'm downloading them so I can listen without being randomly paused by youtube. Also ends up saving bandwidth massively, and mpv --no-video wastes far less cpu than firefox.
385.
▲
by
foxfluff
5y ago
> I am located in Germany, but if I would start a SAAS site today, I wouldn't try to sell to the EU. Just isn't worth the trouble. If the European market with half a billion people isn't worth it for you, right, whatever I
386.
▲
by
foxfluff
5y ago
If they're an European company operating and hosting in Europe, the US government has no jurisdiction over them. If it's an international company, sucks for them (until the countries harmonize their laws to guarantee reasonable pr
387.
▲
by
foxfluff
5y ago
But why does failure to parse http headers cause the browser to busyloop and block all requests?
388.
▲
by
foxfluff
5y ago
Whenever I buy a new computer. It just seems like a good time to start afresh and only copy over the personal files I want to hang on to from the old machine.
389.
▲
by
foxfluff
5y ago
It will, I guess. In the same sense that fusion power will fix our energy issues.
390.
▲
by
foxfluff
5y ago
If you send from local ip/port X to remote ip/port Y, your router will see both pairs. The router has no problem sending responses back your way after it has stored the tuple, assuming you're receiving responses on the same
More ›