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

Or only the most desperate stumble through my door?

But either way, it's pretty clear that the prevailing problem is finding people at all. Not just me, but most businesses have been struggling with the same problem. You can't tempt someone with more money if you have no way of communicating with them.

Which goes back to the marketing problem. Absolutely there is a marketing problem, but publishing price data is exactly how other markets have solved the problem. We shouldn't be shocked or disappointed that labour is going the same way. That's how markets deal with the problem.

comment 2y ago · link · parent

They partnered with Microsoft, remember?

1985 – Windows 1.0

1987 – Windows 2.0

1990 – Windows 3.0

1992 – Windows 3.1

1995 – Windows 95

1998 – Windows 98

2000 – Windows ME (Millennium Edition)

2001 – Windows XP

2006 – Windows Vista

2009 – Windows 7

2012 – Windows 8

2013 – Windows 8.1

2015 – Windows 10

2021 – Windows 11

comment 2y ago · link · parent

Even then it is hit and miss. If you are doing something that is also copy/paste-able out of a StackOverflow comment, you're apt to be fine, but as soon as you are doing anything slightly less common... Good luck.

comment 2y ago · link · parent

> it's gotten ~10,000 times easier to write software than in the 1950s

It seems many of the popular tools want to make writing software harder than in the 2010s, though. Perhaps their stewards believe that if they keep making things more and more unnecessarily complicated, LLMs won't be able to keep up?

comment 2y ago · link · parent

Of course, once you come to that realization, then you realize that it is all one in the same and that there isn't any magic going on, which then realizes that business constraints can go anywhere in your application and be written by anyone.

I suspect what you are really trying to say is that you trust Hipp more than you trust yourself to get the constraints right. Indeed, if you screw it up you're in for a world of hurt, so you are right to be cautious. But, if you have more trust in a random stranger who has no care for your data than you do yourself to implement it for you, perhaps you shouldn't be writing any code at all? Software development certainly isn't for everyone.

comment 2y ago · link · parent

You're overthinking again. Read what is said, not what you want it to say in some fairytale land.

comment 2y ago · link · parent

> If a company simply isn’t offering enough money they aren’t going to get the workers they want.

I've never seen a worker walk away once an offer is made. Getting workers in the door in the first place is hard, though.

Which means that it is really the marketing that needs to be improved. But how...

> how every other market works.

Every other market that has suffered from this kind of marketing problem starts to publish sale data! The labour market has just been slow to catch up with everyone else here. No doubt because, historically, getting people in the door was easy. That has only somewhat recently started to change.

comment 2y ago · link · parent

Rust isn't just a language, though.

Additionally, unlike some languages that are formally specified before turning to implementation, Rust has subscribed to design-by-implementation. The implementation is the language.

comment 2y ago · link · parent

Perhaps you would find it to be more palatable if it were phrased as: "You cannot be competitive as a company if you do not serve the wants and needs of the customer."?

But, of course, that says the same thing. These companies are scumbags because that's how the customer wants them to behave. In this case, because it makes executing payroll cheaper for the customer, which is a highly desirable trait to the customer.

comment 2y ago · link · parent

> Which OCaml features exist in Rust but not Haskell?

Rust's most important feature! The bootstrapped implementation.

comment 2y ago · link · parent

Small models often do a much better job when you have a well-defined task.

comment 2y ago · link · parent

If we could wave a magic wand and remove Haskell's influence on Rust, Rust would still exist in some kind of partial form. If we waved the same wand and removed OCaml's influence, Rust would no longer exist at all.

You are the one who is wrong, I'm afraid.

comment 2y ago · link · parent

> The way to do that is to have `netip.ParseAddrPort` failures return a different error type than other methods

No. Absolutely not. If you leave the callers of this hypothetical function to rely on the errors of the functions it calls, even if we assume those functions were written by an infallible deity, you've created a coupling that now binds you to the implementation forevermore. That's just plain reckless behaviour.

Return your own errors. I know it takes a tiny amount of extra thinking to figure out what types are relevant to your function, but is unquestionably worthwhile and would still be worthwhile even if all the functions you call were designed by an infallible entity.

> but the "idiomatic" go code

You're really stretching the use of idiomatic here. Not ever has that been considered idiomatic Go. The Go community has always been clear that you should never, ever write code like that. It is so painfully horrid for so many reasons that it could never be considered idiomatic.

comment 2y ago · link · parent

> I basically grew to wonder why SQL was the only language

You were well ahead of the pack simply by realizing that other options are possible. It is only within the last year or two that the HN crowd has finally come to accept that SQL and relational calculus are not the same thing. If you want a good laugh, check out the older posts on HN where the comments are adamant that there cannot be anything other than SQL for relational querying because it is some kind of fundamental mathematical truth.

> There are what, 1000 programming languages, but only one SQL? Why?

There are the family of languages that get lumped together under the ORM umbrella. They are quite popular – maybe even more popular than SQL. There are plenty of other languages that are less popular, but they are often impractical to use in any real-world scenario which maintains their unpopular status.

