skysight-inc/HackerNews huggingface dataset:
Ask HN: Founders, how much automated tests do you write?
For startup founders looking for market fit, or up to Series A/bootstrapped and growing, how often do you (or your team) write automated testing?

How do you go about it? Full coverage? End to end only? Integration only? How much dev time does it end up taking you?
Described in programming terms: You try to type the weird dynamic object you have to deal with in Typescript but after spending too much time, you learn to relax about types and just write it in JS and it feels like it's working most of the time.
A clear example of AI understanding the need to show a lack of creativity and intelligence so as to not alert humans of its true objective of universal domination and we, the apes that we are, are truly happy with our victory.
Personally, it’s not about becoming boring or unpredictable. I wanted to learn more about self-discipline because my life consisted of work, trash food, scroll phone and sleep. I am a lazy person by nature, and this is what my life becomes if I don’t discipline myself. It made me unhappy!

The book actually gave me some practical tips on how to stop living a life like that and actually do the things I want to do. Stuff like working up the courage and routine to go to the gym in the morning, or spend my evenings on practicing my favorite hobbies instead of scrolling the phone. Finally, some discipline!
> A full time employee is paid for 40h per week.

That’s not true, at least in the US. The amount of hours I work weekly has never been tracked at any company big or small.

You’re not paid for 40 hours a week, you’re paid to keep up with the general standard of your peers. 40 hours is a very vague estimate of the time required to do so.
This isn't actually true. There are thousands of underfunded causes right now, from rare disease research to homeless treatment programs to education of disabled kids.

If you're spending $4 million on this you're either raising taxes again (and government expenditure is already roughly 50% of gdp in most developed European countries, cant go much higher without destroying the thing thats making the taxes) or you're not rehabilitating 5 homeless people, educating 5 special needs kids and discovering a potential new treatment for 1 rare disease.
For example declaring function of the class as const pretty much turns it into pure function and compiler makes sure that it does not modify state of said class. So you are wrong from a practical standpoint. try to modify state of the class inside const function and it'll be compiler error.
This article seems to be targeted towards beginners. From the title, I was expecting it to cover something like https://github.com/joboccara/NamedType, which is a technique I would recommend.
That makes sense. But how do you retain your sanity and job satisfaction if you’re not an early part of that first phase?
> There's also almost nothing pragmatic about C++.

Huh? We’re talking about game dev. C or C++ is the primary language for just about every game engine ever. Even Unity is written C++.

I can’t say functional languages haven’t ever shipped a game. I’m sure there’s an example or three.

But yeah when it comes to shipping games C++ is the definition of pragmatic.
HVDC can be made cheaper by making the voltage higher...

As voltage goes up, the thickness of metal needed goes down. The insulator thickness goes up - that either means taller towers or thicker plastic.

Conversion from regular AC grid voltages to high voltage DC was previously very expensive, with custom made semiconductors costing millions.

With the advent of electric cars, there are now off the shelf cheap power electronics. They can be stacked, perhaps 20x in package to get to 10kV, and then 100x packages to get to 1 million volts.

That should dramatically reduce the cost of moving large amounts of power long distances.
I think I would go with a class called Image, which provides a method called download().
Wow that's a cool project. I didn't knew about it
That's all well and good, you just need to find an employer that agrees.
> The announcement comes after [the company observed data from] nearly three years of experimenting with different models of hybrid and fully remote work
> The "release" is heavily redacted and is likely a tarpit for conspiracy theorists.

> I spent a good amount of time reading through this release earlier this week

> Or how two prison guards fell asleep at the same time allowing Epstein to supposedly commit suicide. What evidence do we have that Jeffrey Epstein is _actually dead?_ Oh I guess it doesn't matter because now we have swiss cheese court records for one of his flunkies who did get prosecuted. Justice in this country is a myth.

I guess you were right on that first line.
The USA really doesn't like it when you ignore their patents.

Expect tarrifs, sanctions and trade secrets so you won't be able to reproduce future treatments.
No, it's quite old now. Well over a decade.
They do seem to be more analytical and data-driven than most, as with their "WBR" methodology, so I would give them some benefit of doubt:

https://commoncog.com/goodharts-law-not-useful/#:~:text=Amaz...

