skysight-inc/HackerNews huggingface dataset:
1. If you broke a code, don't generalise it as an inherent problem of clean code. Just find what exactly you did wrong.
2. If the only reason you refactored it was because you felt it's not clean, don't do it - that code doesn't look terrible to me anyway.
3. To do this kind of refactoring you need good test coverage. So, start there. This also makes sure that you understand the specs well enough to refactor.
4. Clean code is good. It's a skill to know what is good code and what is bad code, what is better code and what is worse code and when to give in on clean code and compromise. Practice it.
If you try to abstract away tests, you often just end up re-implementing the same abstractions used in the actual code, and you can end up not catching unfounded assumptions that your abstraction is making in both the tests and the code. There is a scope for having test helpers / utils to make tests easier to write, but you should be minimalist with these.
Emacs eww, lynx?
...and also your phone ROMs, if you flash them. And drivers. And everything else you need to operate your devices.

I have a Moto G2 a.k.a. "Titan" (2014), flashed it to LineageOS, bricked it three years ago, got another phone, recently checked it out again, and couldn't download LineageOS for it anymore.

Luckily, MicroG still had a ROM for it, and now it works fine, but I'd've preferred the pure LOS version, as it runs Android 7, on which Google Play Services is not an absolute necessity (with Android 8, you need it to get push notifications).

I believe I can still get the source code for it and compile it myself, but I've never done that for an Android ROM before, and I'm not particularly keen on trying that out now.

My point being: Your devices could, in theory, live forever, but the files for it (ROMs and drivers) may not always be available, and knowing the internet, won't.

In my field (industrial IT), it's not uncommon to still have PCs running on Intel Core2 systems, but more and more vendors are dropping the product pages and driver files for them. Pentium 4s are also still being used, but good luck finding drivers for them.
This is about ownership. I agree there's no need to be personally attached to your own code. I have no problem with someone taking ownership of my work (understand refactoring/abstracting the crap out of it for the sake of Engineering). But the one day that person leaves the team, you have no choice but deal with that person's mental model, as nice or convoluted it was while refactoring. I've had this experience in every team I've worked with...
Also anything scheduled, you have to be there early enough to account for uncertainty

You've got to do this no matter mode of transport you use.

Someone in another thread was telling me 5 miles is a long way in a city, but I used to live literally a few hundred feet from work and yet my commute was about ten minutes, either by bus or by car, compared to my current location 5 miles away that takes about the same time. There were various reasons, from the roads being perpendicular to the direction required, and living in a multistory building that required several minutes of walking to get to the parking garage or bus stop. Why didn't I walk? I did try it a few times, but it required crossing two highways where people go over 50 mph, a street in the middle where people often go 40 or over, no crosswalks whatsoever, and a line of people merging on to the highway in the morning rush who all want to run you over. So anyway, this is the best possible scenario for a bus, and it only could match a car (or walking) in time elapsed.

Well if walking is unpleasant choosing a mode of transportation that makes walking less pleasant is a bit of a self-fulfilling prophecy. Of course driving is more convenient, that's what your city was optimized for... at the expense of other modes of locomotion.

Bus fare is cheaper than owning a car, but if you're going to have a car anyway, it's not that much cheaper than gas & wear, if at all.

"gas & wear" account for a portion of the TCO but ignore things like registration, insurance, and cost of purchase. Subprime car loans are a very real thing, and the average American car costs its owners over $300/mo ($381/mo is the average payment for a used car, $530/mo for a new one)[0].

Bus fare (public transit really) is far, far cheaper than that. A monthly Muni pass that allows BART usage within the city costs around $100 ($80 w/o BART access). A three-zone Caltrain pass (which would get you from Mountain View to San Francisco) runs $231 and includes VTA and SamTrans access. Still cheaper than the typical car BEFORE you start paying for gas, maintenance, repairs, registration, and insurance.

0: https://www.nerdwallet.com/blog/loans/auto-loans/average-mon...
Law enforcement often does things that make their job easier. Said things just as often encroach upon our rights as citizens. We shouldn’t allow them to exist for that reason.
So, I worked remote for 4 months in Hawaii. 10 mins from a few smaller breaks. I surfed almost every day, and got coaching from an experienced surfer. I went from nothing to being able to surf a shortboard in 6 ft swell. A low intermediate level. It took another few months of surfing twice a week and I am now at an upper intermediate level. That means handling 7-8 foot surf, being able to handle rights and left, varying conditions, cutbacks and snaps.

My take : surfing is really hard. Most people struggle because of the physical conditioning needed and the proximity to good waves. I thought boxing had a harder and steeper learning curve with more technical variables, especially when up against a human opponent.

