Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

Maybe. There is some evidence that the decline in fertility rates are associated with overweight and obesity. Social and biological factors leave having children more difficult when one is outside of a "normal" weight range. If everyone is on Ozempic, they might have more children, requiring more overall food and harming even more animals in the process.

comment 2y ago · link · parent

When was the last time you saw profitability increase, even remain stagnant, when demand declined?

Let's be real. If demand for meat declines, producers will have to double down on "factories" in order to remain solvent.

comment 2y ago · link · parent

> Go also does not do any sort of "advanced" devirtualization

Depends on the implementation. gc doesn't put a whole lot of effort into optimization, but it isn't the only implementation. In fact, the Go project insists that there must be more than one implementation as part of its mandate.

comment 2y ago · link · parent

Excel is the best first language if you just want a world full of computer programmers.

But there is an implicit context here around those who want to program alongside the professionals. That comes with wanting some deeper understanding of the machine.

comment 2y ago · link · parent

> Serverless is indeed a weird name if you know what you are talking about.

It is a perfectly logical name if you know what you are talking about and are familiar with the history of how these so-called serverless applications used to be developed.

Which is to say that back in the day, once CGI fell out of fashion, the applications became servers themselves. You would have a listening HTTP server right within the application, often reverse proxied through something like Apache or nginx, and that is how it would be exposed to the world. The downside of this model is that your application always needs to be resident in order to serve requests, and, from a scaling perspective, you need to predict ahead of time many server instances are needed to handle the request load. This often resulted in poor resource utilization.

Now with a return to back to the CGI-esq model, where you have managing servers call upon the application through a process-based execution flow, albeit no longer using CGI specifically, the application is no longer the server again. This allows systems to save on resources by killing off all instances of your application when no requests are happening, and, with respect to scalability, it gives the freedom to the system the ability to launch as many instances of your application as is required to handle the load when the requests start coming in.

Hence, with the end of the application being the server under the adoption of said process-based model, the application became serverless.

> I was dumbfounded by the term

The marketers have certainly tried to usurp the term for other purposes. It seems just about everything is trying to be called "serverless" nowadays. Perhaps that is the source of your dumbfoundary? Then again, if you know what you are talking about then you know when marketers are blowing smoke, so...

comment 2y ago · link · parent

> fly.io is "serverless"

Right, with the quotes being theirs. Meaning even they recognize that it isn't serverless-proper, just a blatant attempt at gaining SEO attention in an effort to advertise their service. It is quite telling when an advertisement that explicitly states right in it it has nothing to do with serverless is the best you could come up with.

comment 2y ago · link · parent

Yes, you bring up a good point about the other practical issue with adopting Agile. It says that the developers and the business people need to work together daily, as becomes necessary when there isn't a manager to act as the go-between, but as you point out the business people in reality just want to play golf, not become shared participants in the development process.

But, again, Agile is pretty clear that it requires special people. It was never meant for everyone. To observe it in a light where it is applicable to all organizations violates its very existence.

comment 2y ago · link · parent

> That doesn't mean agile is bad just that it wasn't the "silver bullet" management wanted.

Managers didn't want to be eliminated? Who'd a thunk it. Which is also why Agile is oft considered "bad" as management by and large never actually walked away, they just pushed some of workload off onto developers under the guise of "Agile" and half-ass adopted tools designed for a flat organizational structure in a hierarchical structure with all of the impedance mismatches to go along with that.

> Everyone wants to throw out Agile. However I don't see anything to replace it.

It's not so much that anyone, non-manager at least, wants to throw out Agile per se, but in this high (relatively, at least) interest rate environment there is more of a crackdown on the work people are doing, so managers are trying to reel back in the boring work they earlier tried to outsource onto developers in order to continue to justify their jobs. That is what has replaced it, so to speak.

comment 2y ago · link · parent

> it refers to "linux server machine" (whether it's physical or virtual)

No, "server" most definitely refers to software that listens for network requests. Colloquially, hardware that runs such software is often also given the server moniker ("the computer running the server" is a mouthful), but that has no applicability within the realm of discussion here. If you put the user in front of that same computer with a keyboard and mouse controlling a GUI application, it would no longer be considered a server. We'd call it something like a desktop. It is the software that drives the terminology.

> nobody knows what "serverless" is or that App Engine / Heroku already had it in 2008 :)

Hell, we were doing serverless in the 90s. You uploaded your CGI script to the provider and everything else was their problem.

The difference back then was that everyone used CGI, and FastCGI later on, so we simply called it CGI. If you are old enough to recall, you'll remember many providers popped up advertising "CGI hosting". Nowadays it is a mishmash of proprietary technologies, so while technically no different than what we were doing with CGI back in the day, it isn't always built on literal CGI. Hence why serverless was introduced as a more broad term to capture the gamut of similar technologies.

comment 2y ago · link · parent

