Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sacado2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
sacado2
7y ago
It's to avoid typos. Imagine there is no colon. When you type foo = 3 fooo = foo + 1 Did you mean to create a new variable called `fooo` or was it a typo? Did you mean this: foo := 3 fooo = foo + 1 // o
212.
▲
by
sacado2
7y ago
I think it's Seth Godin who says (paraphrased): "people don't buy a product, they buy a story". You buy something because the story behind it is good, because it makes you feel good. And the story "you buy crap"
213.
▲
by
sacado2
7y ago
Just depends on your application domain. I never copy/pasted code and could count the number of times I wrote `interface{}` on a single hand.
214.
▲
by
sacado2
7y ago
Even in a team of a single person, go's opinionated approach to styling is great. I can still maintain code I wrote when I was a go noob and no cringe when I read it. It's gofmt that made me fall in love with go.
215.
▲
by
sacado2
7y ago
No, I'm talking about my own "private" code in my own editor. This is a conversation with my editor while I'm "in the zone". I (usually) don't commit commented-out code, for the reasons you mentioned above
216.
▲
by
sacado2
7y ago
In practice there are 3 types of comments: - documentation, that should be parsed by some external tool (javadoc, godoc, etc.) - warnings in the code, like the "this call is very important because of..." example from the article -
217.
▲
by
sacado2
7y ago
If you want a real-world example: I struggle with my SAT solver, gophersat[1]. I have different kinds of constraints, mainly propositional clauses (a or b or c) and pseudo-boolean constraints (2a + b + c >= 2). Long story short, a propos
218.
▲
by
sacado2
7y ago
Elm could be a reasonably good first language, IMO.
219.
▲
by
sacado2
7y ago
> You have the overhead of boxing the value, but the actual type checking is just a single comparison and jump. This is way too much in a tight loop. I want my structure to fit in the cache and I want to have as little tests as possible
220.
▲
by
sacado2
7y ago
This article deals with "big picture" aspects, not specific syntactic details, so there is no reason for it to include code. Backward compatibility, compilation speed, circular dependencies, small vs big specs, etc. What code do y
221.
▲
by
sacado2
7y ago
I started with python 1.7, two decades ago, and I don't find it any harder to use than back then. The language is pretty much the same as in the late 90s, complexity wise. But back then, it was an insider's language, my teachers d
222.
▲
by
sacado2
8y ago
C++ changed a lot more than Ada, though. Ada was well-designed from start.
223.
▲
by
sacado2
8y ago
For semi-private file sharing (ie family-wide, not worldwide), paying services are great. If you want as big of a circle of "friends" as possible, you are in a "winner-takes-all" situation, and being free helps to be the
224.
▲
by
sacado2
8y ago
It's difficult to ask for users to pay for a service that was always free, indeed, furthermore facebook is not growing its user base anymore. But a competitor can emerge by providing an alternative service, for a fee, marketing it as &
225.
▲
by
sacado2
8y ago
As a user, GDPR is great for me. As a user, article 13 is bad for me.
226.
▲
by
sacado2
8y ago
In France, it is legally wrong, as you cannot share a pricture of somebody without consent. That will be interesting in a few years (very soon, actually), as some young adults are pissed off by the pictures of them their parents shared fo
227.
▲
by
sacado2
8y ago
Yes. The last generation was taught from a very young age that what you put online is available for all, and learned from the mistakes of their older siblings / parents. I see way more "controversial" content on facebook 
228.
▲
by
sacado2
8y ago
Not the experience I had with Eiffel back then (but it was decades ago).
229.
▲
by
sacado2
8y ago
They started making early proposals, with syntax and the associated semantics. It will take a long time, but I'd be very surprised if they changed their mind now.
230.
▲
by
sacado2
8y ago
Maybe you're taking the blub paradox backwards. People think Go is worse than other languages because they look at it from a PL theory point of view, ignoring the practical aspects. "Compilation speed? Trivial cross-compilation an
231.
▲
by
sacado2
8y ago
Well, they are about to introduce generics, so...
232.
▲
by
sacado2
8y ago
Erlang's niche is distributed systems anyway, an area where static typing is at odds more often than not. I mean, you can guarantee the executable you are working on is exempt of typing errors, but it's just a small component of t
233.
▲
by
sacado2
8y ago
Not taking paid vacation you're allowed to take is so weird. I mean, it's like not taking your whole paycheck and leaving it to your employer.
234.
▲
by
sacado2
8y ago
> I realize this might not be an easy question and that the answer may well be "just because". No, the answer is "just because."
235.
▲
by
sacado2
8y ago
It's a non-profit, so probably the same way as the wikimedia foundation, the apache foundation, the mozilla foundation, etc.
236.
▲
by
sacado2
8y ago
I've never been very fond of CLR outside of Windows platforms. As for LLVM, sandboxing has never been a core feature (AFAIK).
237.
▲
by
sacado2
8y ago
It is not random, it is undeterminate. Any order follows that spec. Whether you display items in alphabetical order, in insertion order, randomly, or in any other way, you're good.
238.
▲
by
sacado2
8y ago
Back then, yes, there's a reason they were so popular. But nowadays? What do they bring?
239.
▲
by
sacado2
8y ago
But now you can choose your own programming language. The JVM is very Java centric, for obvious reasons.
240.
▲
by
sacado2
8y ago
45 mn is a rather small radius. Didn't you run out of unknown towns after some time? I'm pretty sure I've visited all cities in my neighborhood, at least those that are worth it.
More ›