Also, This guy took way too long to get good.
That sounds incredibly interesting, do you have a site for the project?
Does the sad realization occur to anyone else that if all software was open instead of proprietary, we probably would already have the most optimized, most efficient, most advanced software? Instead, most of it's proprietary, so we've been re-inventing the wheel for decades.

I remember how well and how fast software worked 20 years ago. Today I have to reboot my telephone to make a call.
That end of year rush to finish projects in order to get them on your yearly review... :rolls eyes:
Lots of corner cutting happens in december.
The Pragmatic Programmer is pretty zealous about DRY. For instance, the authors describe how they inserted sample code snippets into the book using specialized scripts developed for that purpose. A simple copy paste wasn't good enough (see p. 100-101). Granted, they had wanted to make sure the code snippets were tested and updated as needed, but repeating code anywhere seems to be a bad practice according this definition.
> Wrong, the Supreme Court produced a test for use in case of litigation, not to proactively apply to every non-litigant.

That's...not how law works. The law doesn't adopt a different meaning in litigation than it has in administrative application; when the Court adopts an interpretration/operationalization of the law (which is what adopting a “test for use in litigation” is), it defines what the law is. That's true in general in common law systems, and it's certainly true in specific in that administrative application if California State Law is controlled by how that law has been interpreted by the State Supreme Court.
Not really. Can you think of any bigoted racist remark from 12 years ago that people still talk about? Stuff like that gets a brief spurt of outrage and then gets forgotten when the next outrage comes along.
…which of course is a valid reason to deny him access from your service, too.
Fossil?
or freedom from the chains of living. It would be interesting to see how everyone reacts to an instant death switch or ability to set your own death date lower or higher than your natural life expectancy without society having control over it. Not only people want control over their lives but once they get it, they will naturally want to control others.
What if advanced medicine can extend your life beyond your natural life expectancy (maybe even immortality) but you don't want to live that longer?
Why isn't it always a good thing to cure people and prevent them from dying as long as possible, John?

Religion perpetuated the notion that living is inherently better than death despite suffering and we are stuck with it everywhere.

Rationally, is it true that someone can be better off dead?
No. For something to be better, it requires comparison of former with later state. Since you won't exist, there is no state to compare. No one dead can feel sadness. (of course that's relying on there being no after life or reincarnation)

Flip that switch, is it true someone can be better off living?
No. For the same reason, you have to presume continued existence is good since you can't rely on comparing states.

How do you know continued existence will be good or better?

That you can't. You can make a guess based on data relying on hedonism but that's all there is. No one agrees on what good continued existence is either so people in part are using their experience and values to judge which doesn't make sense if you allow individuals to have freedom of deciding their own values and life.

I say, we stop extending life expectancy and focus on cutting off the problems that make existing existence a pain even if for majority, happiness or society outweigh it. There are many useless things people waste their life on currently, why do they need to?
At least from the last time this came up on HN, it was about Google's software being used via a server actually owned by the partner hospital, and google's access was "only via a few employees"; IIRC it wasn't data stored on their servers, or it was only stored via Google Cloud Storage (and I doubt they'd compromise security on GCP buckets for advertising purposes).
> Anyways, not having correct stack traces is a HUGE no-no in production code

I think that’s misleading.

Not having a comprehensive stack trace is much more painful for imperative or especially OO code, where the state at the time of failure is practically impossible to discern.

Erlang gets away with it (for decidedly non-trivial production code like much of the world’s cellular routing) because state is much easier to determine.

(Or maybe I’m blowing smoke. Certainly that’s how it feels to me.)
Current motion is maybe we'll get a Queue::setBufferSubData and setTextureSubData, or not. And even if we get them, it's problematic to allow the copy to be direct if this part of the buffer isn't used (while some other part is used) by the GPU.
True haters are usually those who do not fully understand the subject of their hatred. Because of that, it's always safe to ignore them because the target should know deeply within themselves why they are right.

But there is also a class of fanboys who gradually became disillusioned, for they have come to realize that the emperor has no clothes. For these people it's often the case that the same ones who lifted the star to the top will also cause its downfall. Peter Thiel has written about this in his book, and history is littered with such examples.

Malcolm Gladwell did a good job exploring this type of social behavior in his book.
I don't even know if you still use Google One support post account ban I was just pointing out Google is not only capable but they already operate a human support service at extremely low cost.
> “I was actually able to write Neuromancer because I didn’t know anything about computers,” he says. “I knew literally nothing. What I did was deconstruct the poetics of the language of people who were already working in the field.

This is one of the most powerful statements about the nature of art I've ever read. It's also a cogent insight into why we should teach the humanities.
If living a fuller life through risk costs me five years, I'll take the trade. Perhaps mortality is not the only metric worth optimizing for some people.
I've vouched for your comment which was flagged, I think you make some reasonable points, if somewhat clumsy, but are valid for discussion, especially in regards to children. If the parent poster is an adult then I'm fine with what they wish to do to their body.

