Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
larsrc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
larsrc
4y ago
97% of electricity, not energy. As a rule of thumb, electricity accounts for about a quarter of energy usage.
212.
▲
by
larsrc
4y ago
There are variations, that's what we learned back at Uni. Expected O(f(n)), average O(f(n)), amortised O(f(n)), even expected amortised O(f(n)). "Expected" implied a randomised algorithm.
213.
▲
by
larsrc
5y ago
Yes you can, by taking out a design patent.
214.
▲
by
larsrc
5y ago
I must say, those error bars are impressive.
215.
▲
by
larsrc
5y ago
These days, pretty much all money-printing is effectively out of thin air. Few if any have a gold standard or similar backing their currencies. So it's down to trust in the economy. (Not that gold really has intrinsic value, but everyb
216.
▲
by
larsrc
5y ago
How hard can it be to pick a name that doesn't clash with a common data structure?
217.
▲
by
larsrc
5y ago
Oh, that game sounds a lot like Savage Lands, at least in the sense the author focuses on.
218.
▲
by
larsrc
5y ago
Cancer is not the only possible side effect. A very well known and dramatic one, but not the only one.
219.
▲
by
larsrc
5y ago
Isn't it lovely how we're inundating our homes with radiation at wavelengths that can cook meat? It's as if we _want_ the robot revolution to succeed.
220.
▲
by
larsrc
5y ago
Cryptocurrencies have shown that you can transform energy into money without any of that messy middle step of doing something useful.
221.
▲
by
larsrc
5y ago
A couple of million transactions per day: https://www.statista.com/statistics/730806/daily-number-of-b... That's less than the number of private transactions in a moderately sized city, never mind business or
222.
▲
by
larsrc
5y ago
Simple example: I used to be the maintainer of Dia, a diagramming program. It remembers what colours, line width, dash style etc you've last used, so you don't have to keep setting that. This can drastically reduce the number of s
223.
▲
by
larsrc
5y ago
Modern IDEs have made this less important than it used to be, but it still matters. My quick rule of thumb would be to follow the mental model of your code. Things that you need to read to understand a given aspect of the code should be clo
224.
▲
by
larsrc
5y ago
All too often, especially in the open source world, settings are used as a way to not figure out how to make a good default. When the default is crap, I am forced to go to the settings and spend way too much time finding my way around a gaz
225.
▲
by
larsrc
5y ago
Nope. Two of my favourite pieces of software have very few settings because they remember what I do instead of forcing me to go and figure out a setting for it.
226.
▲
by
larsrc
5y ago
I see what they did there.
227.
▲
by
larsrc
5y ago
So... in order to do unit testing, you should shift your entire system to be written in functional style, and then write integration tests instead of unit tests? Because that's what you get when you use the real components.
228.
▲
by
larsrc
5y ago
I like the "social wallet" idea, though no blockchain is needed for that. But there's a real danger that if enough of your friends get compromised, you can get compromised as well, and that can snowball. And most people would
229.
▲
by
larsrc
5y ago
Apart from the other reasons for code reviews already mentioned, there's this: an inexperienced developer (in a particular area) may not _know_ when a code review is appropriate. A change that looks innocent may have wider consequences
230.
▲
by
larsrc
5y ago
Sounds like OP does like company as long as it's interesting. Parties are not where you'll find that. Seek out the places that attract book lovers and idea people. Go to conferences and conventions. Find the people there who are h
231.
▲
by
larsrc
5y ago
A neat trick is to have the new person update the docs whenever they needed to ask a question. Writing docs falls in the realm of error handling and testing. Lots of developers only want to deal with the happy path not those extra drags. St
232.
▲
by
larsrc
5y ago
Only the large enterprises have an incentive to lower the license bar. But they have become a much larger force in the area over the last ten years.
233.
▲
by
larsrc
5y ago
Are you enabling sandboxing? Use `--spawn_strategy=sandboxed`, or better yet `--spawn_strategy=worker,sandboxed --worker_sandboxing`. That should disallow using files from the base system. This does disable multiplex workers,.which can make
234.
▲
by
larsrc
5y ago
And made worse by static initializers being run when the class is loaded rather than when the class is first instantiated.
235.
▲
by
larsrc
5y ago
It has everything to do with Java, though not memory. It exploits Java's write-once-run-everywhere feature as well as the decision to initialize classes, including running code, on load rather than on first instantiation.
236.
▲
by
larsrc
5y ago
Not run over by the ice giants yet.
237.
▲
by
larsrc
5y ago
Reminds of https://m.youtube.com/watch?v=4oiLfTnrC40
238.
▲
by
larsrc
5y ago
Define "worth". We were never in it for the money. I maintained Dia for 8 years and never saw a penny. If you don't like your FOSS project being used by evil capitalist megacorps, put an anti-commercial license on it.
239.
▲
by
larsrc
5y ago
Ask, ask, ask. Yes, you can spend days or weeks poring over the code in various ways, but asking those who made it (ideally) or those who maintain it will give you the "why". Why was it done this way? What are the implicit assumpt
240.
▲
by
larsrc
5y ago
As someone who has worked for years on a UI consuming such information: it's bloody difficult. Each language has its own weirdnesses, you almost always have to build the code to figure out the cross references, and what's correct
More ›