Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bedobi
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
bedobi
4mo ago
I'm a Software Engineer and I think the author is probably right that many Software Engineers are misguidedly placing too much weight on their ability to read and write code. The valuable part of Software Engineering isn't PARSING
2.
▲
by
bedobi
4mo ago
[flagged]
3.
▲
by
bedobi
4mo ago
[flagged]
4.
▲
by
bedobi
5mo ago
I switched from e3 (NOT eb3) to h1b and then they did the $100k eo, so it doesn't feel like a good idea to remain on h1b. Now, my us citizen spouse and I are filing a spouse based green card application. (of course, we also filed for E
5.
▲
by
bedobi
5mo ago
yes, which is why Monad should be an interface that types like List, Option, Result etc implement, instead of flatMap being just a random discrete function that exists on random types by accident, with no common abstract link between them K
6.
▲
by
bedobi
5mo ago
Here’s my monad tutorial for programmers A monad is anything you can flatmap with The monad of list is you flatmap a list on a list and instead of getting a list of lists, as you would if you just mapped, you get a single flattened list The
7.
▲
by
bedobi
5mo ago
At a previous job, our build pipeline * Built the app (into a self contained .jar, it was a JVM shop) * Put the app into a Ubuntu Docker image. This step was arguably unnecessary, but the same way Maven is used to isolate JVM dependencies (
8.
▲
by
bedobi
2y ago
Your price could simply be an interface that both Student and Employee implements, and at the call site, you simply call foo.calculatePrice - Student will calculate it one way and Employee another, there is zero need for inheritance, or for
9.
▲
by
bedobi
2y ago
for one, see the reply from the handle cryptonector further up > Inheriting from a class creates dispatch problems, and there's instance variables/fields/whatever to deal with. Never mind multiple inheritance, as that gets
10.
▲
by
bedobi
2y ago
this! with interfaces, you get all the benefits and none of the negatives
11.
▲
by
bedobi
2y ago
I agree that there are better ways to model roles and FGA the point of the example wasn't to be an idiomatic solution to that problem, but to illustrate the pointlessness of inheritance in general, and User Student Employee was the fir
12.
▲
by
bedobi
2y ago
I happily admit it's more than possible to come up with examples that make inheritance shine. After all, that's what the authors of these books and articles do. But most of them put the cart before the horse (deliberately design a
13.
▲
by
bedobi
2y ago
> The alternative is that you wind up implementing the same 5-10 interfaces repeatedly for every different object you create. if both Student and Employee need to implement those interfaces, it's probably User that should have and i
14.
▲
by
bedobi
2y ago
I see no need for inheritance there, that can and should be done using interfaces eg in the contrived example I gave, any of all three of the User, Student and Employee can implement the interface (and if needed Student could simply delegat
15.
▲
by
bedobi
2y ago
Do yourself a favor and wear yourself off all this SOLID, Uncle Bob, Object Oriented, Clean Code crap. Don't ever use inheritance. Instead of things inheriting from other things, flip the relationship and make things HAVE other things.
16.
▲
by
bedobi
2y ago
This is a solved problem and it's astonishing the world hasn't just adopted the Dutch traffic engineering standards outright. It's FASTER for cars and safer for people.
17.
▲
by
bedobi
2y ago
London Underground destroys all other transit on the planet when it comes to noise, and ironically, it's not even the trains themselves, it's the effing speakers MIND THE GAP louder than an Iron Maiden concert, it's unbearabl
18.
▲
by
bedobi
2y ago
Even if the post accurately reflects your lived experience, if it's AI generated, ultimately it is just that, generated by an AI, who is not you. People can smell that from a mile away, and they dislike it. (as they should!) Get over
19.
▲
by
bedobi
2y ago
A lot of Robert C Martins pieces are just variations on his strong belief that ill-defined concepts like "craftsmanship" and "clean code" (which are basically just whatever his opinions are on any given day) is how to re
20.
▲
by
bedobi
2y ago
The sane thing to do is to let lower layer functions return Either<Error, Foo> then, in the HTTP layer, your endpoint code just looks like return fooService .getFoo( fooId
21.
▲
by
bedobi
2y ago
that's easy to fix, just make the light brighter
22.
▲
by
bedobi
2y ago
> everyone there is contributing to the energy by actually having a good time, instead of being preoccupied with showing people who are not with them that they are having a good time this screams "economists, behavioral economists,
23.
▲
by
bedobi
2y ago
the disconnect here is you have a status quo biased thinking the current state of things is, roads get all the money and transit and bike infra get scraps and are poorly run (so are FDOT road projects too btw) no one disputes that? what is
24.
▲
by
bedobi
2y ago
you're just being obtuse in the realm of infrastructure investment, all of that is overnight vs eg the yet another additional bridge to nowhere they're currently building that is taking decades and costing billions but tell you an
25.
▲
by
bedobi
2y ago
> So are public transit riders. And to a worse degree. What's your point? that this is wildly incorrect. roads cost more than transit. a lot more. and road users are wildly more subsidized than transit users. > We should magicall
26.
▲
by
bedobi
2y ago
they can, they just malinvest in roads that only increase traffic and make things worse and cost even more instead of transit which saves money
27.
▲
by
bedobi
2y ago
lol the idea isn't to make money off transit, it's to save money on roads roads cost more than transit - a LOT more, and motorists aren't paying anywhere near the cost of road construction and maintenance, they're (quite
28.
▲
by
bedobi
2y ago
yeah, all of which can be done overnight
29.
▲
by
bedobi
2y ago
no it would save miami and the state and the federal government billions trirail frequency increases can be done overnight a greenway network can also be built quickly and cheaply metrorail extension would cost more but still less than it c
30.
▲
by
bedobi
2y ago
Imagine if instead Miami built MetroRail extensions to the beach and everywhere else it should go, increased TriRail frequency and express services, built a real network of fully segregated greenways etc etc. It would turn transport nightma
More ›