skysight-inc/HackerNews huggingface dataset:
So True !
After 25+ years of coding, I know one thing. I STILL don't know how to "code correctly".

And apart from a few gifted individuals (Rob Pike, Fabrice Bellard Bobby Bingham [ffMpeg team] etc) I'm HIGHLY suspicious of ppl and programmers who claim "they can program correctly" and that "this xyz is the correct way/stack/method/arch".

Background:CS grad, start coding at around 13 (thank you dad !) I am well versed in C,C++,PHP,Go,TypeScript and to a lesser degree Java and a few bits and bobs in between F#,Haskell,LISP...

The above is not to brag (not that it's brag worthy after 25 years you bound to pick up a few tools) just to put it in perspective.

On Code quality:
I've noticed it's easy to agree/identify the "extreme cases" the VERY VERY BAD CODING and the very very GOOD CODING. But most of the coders and codebases falls somewhere in between where the code-quality-water quickly gets murky.

PS2. Oh and on 'code reviews': It would be cool if code-reviews were done "anonymously" i.e I should not know until the very end WHO wrote the code. Helps to keep any personal biases at bay - my 2cents.

The best thus far advise I've seen on code-quality guidelines is from a comment on HN:

>I try to optimize my code around reducing state, coupling, complexity and code, in that order. I'm willing to add increased coupling if it makes my code more stateless. I'm willing to make it more complex if it reduces coupling. And I'm willing to duplicate code if it makes the code less complex. Only if it doesn't increase state, coupling or complexity do I dedup code.

Source: https://news.ycombinator.com/item?id=11042400

Sure I might just be a dumb idiot or completely not gifted in the "art or science" of coding. :)
"Clean code" is just a buzzword that people use in interviews, on blogposts aimed at employers, and to make programmers believe they are good programmers, since they already bought the koolaid.

If you break it down to its principles, and then explain its advantages and disadvantages for the problem at hand, then it's respectable; but used as a buzzword it should ring alarm bells.
Yaknow, I was expecting somebody would make a CF plugin for Waypoint. I just didn't expect it'd be before 1.0! I'm going to take a look at this, thanks.
It's amazing that such practices are even legal.
I agree with my whole heart.

I think you forgot one of the most devastating points in Clean Code, namely short functions and DRY (when overdoing it). It leads to the same problem "jumping through 50 files".

My favorite subversive action to write clean code is using jumps. There is no end to how convoluted code people write to avoid the oh so harmful leap.

I feel like much of the need for short functions comes from nesting ifs moving to code more and more to the right. That is easily solved by jumps or early returns. Early returns can lead to too many functions if not doing with modesty, though.

EDIT:
Dogmas taking the developer out of his comfort zone is probably the main culprit. Any advice is good, as long as you don't follow it.
Microsoft has made an attempt with S mode, which locks down Windows 10/11 so that apps can only be installed from Windows App Store. I don't believe it's been going very well for them.
Not only that, XHTML already had the ground work for web components.

XML is pretty much alive in the .NET and Java ecosystems.
What would be his ulterior motive? there's no money in it for him; ivermectin is dirt cheap and he doesn't produce it. If you think it is all reputational, then it would have been easier and better to salvage his reputation by just admitting his educated guess was wrong if it is in fact wrong, but more research was necessary to prove that. No one would fault him for that, and he knows that.