> but not json friendly.

Not standard SQL, but if we're counting extensions duality views are JSON friendly. The Oracle tax may be a tough pill to swallow, though.

comment 2y ago · link · parent

> Both of these let you share your knowledge and experience with low effort.

Where I have knowledge and experience, why would I care to write about it? I already have the knowledge and experience, and therefore am no longer interested in it. Writing about something that is not interesting might be something you give in to in exchange for copious sums of money, but certainly not for the sake of entertainment.

Writing is for things you don't know much about, so that the "someone said something wrong on the internet!" crowd will work tirelessly to improve your understanding.

comment 2y ago · link · parent

We eventually realized that the "API server" was actually just a DBMS all along. And once that was realized, it was realized that a DBMS sitting beside another DMBS that deals with the exact same data is rather silly, which is now leading to:

    1. Let the clients connect to Postgres directly.
         - or -
    2. Cut Postgres out of the picture and double down on the homegrown DMBS.
Some are going the #1 route, others #2. Where #2 is opted, SQLite is a convenient engine on which to build upon. It may not be perfect but it is what we have. Keep in mind that this realization on a grand scale (I'm sure some noticed many years ago) is fairly recent, so there is a lot of experimenting going on to figure out what works and what doesn't.

It's the natural cycle of computing. What is old is new again.

(Replace Postgres with MySQL, MSSQL, Oracle, or other DBMS as you see fit.)

comment 2y ago · link · parent

Fair enough. Then the fine shall be levied at the value of the car being driven when the offence occurred. Driving a $500 beater? Your fine is $500. Driving a $1,000,000 sports car? Your fine is $1,000,000.

While this theoretically allows the rich to drive said $500 car in order to minimize their liability in the event of a fine, it also means the rich have to drive a $500 car if that is what they are trying to optimize for, which is a decent social tradeoff.

comment 2y ago · link · parent

> The app doesn't crash

You literally said that it crashes:

   The app crashes because "too many files" includes the fd accept(2) wants to allocate so your app can respond to the health check.
https://news.ycombinator.com/item?id=41505892

> I really don't know how I can make my explanation simpler.

Not making up some elaborate story that you now are trying to say didn't even happen would be a good start. What you are actually trying to communicate is not complicated at all. It didn't need a story. Not sure what you were thinking when you decided fiction writing was a good idea, but I certainly had fun making fun of you for it! So, at least it was not all for not.

comment 2y ago · link · parent

> It's a multierror, a feature of the standard library.

Understood (I read the code), but that doesn't help, and really has nothing to do with the topic at hand. Is the problem here that you don't have an understanding of what we're talking about?

> You know that's not true from the history of the repository.

Which is why the claim was identified as being strange and in need of clarification. How can "If I'm going to do something upstream based on the error, I use a type." be true? If there are many developers, you don't get to control the upstream.

comment 2y ago · link · parent

I know, if you can't pay the fine don't do the crime, but realistically income is not a constant and is much too temporal to be useful here. A decent income year last year, and little income this year, means you might have no hope of paying the fine.

Why not a fraction of the current value of gross assets at the time of investigation? This a much better reflection of someone's financial standing, is a greater deterrent, ensures that the fine is actually payable, and deals with the issue of the rich not having much in the way of income.

comment 2y ago · link · parent

Gotta keep the profession interesting somehow.

comment 2y ago · link · parent

Kubernetes is really here nor there. It's the crashing of the app that is our focus. An app should not be crashing on expected behaviour.

That's clearly a bug, and the bug you need to fix first so that you can have your failsafes start working again. You asked where to start and that's the answer, unquestionably.

comment 2y ago · link · parent

I'm not sure the desire to perform a transformation on a value implies that there are multiple types. You speak to a real problem, of course, but perhaps at the wrong layer of abstraction. It seems the deeper seeded issue is that Go strings assume one language, which is not true. I wonder what native internationalization support might look like?

comment 2y ago · link · parent

> and follows the venerable stringly typed error idiom.

Not exactly. It assumes that all error conditions within the functions provided by netip are of the same nature as it pertains to a single unit of work. In other words, there is only one type (not referring to the language's type system). Error type reuse where different failure points produce the same type of error does not violate current idioms. I cannot immediately think of any reason for why their assumption is wrong, so unless you have other ideas?

That is not the same situation as the deferred close wrapper, though. It is assuming that closing multiple file handles is the same operation, but clearly that's not true. If you were, say, writing a copy function the error handling of the read handle failure is unlikely to be the same as the handling of the write handle failure. The former doesn't tell you much, the latter is quite actionable. The failure points are distinct, and thus of different types (again, not referring to the type system).

The author's answer was basically that he is the only caller so if that problem arises in his code he'll simply modify the function to return idiomatic types. Which is fair for the lone wolf developer. When working alone anything goes! But it is not good API design generally speaking. It certainly wouldn't fly in something like the standard library or anywhere you have other developers.

1
181920
256