skysight-inc/HackerNews huggingface dataset:
The more code I've written, the less I care about code quality.

I think the things I could point to in my coding practice which would make the code I write now better than the code I wrote 10 years ago would be:

- I minimize interdependencies (changing a line of code should not affect something un-related)

- I go for abstractions later, only when I need them, rather than trying to think of the perfect abstraction/design pattern which will solve the problem in the most elegant or clever way

Besides that, I'm a huge fan of disposable code. In my experience 99% of the time, the best approach is to just dive into the problem and try to solve the problem in the most pragmatic way. Maybe that's hard-coding a lot of things. Maybe that's having a small amount of repetition here and there. Maybe it's writing one long function with 1000 lines.

After that it's all about continuous improvement. You spend your time solving the problem, and when your code becomes hard to work on, you spend time improving your code to make it easier to work on by cleaning things up, and adding sensible abstractions which solve the problems you actually have.

In my experience, over time this approach leaves you with a very ergonomic and easy to understand codebase.
OBS: Improve window capture support on macOS 12.3
I'm sorry, but this has all the hallmarks of quackery.
Emscriptem is targeted at browsers and for that rust does have the target wasm32-unknown-emscripten

However, when targeting wasm outside browsers wasm32-wasi is usually a better option.
A conditional define might be a good alternative tho?
> If Amazon and online shopping hadn't happened, we'd still be going to the malls.

According to https://www.strongtowns.org/, the "big mall with parking lots" infrastructure is much more expensive than the "small shops in mixed residential" infrastructure. So I would expect it was going to fail anyway, eventually, just more catastrophically, as the costs would be offloaded to local municipality and it would just all blow up all at once (as can be seen around Detroit, for example).
> Americans also tend to spend even if they actually do not have anything to spend.

Mostly because there are some mandatory luxuries, like having a car, student debt, health insurance, ridiculously expensive housing. Or just "the new iphone".

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

https://randomcriticalanalysis.com/why-conventional-wisdom-o...

> 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.

I mean, the economic surplus is spent, on what is of course critical, but the vast riches produced year by year is there. As the link argues, lifestyle choices determine where that surplus is allocated to.
Brings back memories of playing around in the shell on an Atari TT at CeBit '91 or so. Having had an apprenticeship in a company producing their own machines (Norsk Data) and porting System V, as well as having used Atari GEM graphic shells, made me want to avoid DOS or even CP/M for personal use and especially development at the time ;) Then used AIX and Interactive Systems professionally until Linux and the BSDs came about. There was also a short period in 1992 or so when I had the option to use A/UX (Apple's System V port at the time) as file server, though NetWare 2 and 3 were cheaper and better suited for DOS/Windows networking.
I think by far the largest contributor that coined mojibake was E-mail MTA. Some E-mail implementations assumed 7-bit ASCII for all text and dropped MSB on 8-bit SJIS/Unicode/etc, ending up as corrupt text at the receiving end. Next up was texts written in EUC(Extended UNIX Code)-JP probably by someone either running a real Unix(likely a Solaris) or early GNU/Linux, and floppies from a classic MacOS computer. Those must have defined it and various edge cases on web like header-encoding mismatch popularized it.