I think he is just sincerely convinced by the evidence and wants to help tackle the pandemic. He made multiple recommendations some of which got adopted as standard of care (ivermectin wasn't adopted), before any good research was done, simply because that was the best that could be done in a new pandemic. He has got a pretty good track record, even discounting ivermectin

Then again, there are also studies designed to undermine the evidence for off label treatments, such as the one about HCQ that was retracted from the Lancet. So if you are gonna question people's motives then at least question both sides. resistance to ivermectin may also be unscientific in nature. Pharma companies have a lot more riding on mass vaccination than Kory has on ivermectin
I think the point was to make you walk past a bunch of stores to get to the one you wanted, increasing your chance of buying something else (Whether food or merch). In strip malls and freestanding buildings, you go into the store you want, get your stuff, and leave.
You'll be convinced once you understand the EPR paradox and Bell's inequality. So look those up if you want to be convinced.
I think your interpretation was probably right.

> My meta-prediction: bat-shit malcontents are running for local office in droves, and every aspect of local government is going to become insane and dynfunctional until the entire country collapses under the weight of incompetents with massive egos

I genuinely don't know whether this is the case with this guy (I do not know enough about the person tweeting) but this is apparently a very real, growing problem. I kinda hope these people get bored and move on.
> He was literally the only guy with more than a single digit number of votes, and won with 200 odd votes.

So he was elected almost unanimously?
Only if one insists in writing it using vi.
I don’t know, I think youtube vanced would be the most common target, which would only cut into google’s profit. For the ~1 dollar apps, people would rather buy it and other subscription-based programs would also continue to be purchased through apple I believe, decreasing their immediate profits only by a small margin, but potentially making it last for much longer. But of course I don’t know all the details they do.
I am in healthcare and the leadership whoever that is makes me question continuing. Their decisions just don’t come with reason I am starting to question who is making such decisions. We are not supported and are left out to face the front lines with no sound decision making process behind what we do. If I come across a severely sick patient I am asked to wear a gown that covers 2/3s of my front from my neck to my knees along with my basic medical mask and face shield. That is all the protection I get. My head nurses do not show up and test the clients for covid they just get deemed droplet precautions until they get better. If they are confirmed covid then we can get an N95 mask but no one is testing them unless they test their selves and all my clients are elderly so not going to be tested. Now 2 months after firing those who choose not to get vaccinated we are told we have to work even with covid if our symptoms are not serious. The lunacy I am seeing is highly turning me off from doing this forever. What if it was Ebola? There is no way I can trust my leadership to make the correct decisions to keep me safe. And I don’t have any authority to use resources or make change myself. It is very tiring to do this job day after day and with the housing market I can not even afford to get into a house. I love my job but am considering a change to get into something higher paying and worth my time.
Quite unfortunate - the US/SU case would make a nice Unicode+political pun.
I'm all for the following the spirit of things, but I also want to take a minute to disagree with the "without being able to explain why" part.

I have worked with people who were super booked up on Go4 and all the design stuff, and yet they can be fairly insufferable to work with when they parrot design advice from all this stuff, precisely because they can't explain why in every given situation. Then, on the receiving end of things, most of the criticism people who are expressing in this forum wrt to uncle bob, do so about examples where they coming from the perspective of something they understand.

I think there is A LOT of value in all of this experience, but it has 0 utility if you don't understand it. In other words, you are much better off not considering how you feel about code at all, and always sticking to doing things because you understand why. (And I'd say 'understand' means in a way that you can explain to someone else who may be skeptical). Context is key... so it's like if you're about to do a live coding demo in front of the board, then yeah, it's ok to comment stuff out - I think that's obvious. Ideally, your outcomes will be much, much better if they're coming from those 'obvious' points of view in any given situation.

Any just to be fair, doing something because you're curious, or it's fun, is just a good a reason as any, it just depends on the context.

This is why, there are other people who I've worked with, who know all that stuff - I'm talking super senior people - and yet rarely ever cite it or even mention it. Usually, they will ask questions because they're patiently trying to get you (or whomever) to see for yourself the same, all-encompassing 'obvious' reason, that overrides all the other important factors in a given context, that they already see. If you ask them why a piece of code that doesn't 'feel right' to you is the way it is, they'll usually have a story about some situation, where they just had to do it that way, and maybe it's bad now but if you were there, and knew what they knew, you would have probably done the same.

