Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sacado2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
481.
▲
by
sacado2
12y ago
That's a wonderful effort. Thanks.
482.
▲
by
sacado2
12y ago
Something like MISRA C ?
483.
▲
by
sacado2
12y ago
By "system", I don't think they meant "kernel". I think they meant "non-user-facing program". Think server/batch programs, which are way too often programmed in C/C++ although they don't nee
484.
▲
by
sacado2
12y ago
Don't forget C++. Being older, it accumulated more cruft.
485.
▲
by
sacado2
12y ago
Yes. We tend to forget javascript was the first mainstream language (no, CommonLisp is not mainstream) proposing lambdas & closures, for instance. In the 1990's, that was quite amazing. And, on the other hand, they couldn't im
486.
▲
by
sacado2
12y ago
Lots of popular novel writers use formulaic writing, applying the same recipes again and again, and that seems to please their readers. Pretty much all Agatha Christie novels share the same basic plots (one character is killed, sleuth asks
487.
▲
by
sacado2
12y ago
This article seems to be confusing muslims with arabs. Charlie Hebdo is only attacking religions, not arabs as an ethnic group. White catholics have been mocked, too, more than any other religion if you look closely at the history of that j
488.
▲
The Go blog: errors are values
(blog.golang.org)
3 points
by
sacado2
12y ago
|
0 comments
489.
▲
by
sacado2
12y ago
Except the one implementing hacker news, obviously ;)
490.
▲
by
sacado2
12y ago
Agreed. As a French speaker (a language with only a few accents, so even ASCII is acceptable) I don't code in French anymore, even for code I know now English reader will ever see.
491.
▲
by
sacado2
12y ago
This picture (taken from Charlie Hebdo, and drawn by one of the murdered cartoonist) is as "anti-jew" as "anti-muslim". The title says that those two minorities cannot be mocked. http://www.tuxboard.com/p
492.
▲
by
sacado2
12y ago
I'm French. There is no hidden pun (at least perceptible by French speakers), sorry.
493.
▲
by
sacado2
12y ago
It will probably survive, actually. Many people will buy the journal in the next few weeks, even if they never read it before. There are many talentuous cartoonists that can help for a few months if needed. And even without that, how could
494.
▲
by
sacado2
12y ago
Good point. Boole boosted logic the same way. a ∧ (a → ¬b) → ¬b is easier to reason with than Socrates is a man, no man is immortal, therefore Socrate is not immortal.
495.
▲
by
sacado2
12y ago
It's a double-edged sword, though : your compact, clever solution is great when your write it but becomes unreadable when you (or worse, someone else) tries to maintain it. And then you have to understand both the hard problem and th
496.
▲
by
sacado2
12y ago
Ha, it's really a matter of taste, because what I like about error codes is how easy and readable it is to write "I want to try three times then fail" blocks. for i := 0; i < 3; i++ { res, err = f(arg)
497.
▲
by
sacado2
12y ago
About your first point : yes, go has exceptions, the so-called panics, but they are here for truly exceptional situations, those you can't recover for, mainly bugs from the programmer (nil dereference, out-of-bound access, bad dynamic
498.
▲
by
sacado2
12y ago
I get your point, although I think references are not that easier ; if one doesn't think what's happening underneath when using refernces, nasty bugs can occur.
499.
▲
by
sacado2
12y ago
Go is middle-level, lower than scripting languages, higher than C++. You have control over memory layout, which lets you use less memory than a language that boxes everything (like Java or Python). You can use linear structs, or references
500.
▲
by
sacado2
12y ago
It's hard to deal with low-level code without resorting to pointers in some ways, though. I can't think of a low-level language that doens't use them, actually.
501.
▲
by
sacado2
12y ago
Go's philosophy is to consider errors and failures are part of solving problems, not something "exceptional" that should make you fail and refer to a higher authority. Error-checking and error-reporting is not something that
502.
▲
by
sacado2
12y ago
To be more fair, I'd say people using C are not people solving abstract problems that can profit from a generic approach.
503.
▲
by
sacado2
12y ago
The ability to easily solve problems Go was made to solve (mainly, server programs and OS utilities). Those problems are, often, inherently easier to express with an imperative style (because they deal a lot with the external, imperative wo
504.
▲
by
sacado2
12y ago
Looks like someone else discovered Go isn't as good as Haskell to program in Haskell. It's a good, very pedagogical article, however.
505.
▲
by
sacado2
12y ago
It can be learned by a programmer knowing only imperative C-family languages in a couple of hours, meaning I can hire any average developer and make him productive in less than a week. Not the same as teaching pure functional style with pat
506.
▲
by
sacado2
12y ago
It's quite true, in fact. Look at Java's generics. Pre-Java 5, everybody was asking for generics. They got implemented. Now everybody complains they suck because they are a hack, they are slow, not that type-safe, made the languag
507.
▲
by
sacado2
12y ago
You'd have been right if you had said "C actually supports generics thanks to #define", but `void*` is the equivalent of interface{}
508.
▲
by
sacado2
12y ago
Being stable for five years rather than still being under development can be seen as a feature. It is a strong selling point of Go, actually : solving actual problems rather than making a perfect language. It's a perfect example of Str
509.
▲
JavaScript Promises: There and back again
(html5rocks.com)
217 points
by
sacado2
13y ago
|
74 comments
510.
▲
by
sacado2
13y ago
The advantage of using yyyy-mm-dd, beside the fact it is a standard, is that it is unambiguous. When I read a date like 12-11-2013, I don't know if we're talking about the 12th of november as we French correctly write it, or about
More ›