Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haspok
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
haspok
3y ago
These are not "leisure travel" though. I guess for some people private life and business life are so intwined they no longer know the difference.
212.
▲
by
haspok
3y ago
Oh, lovely Germany, I remember seeing a couple of Achtung Kontrolle videos where the cops stopped scooter riders and actually checked that their scooter is not tuned or the speed limiter is not disabled... this does not really happen anywhe
213.
▲
by
haspok
3y ago
Just look at their homepage, it is clear where the VC money went. Instead of making really good quality bikes they spent all the money on web design. They thought they can do what Canyon can do, but Canyon is a much, much bigger company.
214.
▲
by
haspok
3y ago
Having a non-removable battery is a big mistake IMHO, because that's a not insignificant chunk of the value of the bike. Also, it's just a normal e-bike, limited to 25kmh, I wouldn't call that "quick" :) If you want
215.
▲
by
haspok
3y ago
I mean, why buy a bike at all? You could just run instead of riding, it is even more exercise for you, and doesn't cost a penny.
216.
▲
by
haspok
3y ago
If I had an e-bike I would just take the battery with me. Minor inconvenience for security.
217.
▲
by
haspok
3y ago
Yeah, but for the price bump you get features which affect the ride of the bike directly (lower weight, better braking, easier shifting etc.). Of course there are diminishing returns, but a 2k bike is significantly better than a 1k bike in
218.
▲
by
haspok
3y ago
They are expensive for what is essentially a commuter bike. I think they simply chose a wrong strategy, because if you have a cheap(ish) bike and a good U-lock, you can leave it anywhere without much stress. It will most probably not be sto
219.
▲
by
haspok
3y ago
Maybe there could be a JMM 2.0 where at least some of the unexpected behaviour is removed. Maybe even at the cost of performance. If something is misunderstood by >99% of the average programmer population then clearly it is not the best
220.
▲
by
haspok
3y ago
OK, this makes sense, thanks.
221.
▲
by
haspok
3y ago
> it looks like doSomething can't modify val or oldValue ...sure, if you are using primitives. But here we have an array (reference), the contents of which can be modified by `doSomething(val)` in your example. It is only the refer
222.
▲
by
haspok
3y ago
Something like a ConcurrentModificationException would be nice to have in the "weird shit happens" case, because you may not even be aware of it, and then it might cause headache much further down the line. If you could point upst
223.
▲
by
haspok
3y ago
How would you fix this? Possibly by copying the input array to a local array as the first step? But then you might copy a lot of data, which is in 99% of the cases totally unnecessary. Have a separate threadsafe and a non-threadsafe constru
224.
▲
by
haspok
3y ago
I used to be a solid believer in merging and not rebasing, but then I had the chance of working on a project where rebase + fast forward only merges were the norm (with some additional rules), and I have to admit, it worked really well. I d
225.
▲
by
haspok
3y ago
A compile-time annotation could at least control whether your plugin is allowed to transform the ADT in the given context (say: for a class). Otherwise is it not possible that it transforms the ADT even when the user did not intend to? Can
226.
▲
by
haspok
3y ago
> No annotations are required. I appreciate the intent, but man is this like a minefield waiting to be walked over. Anyone who looks at the code will scratch their head and will not understand what is going on. An annotation would perhap
227.
▲
by
haspok
3y ago
The battery in my 5T is at 75%, still acceptable. But the headphone jack socket is basically unusable, because it is so worn, and I have similar issues with the USB-C socket, although that also depends on the cable. Not sure what I'm g
228.
▲
by
haspok
3y ago
I used to have a similar opinion, but today I'm not so much against it. There was a project where I did not have access to the "official" database (Oracle) and was forced to develop against MySQL instead. Granted, it was a re
229.
▲
by
haspok
3y ago
Good luck resizing a typical modal window though. Also good luck with high-DPI... Even resizing regular windows was not always an option, and if it was, it was very rarely thought through by the developers. I vividly remember that the Swing
230.
▲
by
haspok
3y ago
> The 4L straight six engine... Surely the mpg is excellent, and so are the emissions... (And don't call me Shirley!)
231.
▲
by
haspok
3y ago
Why do you keep repeating 24 bits? It is way too much, even at 16 bits the dynamic range is far more than what you can reasonably hear (unless you want to damage your ears!) - especially if you are listening in a real world environment, and
232.
▲
by
haspok
3y ago
We can probably draw an analogy with frame rate: why do movie fans insist on 24 fps, when TV is 50/60 fps, and you could play your games at 240 fps if you really wanted to?... Because "more" is not always better. Btw. I do ac
233.
▲
by
haspok
3y ago
So you are trying to build Erlang without Erlang and OTP. Nice try :) You are maybe 5% there. How about the rest? Error handling, handling network issues, latency, partitions, deployments, scaling etc... I would also argue that because of t
234.
▲
by
haspok
3y ago
Anyone who rides an MTB and wants to get better at reading maps, I can only recommend finding a local MTB-O group and joining them for training sessions. It helps if the area the map covers you are familiar with at least a little bit, after
235.
▲
by
haspok
3y ago
> One guy in my team would be idle for long swathes of time although it would appear "green" on Teams - first sign someone's an asshole: they put a mouse move program but don't reply for hours. Maybe his job was not t
236.
▲
by
haspok
3y ago
There is no desctructuring in Java, as mentioned in JEP 441 (for some "future version" of the language). Or maybe I'm missing something in which case would you point me to a JEP or an article about destructuring in Java? EDIT
237.
▲
by
haspok
3y ago
As they say, "the determined Real Programmer can write FORTRAN programs in any language.". ADTs and pattern matching go hand in hand, and they - along with immutable structures - are the cornerstones of functional programming. The
238.
▲
by
haspok
3y ago
> What matters is how quickly you can get code to do what you want... This is the falsest statement I have read in a long time. Maybe, if you write once and then throw it away (like a use-once shell script). Otherwise you will have to ma
239.
▲
by
haspok
3y ago
How about error handling? How about security? Also, just peeking into the demo code, this is the first thing that caught my eye: int id = requestCycle.getPathArguments().get(0).getValue(Integer.class); This is something I would never
240.
▲
by
haspok
3y ago
What blows my mind is that Python was designed for maths and data science by a maths and data science guy. It should be natural to work with immutable values and pipelines in Python, which are natural functional constructs. Yet everything i
More ›