So, my point is, yes uncle bob stuff is fairly sound, but no I don't agree that we should follow it if we don't understand it and we're better off almost always sticking to what we do understand. O but also cool analogy about the quick and dirty. I just realized though that if you invert it completely it's like 'slow and clean'.
The "class" is 1.5 hours long.
Vitamin D and fish oil supplements may reduce risk of autoimmune disease
- #if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_15
+ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101500 // __MAC_10_15

ah, yes, clean code
Great read. I'm a cochlear implant recipient. I live in Melbourne and had my operation at the Eye and Ear Hospital where Graeme Clark did his research, which I thought was pretty neat.

For unknown reasons my normal hearing deteriorated rapidly in my late 30s to the point where my right ear became "profoundly deaf". (My left ear only hears up to 1500 Hz or so.) I got the implant in my right ear in late 2015 and it was literally life changing.

With the combination of the implant and the residual low frequency hearing in my left ear, in most situations my hearing is almost normal. I can understand speech fine and appreciate music.
> what leads you to believe that software is perpetually maintained and ported to newer releases.

Apple has never hesitated deprecating and then removing apis. Right now they have translation software so you can run x86 apps on their arm hardware but guess what? In two years a release will come out that doesn’t have that anymore and apps that are unmaintained and haven’t been recompiled or ported to arm won’t work anymore.

The only argument there is is that it isn’t too nice to do this in a point release. But it wouldn’t surprise me if their hand got forced by some security issue that couldn’t be fixed. Obviously they aren’t going to make the huge investment required to fix it themselves, it’s dead technology.
Could it be that it helps you long term in that it keeps you from needing even stronger correction?
This is something I can totally reflect on. I am used to polishing things to production and showing my products to the world.

But working with wood a crippling anxiety hangs over me.
There's no difference. All extensions provide optional features for the browser.

On Android, I would recommend Mull (a Firefox fork) over Firefox:

https://f-droid.org/en/packages/us.spotco.fennec_dos/

On Mull, you can install any compatible extension from https://addons.mozilla.org even if it's not whitelisted.* But a whitelisted extension is no less of an extension than a non-whitelisted one.

* Instructions (steps 1-3 not required): https://blog.mozilla.org/addons/2020/09/29/expanded-extensio...
And safe systems programming languages on top of that.
I hope this is part of a new positive development. But to me it sounds like one more in a series about biofuel that has generally gone nowhere or hit some limit that is not getting better.

I say that because this same story pops up every ~2-3 years, but the important question that never gets conveniently ignored in the articles is, they flew using plant-based fuel at what price?

Price is what determines everything for our behavior, including airlines deciding to fly planes all over the place. Reporters (and of course the press release) seem allergic to addressing such questions.

If you read a story about biofuels and it has no mention of the price of the fuel, you can bet it's pretty much a meaningless piece of news. There is not a single $ sign in the story.

It always turns out the fuel costs like $25 per gallon to produce. The basic concept that you can make fuel from biomass is not challenging. And flying it in a plane's gas tank is not new. Manufacturing it at a competitive price is.

What will happen is that this will go nowhere, because neither United Airlines nor any other carrier will pay that per gallon compared to the $6-7 they usually pay. Unless it's continuously subsidized. Or until a technology comes along to make the price much more economical.

Past examples:

2008: https://abcnews.go.com/Technology/story?id=4338149&page=1

2010: https://www.scientificamerican.com/gallery/military-green-us...

2011: https://www.npr.org/2011/09/26/140702387/air-force-and-navy-...

2016: https://www.biofuelsdigest.com/bdigest/2016/10/02/american-a...

2018: https://www.theguardian.com/environment/2018/jan/30/qantas-u...

Not a peep heard from these practically since.

Sorry this is a little negative. But if there is to be any informed / useful understanding of the topic (which I think this place is about), and not just feeling good after reading a story for 30 seconds, this is the key issue, not just the nice headline. Otherwise you go away for a couple years and wonder "hey what happened to that good news about achieving biofuels?"