Not really. The application doesn't care. Hell, many of these modern serverless frameworks are built so that they can run both server and serverless from the very same codebase, so it is likely you can take the same code built to run on someone's MacBook running macOS/ARM and run it on an EC2 instance running Linux/amd64 and then take it to a serverless provider on any arbitrary hardware without any code modification at all! I've been around the web since Perl was the de facto way to build web apps, and it has always been an exceptional situation to not have the hardware fully abstracted away. Typically, if it will run on one system, it will run on any system.

The move away from CGI/FastCGI/SCGI to the application being the server was a meaningful shift in how web applications were developed. Now that we've started adopting the server back out of the application in favour of the process-based model again, albeit now largely through propriety protocols instead of a standard like CGI, serverless has come into use in recognition of that. We don't want to go back to calling it CGI because CGI is no longer the protocol du jour.

comment 2y ago · link · parent

For all intents and purposes, when is the hardware not fully abstracted away? Even through the 2010s when running as a server was the norm, for the most part you could throw the same code onto basically any hardware without a second thought.

But pedantically, serverless is to be taken literally. It implies that there is no server in your application.

comment 2y ago · link · parent

> I was never quite sure why we got the name “serverless”, or where it came from

Serverless refers to the software not being a server (usually implied to be a HTTP server), as was the common way to expose a network application throughout the 2010s, instead using some other process-based means to see the application interface with an outside server implementation. Hence server-less.

It's not a new idea, of course. Good old CGI is serverless, but CGI defines a specific protocol whereas serverless refers to a broad category of various implementations.

comment 2y ago · link · parent

To be relevant usually speaks to some kind of broad social impact or defining of a culture. You might argue Green Day did that back in the day, but do they really continue to? A lot of people willing to pay to be entertained by their performance does not imply relevancy.

comment 2y ago · link · parent

> You say “retain managers” — plural. You’re putting words in their mouth.

The only use of "managers" was with respect to the use of Scrum itself, which is only tangentially related to what came before it. It logically cannot put words into anyone's mouth as it is not directly related to any mouths that may be near. It is only directly related to the comment that it is contained within by the additional context it setup.

> The article is basically suggesting POs shouldn’t control the backlog because engineers know better (essentially).

Yes, that is what Agile also says. Of course, it also says that you need the right people. We need to know more about the specific engineers to know if it is a valid take. Statistically it won't be, but perhaps it is under his unique circumstances? It is invalid to conflate his situation with someone else's.

> Sounds like they’ve had a bad experience and want to vent about it. Fine, but it’s an immature take imho.

I know Agile isn't cool anymore, but there was a time where the industry as a whole actually tried to embrace it. It wasn't considered immature then. Perhaps it is immature now only because it is no longer in fashion?

> I am an engineer myself and I think it’s insulting

If you are insulted by words on a screen, you might need to think about it harder. That is not logically sound.

comment 2y ago · link · parent

How are you going to run on X11 systems if you have ruled out making IPC calls to a separate process in order to put together a GUI?

Anyway, the primary advantages of the separate process you speak of is that it:

1. Deals with the LGPL concerns for you.

2. Deals with the pains of compilation, and especially cross-compilation for you.

That is why you might consider it. Of course, it comes with many disadvantages too. Tradeoffs, as always.

comment 2y ago · link · parent

> I have to disagree with the central argument, which is to give engineers more product management responsibilities

How is it disagreeable? Scrum is a formalization of Agile, which is literally about eliminating management by giving engineers control over the project. They are intrinsically linked. It doesn't make sense otherwise.

The Twelve Principles, is pretty clear that you need special people to make Agile work; that it's not for everyone. Your assessment that you don't want to go down that road is going to be true in the vast majorly of cases, and nothing in the literature disagrees with that. However, in those cases you wouldn't be using Scrum in the first place. It is clearly the wrong tool for the job if you are going to retain managers.

comment 2y ago · link · parent

> There's no way to test that inclusively, to check all possible inputs.

Which means the RFC claim is false and should not be asserted in the first place. The API may incidentally accept valid RFC input, but there is no way to know that it does for sure for all inputs. You might suspect it conforms to the RFC, but to claim that it does with certainty is incorrect. Only what is documented in the tests is known to be true.

Everything else is undefined behaviour. Even if you do happen to conform to an RFC in one version, without testing to verify that continues to hold true, it probably won’t.

This is exactly why unit tests are the expected documentation by users. It prevents you, the author, from make spurious claims. If you try, the computer will catch you in your lies.

> The other thing I would shy away from is including throwaway tests in the framework.

What does that mean? I suspect you are thinking of something completely different as this doesn't quite make sense with respect to what I said. It probably makes sense in another context, and if I have inferred that context correctly, I'd agree... But, again, untreated to our discussion.

comment 2y ago · link · parent

> The free market's great IF there's competition.