I don't have an axe to grind regarding top or bottom surgery in adults. But given the current troubling reports about the activities of the Tavistock clinic, especially with regards to children being supplied puberty blockers etc and perhaps regrettable surgeries (offshore by ill informed parents), this warrants more rigorous study by the health profession.
How can we help the homeless? Let’s start by asking them
Yes password are annoyance, friction and waste of time. Not to mention 2FA that is worse. For the Dr, his upmost concern is to treat the patient not deal with extra layer of annoyance.

As an IT or security personel your job is to support them and assure security without creating extra friction or productivity loss. Yes it is hard but that is the challenge.

This is what a often neglected by security professional and just blaming the user.
That ride costs $298.50/mo, or about $7.50 one-way.

$300/mo will get you a four-zone monthly pass on Caltrain. That will get you from San Jose to SF. From Mountain View the three-zone monthly pass costs $231/mo (or about $5.75 per trip).
My experience is that good programmers prefer extra abstraction and bad programmers prefer extra repetition. Given that we need to work with bad programmers, sometimes it makes sense to make things easier for them. But repetition is wrong and a source of bugs. Each time you give in and keep a repetition that you know it should not be there you are crippling yourself to make us programmers a commodity.
> The only ones that can actually pull through now are media powerhouses with their own legal team (WaPo, NYT)

And these are large organizations that also have financial relationships with and ownership of the big companies and governments that need to be reported on. WaPo is an extreme example of links to massive corporations, obscenely wealthy oligarchs, and heavy government contracting, but similar can be said about other large media companies (the number of which could be counted on your fingers.)

They're not going to save us from anything.
It’s common, but you’re not weird. I’ve done a lot of React and front end programming, and I hate this pattern, too.
Making a Drone with Lego Motors and Propellers
And a story about not having a code review process prior to check-in. How is a team of developers ever going to work together if they all write code completely on their own with zero input from or approval by others? That's why style guides exist.
Even if that's true, there's no reason to believe our universe is particularly big for a universe :)
It is, in many ways, a worse vulnerability than rubber-hose cryptanalysis. When you run away from the person with the hose, you can change your passwords and they won't be compromised any more.

If somebody has your phone, a physical address associated with you, and some basic biographical information, they can continue recovering access to your accounts in a way which is difficult to escape, especially because of the misplaced trust in using phone numbers for security.

The threat in that situation is being vulnerable and having to digitally escape as well as physically escape, and if you don't do both simultaneously you can be continuously compromised in a way which is very difficult to succeed.
That's not the point.

It is possible to prove ghosts exist (if they exist).

It is not possible to prove ghosts do not exist (whether or not they exist).
Imagine if your landlord decided to not only evict you but immediately confiscate any possessions you have in their property.
"Fuchs" (pronounced fooks) is the German word for "Fox", and the other variants (Fux etc) have the same pronunciation.

The flower Fuchsia is named after someone called Fuchs, and therefore the correct pronunciation is "fook-seeah", not "foo-shah".
Weren't large areas of North Africa that are now desert used as Roman farmland?
What's wrong with being a little bit off-topic every now and then as long as it's somewhat interesting?

For a lot of us, HN is a big part of our lives, it's our water-cooler place where we come to chat and wind down. I was myself curious to hear what folks here thought of the "Epstein didn't kill himself" trope.
The whole modality of a single package in a single configuration at a single version is broken and dead dependency-hell of yesteryear. Still, ports and packages collections mechanically and unthinkingly continue this failed and broken modality of wasted effort. Packaging multiple versions and multiple configurations side-by-side similar to Habitat (hab) and Nix independent is the only way to go. This approach supersedes vendored dependencies because it allows garbage collection and sharing of identical dependencies rather than duplicating them. Furthermore, it allows real choices without an either-or and real real flexibility that single recipes that always attempt to track a rolling version can never possibly achieve.

Also broken is maintaining multiple packages that package multiple versions of the same package with combinations of external, frequently changing platform packages like rubygems that are packaged manually. Multiple versions of the same package should share common recipe declarations as much possible and be managed more cleanly. Native extensions should be built automatically in CI/CD using polling or notifications rather than manual methods that too often lead to outdated, vulnerable dependencies and create too much pointless, repetitious busywork.
For what it's worth it, I absolutely love Kraftwerk but, having coded in Scheme for about a decade, I very much dislike Scheme. I'd take Haskell, C++, or Java over Scheme without hesitation. I feel that my life is too short to code in languages without static type checks.
Twilio seems to have some great engineers and I'm often impressed by the quality of their technical writing, but you'd never know it from their console horrowshow UX.