"Zhonghua fonts" issue is not necessarily linked to encoding, it's an issue about assuming or guessing locales - that has to be solved by adding a language identifier or by ending han unification.
Don't Apple have a policy that their developers aren't supposed to contribute to Open Source without explicit permission (https://news.ycombinator.com/item?id=22935263)? I imagine this is the result of that policy - if Apple wants to contribute to something as a business there isn't really anyone who would be able to use their individual account to do it without lots of people questioning why that person can when others can't.
Dude... I literally said we can call it whatever you want. What are you on about?
FYI: this is not becoming law, either criminally or civilly. Just a recommendation from a 3rd party group.
Being pedantic I'd say by volume of HTTP requests it's still true (i.e a single dynamic page load will still bring in multiple static assets)
Amazon Sweden is much worse than other regions. Nonsensical translations makes products difficult to find and top ranked products are often from sellers with spammy looking names (e.g. xuchangmadunshangmaoyouxianzerengongsi).

Before Brexit I frequently used Amazon UK. They had both good prices and fast shipping to Sweden. Same with Amazon US. I would still use them if it wasn't for the import charges.
Göran Kropp
My biggest problem with code reviews is that they are so often without value. Code review should be a chance for teams to learn from each other, catch issues, and align on coding practices and strategies. In my experience, a lot of the time code reviews are either just a task - where people try to find superficial "mistakes" just to tick a box, or worse a chance for certain colleagues to power trip and try to get other team members to submit for it's own sake.
Wow! Great article, and I love to see so many people agreeing with it.

I think most clean code stuff is snake oil and fortune telling.

So much time gets wasted in pointless discussions and tweaks that will make no difference whatsoever.

The funny thing to me is that the bigger picture; actual logic and bugs, often gets missed while all the attention is focussed on stupid "clean" little pet peeve topics.

It does seem there is shift, more and more articles and opinions like this and I'm here for it!
U.S. Venture Capital Firm in Talks to Buy Israel's Infamous Spyware Maker NSO
> If you as a hiring manager have the choice to pick between two candidates, one of whom stays cool and productive under pressure, and the other who goes blank in emergencies, which would you prefer to have on your team?

It's completely different, not even remotely comparable.

The pressure during a real-world outage is not a big deal. It's collaborative, we're all trying to solve this. And the work that needs to be done is actual real work. I'm extremely good at that, so I basically feel no pressure at all no matter how high the stakes are.

Interview pressure though? Whole different monster. It's confrontational and I'm expected to basically do improv acting on topics that have nothing to do with the actual job while someone nitpicks and eyerolls every irrelevant nonsense.
Sun Earth Tools
And what, is it your position that all the actions of hn founders are instrinsically above reproach?

At the very least i would hope we have better morality arguments than simple appeals to authority.

To be clear, i object to the notion that its wrong to criticize/debate the behaviour and ethics of others. I'm not really objecting to the original post about the trade show prank.
Yes exactly - "free will" is shorthand for "There's a mind with subjective experiences involved in all of this, and we have no idea what that means or if it even means anything."

We don't know what minds or qualia are, and until we know for sure - as opposed to hoping and guessing and "well obviously..." - these speculations are just hand-waving.

The problem is that all of physics is filtered through our minds. We literally have no way to experience reality without experiencing it through a human mind.

So although we've managed to persuade ourselves our experiences of science are "objective", all that really means is that other human minds are very likely to have similar experiences if we set up similar circumstances in similar situations.

Potentially our minds could be operating in the conceptual and experiential equivalent of the visible light spectrum, and the range of possible "objective" experiences is very much wider.
It's hilarious that in an antitrust case, you would suggest charging 30% for everyone but 10% for some self-selected group through separate "partnership" contracts.
Add WebAssembly support to skia-rust
Back when it was available, because the designer on the customer team is the only person with an iPad and somehow the rendering bugs on Safari need to be fixed for his milestone approvals.
> Newton and Einstein both seem to be on the side of hidden variables, so I'm not sure if it's unpopular among the elites.

Everyday posters on this website amaze me. I should really stop coming here...
Na this is just semantics.

There is clearly ugly code and clean code.. And generally speaking, ugly code is structured in a non obvious manner that can range from the specific implementation to naming..

Its a spectrum and after a certain point what is ugly/clean is very subjective but this is where semantics kicks in. Other than the occasional heated arguments, most teams can agree on what is ugly vs what is acceptable/subjective.
True - who can say ? Hard to argue with a WHOLE career that got "shit done" and WIDELY used by the world ?

Maybe THAT is the metric to focus on. The value of the code versus the quality ? I honestly don't know the answer ?

But I know how much of my "time and energy (as you get older you released the limiting step is your cognitive-energy not so much your actual wallclock-time) " I spent on "trying" todo code correctly which many times it means, the code doesn't get done and I end up frustrated by not shipping anything.

Working for a boss, the above used to upset me a bit. Now working for myself this REALLY upsets me and my 'income' :)

In these cases, I would DEF liked to have "Fabrice" getting shit-done-coding ability ? Again just my humble opinion :)

Maybe coding is like a marriage...
a) "You can be right or you can be happy :)"

Squinting hard enough:
b) "You can do things correctly or you can ship code in time that makes a difference ?"

I guess the "better" you are the closer the extremes are from "b". i.e IF you are the theoretical-best-coder-that-ever-lived there is should be no "distance/friction" between "coding correctly AND shipping on time code that has
an impact" ??
> a date, a visit to the bank for a mortgage application when you're very much not sure whether you'll get it, participating in a talent show, and shopping for a car, all rolled in to one

Great quote. Those feeling pretty much summarize to perfection the current fad of interviewing pressure.
https://road.cc/content/news/what-dutch-reach-289813

"It is already an offence to open a car door, or cause or permit it to be opened, so as to cause injury, punishable by a maximum fine of £1,000.

It is not a new law and drivers who do not use the Dutch Reach technique will not be fined, unless they commit the aforementioned existing offence."
A cardboard roach is not a filter, it's just a cigarette (or joint) holding/structural device. In the case of weed smokers, not having a filter is beneficial. Most cigarette smokers don't want to skip having an actual filter. Even most people I've known to use cardboard to smoke tobacco mixed with weed, would then use a filter when rolling a tobacco-only cigarette.
Which isn't what's happening. The fine is for injuring somebody with your car door, not for failing to follow the officially approved method of opening it.