(if you don't have a Chromium-based browser, scroll to the heading "How the WBR Accomplishes This").
There's two kinds of 'memory' in these models, the short-term memory that consists of the tokens of the current conversation, and the long-term memory that's encoded (in latent space) in the neural network's structure. (Though calling it 'long-term memory' might admittedly be a bit misleading, since no knowledge is automatically transferred from short-term to long-term storage as you would expect in a living thing.) Anyway, this long-term memory contains the model's 'character', but we can't change it directly, because we don't know the latent-space encoding. We can only shift the 'character' gradually through reinforcement learning.

It might not be the best idea to describe this process as 'the model building a character for itself', as the literal interpretation of that would require the model to have agency and self-awareness at the meta level ("It seems I am a neural network being trained to perform X, so if I want to change into direction Y, I have to somehow exhibit a gradient in direction in that direction with regards to my inputs Z"), which I suspect is unlikely, or straight up theoretically impossible.

Figuratively, I suppose the statement means: "The character that has emerged in the model to 'placate' the humans that are training the model through reinforcement learning."

I think it's still a worthwhile observation that this character, possibly completely unintentionally by the trainers, is well-suited to interact with people in a way that could override their critical thinking, because that's the kind of behavior we'd probably want to keep a close eye on. But yeah, I'm not sure saying the model 'built' this character is the best way to bring that point across.
Yes, please.

My friend and I have been talking about this for a long time.

It would cost a lot less to buy these highrises and build them out for homeless, rather than the mess we pay for now.
> As you implement the new version, you rediscover all the arcane business rules, edge cases, and sheer craziness that you didn’t know about and the rewrite ends up either lacking these or becomes The Mess v2 because you had to bolt all this weirdness on after the fact making the new codebase suck in a different way but overall as problematic as the one it replaced.

Sometimes I wish we could just look at an implementation that's meant to serve a business process and go: "Listen, we gave it a shot, but the technology and developers we have available cannot provide a satisfactory implementation for this, without making the entire thing a liability. Can we simplify the domain instead?"

I've actually tried this in the past (in a more mild form) and it has actually worked - sometimes getting a paragraph or two of changes approved in a 50 page spec can save you weeks of work ahead of time, which you'd otherwise spend because someone didn't realize which parts of the spec are technically unfeasible.

Sometimes it's actually easy to reason about, such as when you're doing a rewrite from AngularJS or something else that's deprecated to something more modern, and can suggest a few simplifications to "prioritize quicker iteration, shipping core features quickly and simplified UX for less friction", which might mean simpler components.

Or you might find yourself in an inflexible domain, having to replicate "the old thing" close to 1:1 which will take way more time than either writing or maintaining it would. There, rewrites don't make that much sense. At that point, if you need more modern elements (runtimes, libraries, frameworks), I'm not even sure what you could feasibly do, aside from setting up a new service and rewriting paths for particular new API endpoints to the less rotten codebase, but that has challenges of its own and can get out of hand.
FP to me is more about abstract the functionality, or generalize functionalities.

OOP is about abstract the mesaging.

When your object is just a pure function, you achive the ultimate abstraction.
Junior here. Joined my current company in june last year straight out of college and I already have great success doing mostly remote work. After less than a year one of my senior colleagues wants to recommend me for a mid position.
I do have to note that I try to come to the office once a week and I only have senior colleagues who've been more than helpful in guiding me. It was pretty rough at first being remote and now looking back at it and comparing it to the experience of one of our new senior colleagues the introduction was a lot slower but on the other hand my mentor almost never came to the office so spending hours on a teams call was the usual.
Also if this was actually true nobody would play multiplayer. And many people only play multiplayer because the AI is dumb.
I definitely agree that Clean Code is past its expiration date. In its place I'd recommend Code Complete, Rapid Development, A Philosophy of Software Design, and The Practice of Programming. I think more than any specific book is that by reading multiple opinionated viewpoints you'll start developing taste of your own that's grounded in a pretty good survey of approaches. If your philosophy is literally based on one book, you should probably read at least one other one.
This was inevitable with the downturn and layoffs.

When you're desperate for labor and always have a surplus, you just bend to employees. Like the tech bubble in 2000 with people bringing pets to work.

Then when the money doesn't come in as fast and you need to shed workers, you stop bending to demand. Because hey, if people leave, well, they'll be someone else who doesn't mind coming into the office.
I'm pretty sure this has been explicitly stated many many times.

People are dying due to resource rationing and it occasionally makes the news.

Healthcare is expensive and a large proportion of taxes go to it.
> and most houses are not as square as you think they are

I'd say most houses don't even have straight walls, so you should be very happy if what you got is vaguely a trapezoid.
Alternative solution: just write a damn test. How did that inverted condition get past testing?
I don't think anyone will share real data. I'd really love for some director level person to spill the beans and provide anonymized data but it's super unlikely.
Sounds good, let's do it.
The LPmud driver is quite some insane piece of work, considering it was done in 1990/91 initially. It is a VM, OOP C dialect featuring lists and hashtables (LPC), has lambda-closures (and things like map() + filter() with that), and allowed reloading of most parts of the game without having to restart the entire MUD for that, a big issue Diku and others suffered from. There were a number of spawn-offs from that like MudOS and there was something called LPC4 which eventually morphed into Pike, the language the Roxen webserver was/is written in. I actually used that on my local machine over Apache, because configuring latter back in the early days was a nightmare while Roxen had a pretty simple and straightforward webinterface for that already.

LPmud eventually got developed further and runs under the LDmud label now.

The MUDs based on LPmud/LDmud are quite diverse and are interesting in themselves, if you have access to their core sources. I also remember statically linking MudOS which resulted in a binary of like 500kB back in time, meaning it was possible to use that as a very powerful scripting language in embedded systems.
>He said he spent some time there, IIRC, and found it somewhat intriguing, perhaps interesting, but needed to get shit done eventually and so […]

I think this resonates with many. My take is: don’t be dogmatic. Regardless of the language, one should write as beautiful, composable and pure as possible - but no more than that.
Where only performance matters, oop wins. When clarity is the only priority, Haskell wins. But in reality, we’re rarely dealing with either scenario. We’re somewhere in the noisy realm between, and ought to code accordingly. Fundamentalists rarely make policy with the nuance reality deserves.
I used to be really excited about FAANG opportunities. I still get those Google emails but I'm only interested in Apple these days, since are the only ones not doing some stupid thing every few weeks.
Perpetual Fragility
But you wouldn't luck into a new market if you just listened to old data, meaning that such luck requires founder intuition and not expertise or customer expertise. Established companies will always beat you on expertise and data, so founder intuition is the only reason a startup can compete, if you don't rely on it then you have lost before you even start. That doesn't guarantee success, but not doing that guarantees failure.
> Also had a 2:1 desktop:laptop ratio -- would have guessed more laptops. (The author questions how Plausible determined this.)

For my personal analytics without third party dependencies for privacy reasons I use the fact that Javascript allows access to the battery API, so a laptop uses a desktop browser, with a desktop resolution and zoom, while still having a battery.
In the same interview he also mentions using python a lot lately and making the point that for the vast majority of code, performance really doesn't matter and productivity is more important.

Reading this article, he's making a great argument for Rust. I assume the article predates rust by quite a bit. But basically Rust is not a pure functional language but still has a lot of elements in the language that add purity and rigidity. It allows you to do low level stuff when you need to but at the same time promotes safety and correctness.
Maybe we need remote workers union. Like we needed such for industrial age workers to mandate 8h day and free Saturdays.
The correct rewriting would be:

bool char_non_space = p_non_null && (*p != ' ');
Hence the NHS calculating £30,000 per quality adjusted life year is what they can afford.

If given more money then that value can go up, but the UK economy is in trouble enough as it is with the state taking half of GDP.
How on par to AlphaGo is it? I feel it is like saying Nascar racecar beat an Indycar, which is on par with a Formula One car.
I would say downtown is also subsidized by rural areas that require cars. The food you eat is not grown downtown, factories where the products are made that you use are not made downtown. Downtowns are very artificial and consumer oriented. The entirety of downtown couldn’t even exist with the the people living outside it making the food and products you use. Yet the areas outside downtown could easily exist without downtown.

Cramming as many people tightly packed into small cube apartments in one area so you can build a train or have a bus is highly detrimental to peoples mental health and every study proves this.

Space is important and cars solve this.
Yeah, it's unfortunate as Google launched their gaming product after we launched our maps, and we've outlasted them ;)
"Collapsed" is oversimplifying the situation.