See also: AWS.
Buckeye Bullet
Problem is, it's hard to tell the difference in advance. In this case, it only became apparent to OP some time down the line.
A little beside the topic perhaps, but my all time favorite desert greening project is connecting the huge Qattara Depression in Egypt with the ocean.

This would create a huge lake in northwestern Egypt, potentially home for millions. It would also negate one year of climate change induced sea rise, or so I read somewhere.

https://www.energycentral.com/c/ec/qattara-depression-projec...

Map of the potential lake, if brought up to sea level: https://en.wikipedia.org/wiki/Qattara_Depression#/media/File...
Finally, a time for Electron and JVM to go away.
inversion of control
The person below does not want help with turning around her life. She just wants free stuff. Quoting the article:

'Sitting on the sidewalk outside a newsstand on Fairfax, Shannon Soole, 44, who might look tough at first glance but has sweet eyes and likes to crochet afghans, told me a lot of things that would be useful to her: medicine for headaches and colds and stomachaches. “A lot of us have trouble with our teeth. We need aspirin,” she said. Cans of tuna and chili are good.

But she’s not into the proselytizing people “who try to stomach punch you with AA.” She’s frank about her vices — mainly crystal meth — and not eager to face her current existence without them.

“Don’t hand me a piece of Bible literature. I’m quite aware of where I stand there,” Mulloy told me in Van Nuys. “I don’t need to read the Bible. I want an apartment. I want my own set of towels.”'
The web is the ultimate "just write code" platform there ever was, literally everything that's not your PWA and API is handled by someone else in the chain.
Drivers have to go the in-personal approval thing first though, and they'd present their driver's license that would have their name on it - so the Lyft/Uber/etc employee who approves their driver status would presumably also verify that their name is real.
Pretty sure this bug existed in v36 as well.
I'm a self-described Bayesian* at my day job, but the author needs to do better to convince me that the Bayesian approach is worth it in the deep learning space. As far as I can tell, deep learning folks don't give two shits about uncertainty intervals, much less marginalization. All that matters is minimizing that test error as fast as possible. So what if you get a posterior for each parameter... Who cares about the parameters in a neural network as long as the predictions seem well calibrated?

The most convincing rationale for adopting a Bayesian perspective is contained the collected works of Jim Berger, which I see is cited by the author... but not used in the manuscript.

* Of course, a Bayesian is just a statistician that uses Bayesian techniques even when it's not appropriate -- Andrew Gelman
> The issue wasn't divergence. The issue was that there was no requirement that TextBlocks should behave like rectangles.

But they had the same current requirements. So, ideally, the implementation of the common behavior should have been shared but shared in a way which didn't tightly couple the two consumers with each other, so that it would be simple for either to stop using the shared code.
Would it be possible to run Firefox in it's own jail? All of my FreeBSD boxen are servers, so I don't have any experience with this but... put your crustier apps in containers so they don't poop in your main sandbox. Works for servers
> Nothing you say here changes anything about the fact that the statements I quoted are nonsense.

No, they're true, which is what makes your reaction so interesting. You might more successfully argue that this (other people knowing your password) is a trade worth making, but then as I explained you don't need to make this trade at all, so the value you're getting by accepting the current practice is zero.

The thing they're "selling" on that site (promoting) is a distributed system where only you can decrypt your own data. There are a bunch of situations where that's not applicable, but even in those situations the other party doesn't need to know your password - so why do most sites do this?

Mostly laziness.
I think it's less for tracking than for trying to combat viruses and phishing attempts. Having the spool data and writing the JavaScript mail client app makes link-based tracking redundant.
I am interested in tech. I don't believe it's morally good.
InfoQ has some gems, but their video content presentation is terrible (tiny box, or full screen):

https://www.youtube.com/watch?v=YYkOWzrO3xg
> ... just a combination of probability theory and some upper division math classes ...

wow thanks for opening my eyes.

I guess I should just get together with my undergrad friends, implement the next DeepMind competitor, and collect our $400m from Google.
the other is making a substantial change in infrastructure that requires due diligence

No, the transit improvements on Geary (and anywhere else in the city) are not slow in coming because of due diligence. The improvements have taken DECADES because NIMBYs stand in the way at every single opportunity. Same shit you see along Van Ness where perpetual scourge Peskin threw a hissy fit over the fucking street lamps. The Napoleon of North Beach ground the whole process to a halt over something so trivial that it could've been dealt with after or during construction. Improvements along Taraval got bogged down after the guy that owns Great Wall Hardware (Albert Chow) did his best to publicly sabotage any change. In that case the MTA had already determined that Tarval was particularly dangerous to pedestrians and transit riders but safety is apparently bad for his business.