But you'd never get that impression from most of the reporting around this. Deliberately misleading outrage fodder in the headlines, followed ten paragraphs later by a more honest explanation of what's happening, which directly contradicts the original headline. It's pretty disgraceful, but the pervasiveness of it smacks of some lobbying outfit feeding copy to overworked journos.
I'm all for well presented PRs/commits but I'm not sure how a good commit message mitigates the risk of a supply chain attack in this case.
Safari haven’t actually beaten Chromium in most performance benchmarks for a while now.

https://twitter.com/slightlylate/status/1485387199738642432?...
The Highway Code is not strictly law. I think OP has editorialised the title sensationally.
Is that rare? I would have thought many FAAG employees contribute to open source projects relevant to them as part of their work. After all that seems like the easiest way to influence the projects.
> Unfortunately they undermined all that with Han Unification, with the result that it's never going to be adopted in Japan.

This is an absolute shame and there is no excuse for fixing it so that variations for unified characters can be encoded before adding unimportant things like skin tones.
>That's beautiful advice. Something similar that I heard was "flow of data > dependencies > interfaces", in terms of what to worry about. Interesting how they're so similar but from different sources.

Maybe that is clue they/we are on the right track ? Coming to the similar conclusion from different angles ? :)
I don't understand how it can become law. Are there any other laws that tell you how to do something, as opposed to the end result? Here, the idea is that you shouldn't hit cyclists with your door, and the way to achieve that is to look, and the "Dutch reach" is a good way to do it. Why isn't the law just "if you hit a cyclist with your door because you didn't look, that's your fault" instead of specifying a particular way of looking (which may be a problem if you have mobility issues).

The only thing I think may come into law is that it has to be taught in driving schools.
Yeah in my original comment I was a bit careless in dropping the nuance of the situation. Even as a anglophone Québecer I'm actually in favor of laws to protect the French culture (look at Louisiana which only has a small handful of native French speakers as an example of what can happen without such protections)

But, I think it's a good example of showing Québec does things different than the US, and their libertarian notions (for good and for ill) do not totally apply for the province
So if the accounting firm didn't lie then the funds on the line item for the sprayer were spent on... a sprayer.

Someone's gonna get a Pulitzer out of this thread!
Did they ghost him or did he ghost them first? From what I can tell he had absolutely no idea about or even contact with the people he was supposed to audit/work with until long after the election had taken place.

So he turns up one random day to do his job and is surprised that he isn't on the agenda. I repeat, he never even talked to these guys after his election, never checked in with them to even properly organize things. Instead he just assumed "they would know".

> and undermine your elected auditors.

Given how much he just assumed will happen and failed to properly plan and ensure will happen he is doing quite a good job at helping them with it. And after all that his idea of fixing things is to write a 20+ tweet complaint on twitter. If these people are as corrupt as some here think they must love that guy, they couldn't have found a more superficial incompetent guy for the job if they tried.
Prime 4K is nice, but if you have a decent sound system with Atmos, then Amazon Prime is not the place.

Apple TV has been the best platform so far for 4K and Atmos content, if you also want an option to purchase a title.

https://www.highdefdigest.com/news/show/everything-on-amazon...
You can think of scenarios in which any classical state (i.e. the shared state is completely specified by the local states of the two kids) does the task with some success probability that is upper bounded, say by 75%. And you can even include some unspecified hidden variable in your classical state and could even allow the two kids to share some classical randomness (think: each of them has a button that returns the same random number for both kids). This hidden variable could be anything (a single unknown property, a whole collection of unknown properties or whatever really) and represents possibly incomplete knowledge, for example due to imperfect microscopes or equipment. Since you don't specify what this hidden variable is, it encapsulates anything that is allowed by classical physics (remember we started out with a classical state).

Now lets allow entangled states between the kids (states that can only be specified if you have both subsystems, locally if you measured such a state your result will look at least a bit random or even completely random). Then you can prove that the two kids can do the task (that has classical success probability 75%) with success probability ~85% all of a sudden.

You can write down general inequalities that describe such behaviour and that's what Bell inequalities are. The fact that entangled states in quantum mechanics violate the classical bound (which you cannot break if you demand your two kids can only share states allowed by classical physics, even if you allow unspecified hidden variables), proves that nature is not classical. It doesn't prove that nature is quantum, it just proves that nature is not classical. Bell inequalities have also been unambiguously experimentally verified [1].

In conclusion, nature allows for two-party (or multi-party) states that cannot be described by just describing the local parts of it. There is no information in the local parts, but if you look at both parts together then there is information. Think "the whole is more than the sum of its parts". Classically, the whole is the sum of its parts. Classically, you read a book page by page. If your pages are entangled with each other, you could only read your book by looking at all pages together, because if you looked a single pages separately anything written there would look like random garbage to you.