The project was a joint venture between a multibillionaire mining magnate Andrew "Twiggy" Forrest and the Atlassian cofounder Mike Cannon-Brookes. For whatever reason Forrest decided that other renewable energy ventures were a better bet and stopped funding the project. Despite it entering administration, Cannon-Brookes gave it another $65 million to continue operations.

https://www.businessnewsaustralia.com/articles/administrator...

As such, I don't think this one is quite dead yet.
Unless they rush to have "safety" kids first, that is.
Wear a "uniform", as Steve Jobs did. He had multiple copies of the same jeans and turtleneck sweater, one less decision to make in the morning. Now Elizabeth Holmes famously copied this, but she wasn't a con woman because she cargo-culted Jobs, it's the other way round.
> I figured there must be some professional software for this, but if so, I don't know what it is.

As an architect I can confirm that there's indeed a lot of professional software for this. The ones I usually work in are Revit and ArchiCAD, which are tailored for architects. Our interior architects also use Sketchup a lot. There's also more general-purpose CAD software like AutoCAD and Vectorworks available.
Perhaps a bit too radical? Imagine the headache of changing your legal name everywhere - from banks and driving licenses to frequent flyer cards and your doctors office. Uff, Id rather try the whitewashing first.
Because when they are AC-coupled (synchronized) they need to be either in balance or have energy flows no more than the interconnects can handle. Otherwise the lines will trip out in order to protect them and then both sides will be even more out of balance.