It's like if I told you I demonstrated that we could run your car on biofuels. Great. At $25/gallon? Not so impressive.
It's a valid point, however shall we at least celebrate a bit the fact that a Big Tech is actually contributing in the project?
IIRC Michael told me he looked up the IP address and it seemed legitimate.
As many have stated here, the problem is not that there aren't good data exchange protocols in the world, the problem is the PROTOCOL or the MODEL by which the world works, which is maximizing financial profit, not civilizational profit. Humanity is not yet capable of acting as a whole, we're still in a paradigm where each part is trying to rule the other parts. With this kind of mindset, a territorial mindset, it's only logical that every actor out there is trying to control as much as it can, and create an advantage for itself. That's why no sharing and cooperation data protocol catches, because those are incompatible with the current state of Affairs.
Actually, data from the only places which break this stuff out properly (like the UK) shows the rate amongst vaccinated people is massively higher than the rate amongst unvaccinated people. It's been like this for quite some time. Effectiveness is sharply negative by anywhere between 50% and 300% depending on age group.
After writing this comment I did some more research. Apparently this is actually a bug in Chrome itself (!).

https://bugs.chromium.org/p/chromium/issues/detail?id=127243...
Could you give some examples? There is nothing for Java or Haskell, other than perhaps the almost killed iSH, but that is also a giant hack trying to balance on a thin wire. Apple didn’t take it down only because the huge backlash, which is not the case for smaller apps, unfortunately.
You're on a website whose co-founder managed to disable an enormous network of computers with a piece of software, for which he served jail time and was fined.

https://en.wikipedia.org/wiki/Robert_Tappan_Morris

Here we venerate such people.

And as computer related pranks go, this one was pretty mild and required some pretty intimate knowledge of the device. If I had been in that booth I would have engaged the person to see what else they know about it and why.
I thought embedding compilers and the like wasn't permitted on iOS? I've seen reports of apps being pulled due to embedding lua, among other things.
There is a simple answer to the proposed question(s): Parallel Universes. Some of them might have classical physics only.
Browser sandboxing currently seems to work, users vaugely have a sense of how to avoid hacking on the web. A new protocol would have a lot of catching up to do, and would probably just be... a modified browser, because browsers are amazing at GUI stuff.

Browsers as OSes work fine, aside from the fact that all the advanced features aren't real standards, and everyone other than Google tries to kill them, so you can never be sure what's going to get deprecated later.
IME I write about 10-20 as many data records as "classes". I do use "private" from time to time to protect invariants. But if the default was switched to public, my code on balance would be a lot shorter and readable. I'm not saying that "private" shouldn't exist. I'm saying it's a poor default.
Shopping, not so much.

