Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Tomis02
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
Tomis02
6y ago
> Use objects to encapsulate functionality Sadly objects are also used in an attempt to hide data (because direct access to data is considered dirty in OOP). Now, consider a non-trivial OOP class hierarchy. You have an object that needs
212.
▲
by
Tomis02
6y ago
What's wrong with having the functions stateless and just passing the state in as a parameter? OOP does exactly this behind the scenes. > foo.do(bla) is syntactic sugar for > do(foo, bla)
213.
▲
by
Tomis02
6y ago
> The design of `DOMParser` ... is an unfortunate historical artifact My prediction is that in 20-30 years the same will be said about today's mainstream OOP.
214.
▲
by
Tomis02
6y ago
If they don't then they certainly should, it sounds like a toxic workplace. What annoyed me about that slide was the comparison to a pro sports team, which shows how the "ultra-elite" Netflix lacks the critical thinking to se
215.
▲
by
Tomis02
6y ago
> it's even worth it to hire 2 devs for everyone you need and fire the worst performing one in a few months (flip a coin if they're pretty equal and can't afford them both). You're a bit of a piece of shit, aren'
216.
▲
by
Tomis02
6y ago
With microservices there's no way around it, as there's additional overhead when splitting a for loop between multiple services. Won't stop people from jumping on the bandwagon though.
217.
▲
by
Tomis02
6y ago
> Software engineers are perfectly well capable of making a sandwich themselves Their productivity would drop a bit, though. The idea is that people making food enable developers to deliver their best work.
218.
▲
by
Tomis02
6y ago
> The 10x cost incurred when moving from stage to stage in waterfall This seems to be a common falsehood propagated by Agile consultants and swallowed whole by an industry that doesn't know any better. It doesn't look like the
219.
▲
by
Tomis02
6y ago
If you live in OOP land and have a natural aversion to directly accessing the data then by all means, write all the getters and setters you want. But testing that "int getX() { return X;}" actually returns X is pathological behavi
220.
▲
by
Tomis02
6y ago
> Science is much easier to learn if you know the sequence of discoveries. Is there a math book that gives the historical context (what is the exact problem this piece of math is trying to solve)?
221.
▲
by
Tomis02
6y ago
Where do you draw the line between a query and application logic? Does a join or aggregate function count as application logic? On another note, a few hours/days spent implementing application code can save you 5 minutes of writing SQL
222.
▲
by
Tomis02
6y ago
Unit tests are code, and all code has a cost. Writing unit tests without any benefit is harmful behaviour. Real world example: testing dumb getters/setters.
223.
▲
by
Tomis02
7y ago
Without knowledge of the hardware your software runs on you're likely to be one of those people who uses lists instead of vectors without really understanding the difference. Also, as other people said, the shelf life for that knowledg
224.
▲
by
Tomis02
7y ago
Some people play games for the gameplay, and the ASCII graphics allow them to project their imagination and obtain any fantasy world they want. The rest of the people play Call of Duty and FIFA, and would be hard-pressed to ever leave their
225.
▲
by
Tomis02
7y ago
You don't need to work on hard problems but in general, solving hard problems is usually more important than creating another TODO app or a bingo card website. The latter is more likely to make you rich (for certain definitions of &quo
226.
▲
by
Tomis02
7y ago
> Maybe the UK’s working welfare system can’t cater for all of Europe’s economic refugees Which European economic refugees did you have in mind? The ones that live on benefits while simultaneously stealing local jobs?
227.
▲
by
Tomis02
7y ago
Ah, if Peter Thiel predicted it then it must be so. You know, nobody's poor enough to not afford to make predictions. It's touching how Americans are so concerned for the EU, especially considering they understand so little of it.
228.
▲
by
Tomis02
7y ago
You make it sound like Bulgarians were enslaved and sent to work on foreign lands. No, people left voluntarily for a better life. Also, these policies benefitted Bulgaria as well, otherwise they wouldn't have joined.
229.
▲
by
Tomis02
7y ago
Landing in a shop that uses N programming languages for N microservices would be a pretty miserable experience.
230.
▲
by
Tomis02
7y ago
Sometimes if you're right, being kind signals to others that it's ok to ignore you (e.g. "it's just her/his opinion"). Whereas if you're more direct and skip the niceties it can be more likely your ideas a
231.
▲
by
Tomis02
7y ago
For bonus confusion points, DISTINCT happens after SELECT and before ORDER BY (and DISTINCT affects the usage rules for ORDER BY). Personally keep a printed copy of the actual logical order of operations, it comes in handy.
232.
▲
by
Tomis02
7y ago
> Before Steam, it was a chore to play a game on PCs. I disagree. It was somewhat more elaborate but the experience (having an actual physical copy, a manual/books, sometimes nice installer screen) made it feel more special. Nowaday
233.
▲
by
Tomis02
8y ago
Bill Gates was actually very technical, so at least he had that going for him. Completely agree with the rest.
234.
▲
by
Tomis02
8y ago
They don't ask anything because the answer changes nothing. If they get an offer, they'll 99% take it. If they get two competing offers (I'd say this is uncommon unless you're interviewing in a very large job market like
235.
▲
by
Tomis02
8y ago
I'm not sure the people doing the actual work would agree with the CEO, author of this train wreck of an article. Not that anyone would tell that directly to his face. > Our team are ambitious. They want to learn and grow quickly. B
236.
▲
by
Tomis02
8y ago
Can someone explain to me the fascination for git, despite the constant stream of "how to fix [ insert various git issues ]" articles showing it's very difficult to use, at least compared to the alternatives? Most people'
237.
▲
by
Tomis02
8y ago
When searching old mails I get the distinct feeling they're gone, never to come back ever again. Yes, data loss. I can't prove it because I don't have those emails stored offline.
238.
▲
by
Tomis02
8y ago
To be honest, when it comes to C++ boilerplate, I've seen much, much worse. At a first glance the code looks somewhat clean.
239.
▲
by
Tomis02
9y ago
Did you lodge a complaint against the doctor? Just curious.
240.
▲
by
Tomis02
9y ago
Actually what people need to know about OOP is that they should use as little of it as possible. Focus on your data and data flow, make it as easy as possible for everyone to understand where the bits start and where they end, and you'
More ›