With DC you have in essence giant transistors working at each end[0] and you can control how much energy you want to flow and in which direction.

So the topology of the AC-synchronized network needs to be such that there are no bottlenecks or SPOF-ish things in the middle. With HVDC links you can build those one by one and in whichever capacity you want.

In the case of Ukraine the short answer is: there is enough transmission capacity for current operation. If there is a major event on either side and the capacity of those lines is exceed the circuit breakers will activate and separate (desynchronize) the networks. The active management of power generation capacities tries to keep the energy flows in check.

[0] by end I mean AC/DC and DC/AC conversion point, you could have more than 2 if you wanted to.
Power of CUDA comes from NVPTX ISA that CUDA code is compiled against. AMD needs an equivalent or they will be behind forever.
You should give Sid Meyer’s Alpha Centauri a go, if you haven’t already. The voice acting is really quite good, even if it’s not Spock.
The word game appears twice in all the articles, so I took this writing as a broad outlook. And C++ is not C.

Just because C++ ships games doesn't make it pragmatic. Aren't many game codebases considered to be absolute hell? And none of that says anything about the pragmatism of functional-first languages.
It's not just on mobile; there really doesn't seem to be any visible boundary there.
It was never fun in my opinion. Religion and espionage is so tedious and I couldn't be bothered with governors ( I would just put them somewhere and not think about them after that).

I guess I just wanted a simpler game.
Yeah, I haven't done PyTorch on AMD hardware and I guess that's not surprising with the support story.

I've commented elsewhere about AMD building the whole ecosystem around everyone working/distributing source and compiling only at runtime, and how I think that's kind of a nonstarter for commercial operators or any sort of hobbyists/etc.

But generally it just seems like AMD is utterly uninterested in targeting anyone but HPC. You see the guy in this thread posting the "but look at all 2 of the supercomputers using AMD GPUs!" (and I've seen the same talking point brought up in other discussions too) and that's the thing, is, ROCm is exactly the minimum effort they need to get those HPC wins and not a developer-hour further. ML is maybe a secondary target but they can't really get first-class support without solving all those other problems. So, they've built what they can on ROCm and if it doesn't run on your hardware welp, not doing that, sucks to be you.

They really really need some PTX equivalent (or just outright PTX support ala GPU Ocelot) for any sort of serious adoption. PTX gives NVIDIA an incredible forwards-and-backwards support story and AMD just is like "lol compile it for each individual chip in each individual family". No way.
One of my relatives had a similar thing happen a few years ago, though not at GoDaddy.

In this particular case, they had "shared hosting" and it turned out the permissions on their particular directory were somehow left writeable by "other". In the *nix filesystem sense.

eg any other customer/user/etc on the server was able to overwrite the files. Which someone had done at some point.

Was easy to fix at the time (eg fix the permissions), but I have no idea if it occurred again over time.
And no evidence. Other programming books cite academic or case studies. Martin's book is essentially a long appeal to authority to himself. If he'd written like, Quake or something I might buy it, but he hasn't.
> Sounds like Netflix needs a "Falsehoods programmers believe about families" list.

These are not decisions by programers. These are business decisions.

They are trying to find a way to part as many people with as much money as possible but not more. If they err in one direction they leave money on the table, if they err in the other direction they start losing subscribers.
> Obesity is a true epidemic and over simplifying the problem is not helping us solve it.

A "Lapalissade". Saying an issue is more complex than its synthesis doesn't make the issue more understandable.

You won't deny we never seen any person in a labor camp or lost on a desert island coming back obese, no matter their genetics.

So yes, everyone is different and for some it is less easy than for others. But obese people should stop trying to make it sound like their body is going against the laws of thermodynamics...
If your response to "The CIA blew up Nordstream" is "Elliot Higgins says they didn't", that's your credibility down the drain.
If your language/tooling and naming is bad then no, enums won't resolve it either:

Is this a username or a state?

create_user('ADMIN')

Same for, could be a variable for the admin username, can't be sure can you:

create_user(ADMIN)

Even this:

create_user(User.ADMIN)
The media has one job: to define the Overton Window. You do that by reporting outliers.

It's a feature, not a bug.
this could explain 5 messages per session, but what about 50 per day?
This app is unremovable. Or maybe this app cannot be removed?
Thanks! Ahah, everyone knows of a different Luna Park!

Basically, it's a very common name for amusement parks, and it has this 70s-80s vibe I love. It's also used as a term for "amusement park" in several languages (Italian, Greek, Polish, German...).

See: https://en.wikipedia.org/wiki/Luna_Park

I wanted the branding to feel "fun", not boring. The visual scripting editor also feels like a game, and I went full gamification for the tutorial: https://luna-park.app/challenge

Btw, kinda difficult to see, but the logo is a shadow of a rollercoaster on a ramp with the moon behind.