But cities need bars, restaurants, nightclubs, theatres, cinemas and so on, and Friday night is prime time for them (when there's not a pandemic)

If malls-with-added-housing are to become the walkable urban neighbourhoods of the future, you'd expect them to move in that direction.
Those town centers have survived cars in many places outside North America. In Netherland it's very common to have houses above shops, and in newer developments, either parking or public transport below ground, while the ground level is mostly for pedestrians and bikes.

It's mostly North America (both US and Canada at least; no idea about Mexico) that seems to have outlawed this style of building, and enforced extremely car-dependent suburbs, big box stores in a wasteland of parking lots, and dangerous stroads to connect them. I've heard that the main thing that's driving American cities to bankruptcy is the cost of maintaining inefficient suburban infrastructure.
Apparently not the first time from the activity of the user:

https://github.com/Developer-Ecosystem-Engineering?tab=overv...

https://github.com/obsproject/obs-browser/pull/310

Strangely, a lot of contributions to numpy.
Was just about to comment with this link. A useful counterpoint whenever Clean Code comes up.

I do think this article makes a lot of valid criticisms and it’s well worth a read. I remember being influenced by it early on but then re-read it as I gained more experience. This article sums up what I felt on rereading.
I don't agree with your position that regular people shouldn't know about cases where rule of law failed, because it might make them question the rule of law.

A strong and resilient democracy is built on transparency, not on hiding information.

Anything that people put resistance towards public disclosure is always a strong smell; not dissimilar to this township refusing to swear in an independent auditor.
Using map?
Presumably the sort of people who can task spy satellites are the secret service.
Yes, I agree with you. Another thing is how do you know which of the removed features will be asked to be put back? You can't really know.

You can guess, but that will leave you with many classes/functions commented out only in the hope that one day one of them will be requested to be put back. This leads to nobody daring to remove old code for months/years.

Then, one day, a new coder on the team just ask WTF is this here, realize it's outdated and not running anymore, and will remove the whole thing. Then, the "senior" guy on the team comes shouting at him/her: "We might need it one day, what do you know about our team, bla bla bla, we had a feature 4 years ago that was removed and we had to add back, so now we have the rule of commenting things out". Yuck, what a nightmare.

Just create good commit messages, don't group irrelevant changes together, and you'll be able to find the commit if you really have to. And even if you can't, you know you can still just develop that thing again, right?
While Obj-C had a massive influence to java, I'd not call it clone - even Java 0.9 is a lot better language than Obj-C of 2010 (or so). The saving grace of Obj-C - it could include normal C just like that.
The pull request page might be more readable: https://github.com/obsproject/obs-studio/pull/5875
Everyone that wants it probably just wants it not in my backyard.
Embedded dev pitching in with: AFE = analog front end, the part of a mixed-signal circuit that deals with analog signals (filtering, amplifying, etc).
> The US is a very rich country.

> [...] on average US residents produce the most

Of course that is true.

> It's expected that US spending is the highest.

And of course there is a connection here. But you are not necessarily rich, when you spend more. By definition you are rich when you have more.

Americans often do not get more for spending more (see healthcare and others) so after spending they would actually often be poorer.

Americans also tend to spend even if they actually do not have anything to spend.
partially agree, but I also think that it is in many cases worthwhile entertainment compared to many other entertainment options available.

but also I think that understanding paradigms and thought processes outside your usual comfort zone is education, albeit not the formal one. And this is what Masterclass does great imho.
The message for the PR (under the Conversation tab) justifies this as:

> plugins/mac-capture/mac-display-capture.m:621 - The __MAC_10_15 define may not exist on devices running < 10.15, resulting in this section not being appropriately avoided during compilation. Swapping to 101500 should work for all versions of macOS.
That's why I found the "astroturfing" mention interesting. Epic's side of this arrangement has been marketing and astroturfing extensively. The entire launch of the piece was a marketing blitz.
That's more like the vim or nano of notetaking!
> This is just a lazy buzzword you can use to shut down other peoples opinions

It can be used that way, but it isn't just that. You could say the same about the word "racist", "TERF", or "transphobe".

> Notice how none of these things actually have any substance

I notice substance to these claims all the time (as well as non-substantial ones).

People to whom these words accurately apply have a stake as dismissing them though.
my accunt is over a year old with over 5K karma, almost all of which is comment karma.

Name one supervisor or manager of this township whose background explains my post history. There's a lot there, including some SQL code earlier today if I remember and probably a bunch of stuff about the field in which I have a PhD if you dig long enough.

So. Anyways. The township supervisor/admin who can pass coding interview questions and has a phd in a math-heavy field. What's their name again? Go ahead. I'm waiting.

Could it be possible that I have a genuine distaste for conspiratorial nutbags who turn local government into bored single rural white dude version of the instagram influencer game?
Noted. I've never gotten involved in local politics but friends who have seem to have nothing but stories of batshit crazies coming out of the woodwork for the past two years. So this is what that looks like? But giving him the benefit of the doubt that he means to do the job, how is he supposed to request the books for an audit if the council won't acknowledge his position?