If you have a free market finding competition isn't an issue, but maintaining profitability is. If we had a free market when Google came onto the scene, everyone else would have copied PageRank the next day, and then you'd have hundreds of search engines all as good as each other, each sharping their pencils sharper and sharper in an attempt to win customers over on a price basis until there is nothing left. At which point there is nothing left to further innovation.

To combat that, we grant short-term monopolies over technology to allow their inventors time to build up a decent business before opening the flood gates, with the intent to balance what makes mixed-market economies great without ending up with no competition. The problem is that those monopoly procedures were established when time moved slowly. Back then, 20 years was barely enough time to get your product to and recognized in the market. These days, you can get there in a few years, or even less, which leaves nearly 20 more years to focus on killing all the competition.

Ultimately, we would have been better off if Google was pushed out into a free market after a few years. We benefitted from it having some head start, but it went on much too long.

comment 2y ago · link · parent

Unit tests are for documenting the API contract for the user. You are going to target based on what you are willing to forevermore commit to for those who will use what you have created. Indeed, what happens when two messages come in with the same message ID is something the user needs to be aware of and how it functions needs to remain stable no matter what you do behind the scenes in the future, so you would absolutely want to document that behaviour. How it is implemented is irrelevant, though. The only thing that matters is that, from the public API perspective, it is handled appropriately.

There is a time and place for other types of tests, of course. You are right that unit tests are not the be all and end all. A good testing framework will allow you to mark for future developers which tests are "set in stone" and which are deemed throwaway.

comment 2y ago · link · parent

Your documentation will tell when you need an abstraction. Where there is something relevant to document, there is a relevant abstraction. If its not worth documenting, it is not worth abstracting. Of course, the hard part is determining what is actually relevant to document.

The good news is that programmers generally hate writing documentation and will avoid it to the greatest extent possible, so if one is able to overcome that friction to start writing documentation, it is probably worthwhile.

Thus we can sum the rule of thumb up to: If you have already started writing documentation for something, you are ready for an abstraction in your code.

comment 2y ago · link · parent

Why's that? Uncle Bob seems pretty clear that most of your code should be free of side effects, and that necessary state mutation should be isolated to one place. Carmack is saying the same thing.

comment 2y ago · link · parent

Who claims that “trickle-down economics” works? The term was literally coined as a joke about how it doesn’t work.

comment 2y ago · link · parent

> and then swapping in a language in which 1 and 1.0 do not quack

Except, no. This compiles and evaluates just fine in C++. Both quack the same quack.

    int x = 1;
    float y = 1;
    x > y;
The previously provided code fails because of the use of typename, which explicitly calls for the compiler to evaluate the type based on name. That is literally the documented purpose of the keyword. And which is exactly what duck typing is not. Duck typing doesn't need a duck to actually be a duck. If a goose walks and quacks like a duck... Close enough — it is a duck!

> Anyway, your confusion may be easily resolved by perusing the following link.

Imagine having such little understanding of what you are talking about that you can't do it and have to defer to the work of others. Why even bother participating in a discussion if you can't speak to it yourself? It is especially humorous when that work of someone else doesn't even state what it is purported to.

comment 2y ago · link · parent

There is also a clear correlation between deaths from falling down stars and phone time. Perhaps we can infer that deaths have increased due to more people falling down stairs, and, from that, conclude that those who survive but bump their heads are more likely to encounter these mental health issues?

comment 2y ago · link · parent

Some teenagers trying to become the next TV star is not the same as them using social media. Social media is not defined by text, but it is defined by community. TikTok, and increasingly Instagram (and even, more and more, Facebook), has no real semblance of community. These services would rather show you a beautiful stranger that has no relevance to your life than foster a neighbourhood, just like cable TV always has. Social media is from a bygone area and, let's face it, is mostly dead at this point, only marginally propped up by some old people still trying to live in the past.

I understand how it can be confusing, though. Many services that were built to foster community originally, and given the social media moniker at that time, are transitioning (if not fully transitioned already) into being cable TV providers to try and remain relevant with the slow death of social media, so it can be easy to forget that times are a changing and still think of them as being social media even when they are no longer. Indeed, people tend to be quite susceptible to getting an idea in their head and then holding onto that idea forevermore, not looking again to see if anything has changed.

comment 2y ago · link · parent

TikTok is not social media. It is cable TV.

Instagram, being quite old at this point, still has some vestiges of social media to keep the older people who started using it decades ago happy, but it too is moving towards the cable TV model as much as it can.

comment 2y ago · link · parent

Do teens even use social media? I am under the impression that they are all about what is effectively cable TV. That is what the hip-and-with it services provide, and what the boomer social media platforms are more and more clamouring to become.

Social media is for old people still trying to re-live what the internet was like 20 years ago. And, I expect, that is the tree you actually want to bark up. Does parental social media use impact their children negatively? That answer to that is probably yes.

1
101112
256