8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
comment 2y ago · link · parent
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.