Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
redbad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
redbad
13y ago
> in Java, I frequently ask my tools, "Give me a list of > classes that implement this interface," You don't generally ask this question when working in Go, because you don't really construct your "type" system in the
62.
▲
by
redbad
13y ago
I guess what you call an "internal DSL" I call an API.
63.
▲
by
redbad
13y ago
> Whenever you're creating a function, you're defining a > verb in your domain-specific implementation. Yes. And by virtue of it being a function, i.e. a first-class operator in the language I'm working in, I also kn
64.
▲
by
redbad
13y ago
> DSLs are used in production code, and solve real world > problems better than ad-hoc repetative code does. And this is called the "argument by assertion" fallacy. I'm sure there are a lot of problems where DSLs make
65.
▲
by
redbad
13y ago
> Essentially, you're saying that the point is not to use > DSL's. The benefits of DSL's are explained everywhere, > so I don't think I need to repeat them here... DSLs aren't a gimme. In production code, pro
66.
▲
by
redbad
13y ago
> Structural typing is nothing like duck typing. People > saying that don't know what they are talking about. Structural typing is at least facially similar to duck typing. People contesting that are being pedants.
67.
▲
by
redbad
13y ago
> I only interact with colleagues and I can't imagine them > caring what I wear. We do. We don't tell you, and if we're any good we don't show it, but we notice and we draw conclusions about you.
68.
▲
by
redbad
13y ago
> with a near 50% youth unemployment rate in some > countries. Can you name one besides Spain?
69.
▲
by
redbad
13y ago
But this is 2013, there are somethings that expected to come from a language default. Very true! Exceptions are one of them, Very false! :) Exceptions have a lot of detractors.
70.
▲
by
redbad
13y ago
> Development has several modes. One mode is "hacking", > just hashing out what you want until it works and is > elegant enough as a solution, perhaps changing your mind > frequently when you see how it
71.
▲
by
redbad
13y ago
> the supervising goroutine now looks a bit odd: This is totally valid: select { case <-doneChannel: //
72.
▲
by
redbad
13y ago
> What is not cool about Perl? Almost everything is not cool about Perl. Perl felt crufty and ancient even when I was learning it fifteen years ago. It's only gotten weirder, cruftier, and more ancient since then.
73.
▲
by
redbad
13y ago
Embedding is not strictly the same thing as inheritance.
74.
▲
by
redbad
14y ago
> Why the irony? How many cluster deployments you know > where you "spin up instances all the time"??? Any cluster environment whose applications abide 12-Factor semantics stands to benefit greatly from low startup ti
75.
▲
by
redbad
14y ago
What question to ask so the obvious answer would be "Use Go?" Writing services in a SOA tech stack.
76.
▲
by
redbad
14y ago
It seems silly, but it's simple, powerful, and removes a large class of ambiguity from your programs.
77.
▲
by
redbad
14y ago
git absolutely is a deploy tool.
78.
▲
by
redbad
14y ago
The Apple wireless keyboard is the best keyboard on the market right now IMO.
79.
▲
by
redbad
14y ago
ORMs are broadly considered antipatterns in Go.
80.
▲
by
redbad
14y ago
Lack of comments is at once annoying and beneficial: it forces your [JSON-based] configuration to be simple.
81.
▲
by
redbad
14y ago
Specs have had business concerns in them since... ever. Good specs haven't.
82.
▲
by
redbad
14y ago
Badges ruin communities, full stop. Please keep them far away from this software.
83.
▲
by
redbad
14y ago
Are you aware of gofmt's rewrite rules? http://golang.org/cmd/gofmt/#hdr-Examples Pretty powerful stuff.
84.
▲
by
redbad
14y ago
The arguments to common UNIX commandline tools like sed or xargs are without doubt going to be longer-lived than the arguments to your helper script, likely even longer than the language your helper script was written in, and maybe even lon
85.
▲
by
redbad
14y ago
> Solr uses ZooKeeper under the hood which implements the > Paxos algorithm ZooKeeper does not implement Paxos.
86.
▲
by
redbad
14y ago
This article is full of grammatical and spelling errors, and reads as blogspam.
87.
▲
by
redbad
14y ago
Go implements OOP slightly differently than other languages. Functions are defined on an interface, not a class or subclass. This is not quite correct. Functions are defined on concrete types. Interfaces are named collect
88.
▲
by
redbad
14y ago
This is indeed what Go is great for. But your code example is a bit wonky :) Specifically, for { select { case r := <-ch: // do something with r default: fmt.Printf(".")
89.
▲
by
redbad
14y ago
> Comparing two things is different from equating them. True, obviously. > It's not offensive to compare Stalin to anything, False. > including those things you hold sacred. It doesn't > imply th
90.
▲
by
redbad
14y ago
Am I the only one who thinks Jeff Atwood is completely without the necessary credibility to spearhead an effort like this? To say nothing of the time-tested idiocy of designing a spec by committee? IEEE telco protocols being the canonical e
More ›