Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
HumanDrivenDev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
391.
▲
by
HumanDrivenDev
9y ago
Why have a mutable class to represent temperature - a simple value class with two fields? Why not just construct a new Temperature? I mean if performance was an issue, you'd just use plain doubles instead, right? I'm open to the i
392.
▲
by
HumanDrivenDev
9y ago
> I'd love to see if in 50 years we're closer to Smalltalk, Haskell, or something completely different. I guess in my mind FP and OO are orthogonal. If I write an immutable object and I send it messages that are referentially t
393.
▲
by
HumanDrivenDev
9y ago
This is a bit abstract to me. I don't tend to write mutable classes. And if I do mutate fields, it's for a "reason" (and I'll name the method after that reason). If you feel like it, write out how you'd impleme
394.
▲
by
HumanDrivenDev
9y ago
I get what you're saying, but at the same time I don't understand how you'd implement the class and why. class Temperature { public final double celcius, kelvins; Temperature(int celcius, int kelvins
395.
▲
by
HumanDrivenDev
9y ago
Why not give your "setters" a real name that describes what they're doing? https://news.ycombinator.com/item?id=15606777 In the structs & records world (C, F#, Rust, etc) they never seem to have this iss
396.
▲
by
HumanDrivenDev
9y ago
I appreciate you thinking of an example, but I guess I find it a bit convoluted. Couldn't you also refactor that by changing the constructor of your temperature class so it converts things to Kelvins, rather than converting it every ti
397.
▲
by
HumanDrivenDev
9y ago
But by definition getters and setters lack lexibility. They expose the internal representation of an object. They stop really being "objects" - high level opaque things you send messages to - and they turn into big porous bags o
398.
▲
by
HumanDrivenDev
9y ago
Yes, I am. It was a separate tangent, and a bit off-topic.
399.
▲
by
HumanDrivenDev
9y ago
... To write such a class responsibly, one has to write a lot of low-value, repetitive code: constructors, accessors ... If you're writing a plain data class, why on earth would you write getters and setters? Just make your fields pu
400.
▲
by
HumanDrivenDev
9y ago
I would, but I'm still waiting for the pin wheel to stop spinning... I miss the old C2.
401.
▲
by
HumanDrivenDev
9y ago
I've often thought about an editor for a stack/concatenative language that makes the arity of words clearer. like when you select a word it highlights which of the previous words in the definition it's consuming. I don't
402.
▲
by
HumanDrivenDev
9y ago
I think a degree of skepticism is required with NIH. I'm probably not going to roll my own crypto, or high performance statistical routines. But if something invented elsewhere "solves" a problem that really isn't rocket
403.
▲
by
HumanDrivenDev
9y ago
> It reminds me of this quote: "The problem with object-oriented languages is they've got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and
404.
▲
by
HumanDrivenDev
9y ago
You're bang on the money: Tamsui is a romanisation of the hokkien name, not the mandarin one. There's a few other non-mando names floating around, like Taroko (an aboriginal language). I have a Taiwanese book for school children t
405.
▲
by
HumanDrivenDev
9y ago
The different chinese languages don't seem to be dialects in any objective sense. I have no idea how it started being called that in english (bad translation of 語/話 maybe?), but Hokkien and Mandarin seem about as different from ea
406.
▲
by
HumanDrivenDev
9y ago
"chinese" isn't one language. It's a set of many languages which share some grammar and a common logographic script I don't think that's true for any chinese languages other than mandarin and cantonese. I
407.
▲
by
HumanDrivenDev
9y ago
It seems more likely to me that compulsory education conducted entirely in a "national language" is the culprit here. How many of these stories involve "we were beaten for talking in $LANGUAGE at school"?
408.
▲
by
HumanDrivenDev
9y ago
Salaries didn't seem much higher when I was looking - I found a job in provincial NZ for the same salary inner city melbourn jobs seemed to be offering. How many years experience before you break 100k AUD in Melbourne? And where's
409.
▲
by
HumanDrivenDev
9y ago
Long time (but not very religious about it) Linux user here. What operating system allows you to "not worry about" OS security updates, and how is it different from Linux?
410.
▲
by
HumanDrivenDev
9y ago
A bit of an aside: why is it not standard practice to format uuids in a radix 64 encoding? It cuts down the identifier size from 32 to 22 characters
411.
▲
by
HumanDrivenDev
9y ago
I switched from FF to chromium (not chrome), because I don't spend a lot of money on computers. I use fairly slow hardware and FF was very sluggish. Sounds like FF Is making a comeback, I'll definitely try it out once it becomes s
412.
▲
by
HumanDrivenDev
9y ago
This is a topic I've thought about a lot. Let's forget about the pure/applied divide. That's not what I am getting at and I want to make my language very clear. Let's instead talk about "maths for its own sake&
413.
▲
by
HumanDrivenDev
9y ago
If your role in a company is so removed from the business or stakeholders that you're being assigned tasks like "add 15 fields", then IMO you're already in trouble. That's part of a larger issue though, where we act
414.
▲
by
HumanDrivenDev
9y ago
I'm not talking about anything as ambitious as making all software be formally verified. All I want is for the people in this industry to take it seriously, for us to have standards as an industry, and some kind of professional certifi
415.
▲
by
HumanDrivenDev
9y ago
You're right. I'm re-installing Excel and giving this a negative review on the app store!
416.
▲
by
HumanDrivenDev
9y ago
Awesome Job. Looks like it was an iterative effort https://github.com/xem/ama/issues/14
417.
▲
by
HumanDrivenDev
9y ago
> Hang on. Sure, all engineering has hurdles. But how many engineering projects face regular enemy action? The last time somebody actively tried to compromise a system I was building was two weeks ago. How many engineers live like that?
418.
▲
by
HumanDrivenDev
9y ago
A lot of it comes down to the fact that this isn't engineering, and we aren't engineers.[0] The field has a very low barrier to entry (much lower than a bachelors degree). The standards are low, the expectations are low, and there
419.
▲
by
HumanDrivenDev
9y ago
NoSQL is a really terrible term. I don't know why so many people seem eager to the argue the merits of an incredibly disparate umbrella label that includes databases that have almost nothing in common . What meaningful things can yo