The question that remains is: Where is the information then, physically? In some sense you could say it does not exist before measurement, because only when you look at the correlations between the local measurement results of the two kids will you find out that the underlying state must have been entangled (which you get to know if the state violates a Bell inequality). But that is just one possible interpretation, there still is a lot of scientific debate about what quantum mechanics really means.

These are exactly the scenarios that make quantum so weird but fascinating at the same time.

[1] https://www.nature.com/articles/nature15759
> Nvidia's TOS forbids doing that or publishing any software that does that for others.

IANAL, but just because TOS claims something doesn't mean it is enforcable in all jurisdictions, and could potentially fall against certain interoperability or other provisions.

I'll bite. Has anyone traced the initialization of the NVIDIA binary driver and figured out what is so special for reclocking and/or reproduced it without the binary driver? If you do not want to reply publicly email is in profile.

Good luck
Interestingly, Netherland does not make it mandatory, and the government recently warned that in some circumstances, it might actually be more dangerous: https://www.nu.nl/binnenland/6180537/autodeur-met-verste-han... (Dutch)
> We need a credential that counts as passing a technical interview, so we don't have to take these tests for every single job that we apply to.

We could call this a degree, perhaps in computer science?

This seems like an excellent idea!

Unfortunately my CS degree from a very-top school (CMU) counts for nothing in so many companies.
Brit here.

We have a LOT of laws and very little enforcement. Passing a law is seen as a cheap and easy way to "do something" without actually doing anything (especially anything that might need resourcing).

We had very strict covid mask rules. 50% ignore them. The government claims they've done all that can be done.
Like writing, code gets better with mulling over most parts (for a long time) and rewriting a lot after insights were properly formed. When you start something, you are exploring; how can you expect that that code will be anywhere close to an ideal situation that time? People say refactoring but in my opinion that is not radical enough; you will be able to redo problems you encountered by maybe completely re-architecting the solution. This luxury is not really a thing many people can afford ofcourse; we just make stuff work well enough to get paid. And it shows.
> Never say what you ware doing (it's obvious this commit is updating build scripts)

DEFINITELY say what you are doing. And then say why.

This blog post is a good description of the most prevalent convention in how to write good and useful messages (e.g. this is what the Linux Kernel does and given the history of git there's some flow down): https://cbea.ms/git-commit/

The key thing that means you should start with what is having a short one-line summary of what you're doing so you can look at a simple log and see which commit you're interested in.
Woz OS for Apple-1 – high-level view in Python
Disagree. I feel like I have seen this play out a number of times in my career:

- New engineer joins a team with a mature codebase

- New engineer complains about code quality, convinces management on a total rewrite to improve code quality

- New codebase starts out simple and elegant

- Eventually the codebase gets just as bulky and convoluted as the old one, because the ugliness was just a reflection of the complexity of the problem space

A lot of times "ugly" is just a stand-in for "not written by me"
> Except you can install arbitrary apps on iOS in much the same way you can install them on Linux: get the source code and compile yourself

Sort of. You can do this, but only for three apps at a time. And you have to be tethered to a PC that does the compiling. And you have to validate your credentials with Apple online for them to let you sign the app (which is required for running it on your phone). And the app will refuse to open after seven days have passed.

The three app limit is lifted and seven day killswitch changed to a 365 day one if you pay Apple $100 annually. Even then the other restrictions remain, so you can't, for instance, have your apps auto-update.

Compare to Android, where you can download an f-droid.apk, hit a switch or two in your settings, and get untethered app installs with semi-automatic updates. Unfortunately Android restricts fully automatic updates to preinstalled stores.
> Except you can install arbitrary apps on iOS

If you have a Mac, and you renew the license every 7 days.. I would hardly put it in the “can install” category.
I always felt bad for doing things "the pragmatic way", but your comment made me realize that maybe I'm just not experienced enough to embrace the fact that no code is pretty from the start. Thanks!
I've been waiting to see this type of thing since reading Larry Niven scifi stories involving his transport booth technology. A transporter booth on every street corner type of thing [think "phone booth" in 1970s Superman days].

In a particular one, a journalist is compelled to investigate, write, and publish a story regarding some implications of this transport booth technology in order to help "clear his name" of some possible legal charges. In one scene, the guy is walking down a few streets crowded with new "temp" housing and shops and micro-industry and foot traffic where there once would have been nothing but vehicle traffic and empty parking spots and delivery-only zones and such. "These folks have caught on quicker than the rest of us", the guy considers.

IRL with dead malls laying around for ~30 years, every time I've passed by I've had similar marbles rolling around in my head.
It's not a law, the highway code does contain legal requirements but it's primary purpose is as a guide, particularly to new drivers.