Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jonahx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
961.
▲
by
jonahx
8y ago
Not only are these differences not the high-order bit of programmer time, for most applications they're probably the lowest-order bit : > So what do these numbers tell us? Basically, to process exactly the same code, you can either
962.
▲
by
jonahx
8y ago
I recall you saying that "Cryptography Engineering" was much better than AC somewhere. Do you recommend Serious Cryptography over that?
963.
▲
by
jonahx
8y ago
> As with all engineering, there are always trade-offs to every decision This is the cliche that needs to be put to rest. Yes, often there are tradeoffs. But just as often one thing is better than another thing, and there is no tradeoff
964.
▲
by
jonahx
8y ago
Two relevant points here: 1. My comment assumes the code itself is well-written and clear. If it is, the plain English explanation will be superfluous, and you'll be able to understand the code just as fast. If it's not, then th
965.
▲
by
jonahx
8y ago
Good : High-level comments that provide context, history, and motivation for the current design. Also good : Line comments that explain cryptic details (eg, the semantics behind bit manipulations) or link to things like protocol definiti
966.
▲
by
jonahx
8y ago
> That's... not the point. Jumping around is. There is a tradeoff: Small functions make high-level logic clearly visible and easy to find, at the price of forcing you to jump around when you want to dive into implementation details.
967.
▲
by
jonahx
8y ago
> It’s human eyes that skim through all the cases, and look for a matching branch for every one of them that “ensures.” This a thousand times. The praise in this thread is disturbing. The absurdity of this code is the logical conclusion
968.
▲
Special Cases Are a Code Smell
(blog.conjur.org)
1 points
by
jonahx
8y ago
|
1 comments
969.
▲
by
jonahx
8y ago
Two similar lists: Kent Beck's: https://www.facebook.com/notes/kent-beck/a-searching-and-fea... Another one: https://www.defmacro.org/2016/12/22/models.html
970.
▲
by
jonahx
8y ago
For those wanting to kill the "learn logic programming" and "learn a golfing language" birds with one stone, check out: https://github.com/JCumin/Brachylog
971.
▲
by
jonahx
8y ago
Have a look at: https://ramdajs.com/
972.
▲
by
jonahx
8y ago
I'm aware of the reasoning. As you say, in C people would carelessly edit: if (condition) doSomething to if (condition) doSomething doSomething2 So fair enough, you protect against that. You cannot
973.
▲
by
jonahx
8y ago
> FTR, with "most certainly" you're committing the same fault your accusing the Go team here. Fair enough. It's too late to edit. > I don't understand the difference between this suggested phrasing and talkin
974.
▲
by
jonahx
8y ago
Oh let's be very clear: Go is actively, explicitly anti-FP, anti-expressiveness, anti-brevity. Those are simply not its values. And any attempts to write Go in FP style will be considered unidiomatic Go. And the missing ternary will
975.
▲
by
jonahx
8y ago
This would be a reasonable position: "While the ternary is often clearer, we chose to sacrifice expressiveness and brevity for the sake of preventing abuses, which we found were all too common." But that is not the claim being mad
976.
▲
by
jonahx
8y ago
Contemptuous scorn seems to be the officially-sanctioned strategy for responding to reasoned critique or even questions about "the go way" within the community. My favorite example here is this arrogant dismissal of the idea that
977.
▲
by
jonahx
8y ago
This explanation is so succinct and natural you might miss how well done it is.
978.
▲
by
jonahx
8y ago
Yeah, when I said: > It doesn't have to be merge commits, necessarily. I was thinking of a tagging strategy.
979.
▲
by
jonahx
8y ago
I see, and I believe your intentions weren't bad. But as some constructive criticism I'd say the optics are not good. The phrase "brooo" just feels tone-deaf and minimizing here. And unless you are the most charmingly
980.
▲
by
jonahx
8y ago
Yes I know what it is, I was questioning the "brooo... " comment, which seemed so tonally inappropriate and weird in what otherwise seemed like a thoughtful list.
981.
▲
by
jonahx
8y ago
> Man's Search For Meaning (brooo... I am so sorry) ??
982.
▲
by
jonahx
8y ago
Not sure I follow your argument. How would you put information about the semantic meaning of a series of commits into "the commit body"? The only point I'm making essentially is that "the commit" is too granular
983.
▲
by
jonahx
8y ago
Because they are logically grouped and that grouping is often more important than the commits themselves -- together, they accomplish a higher-level goal. You want both that goal and the individual tasks which achieved it to be visible.
984.
▲
by
jonahx
8y ago
This is false at the company I work for now (an large enterprise) and was false when I was hiring for my startup.
985.
▲
by
jonahx
8y ago
+1 to irccloud. that said, gitter has many useful features that aren't available on irc: inline code with syntax highlighting, inline images, etc.
986.
▲
by
jonahx
8y ago
You can post self-hosted articles on HN, reddit, etc. I doubt that "You might like this..." clicks on Medium would add significant eyeballs to an independent author's articles.
987.
▲
by
jonahx
8y ago
Could you give more info on how this is better (or when this is better) than an ordinary notebook like evernote. I read through the homepage and found this: > which lets you directly model your workflow and document your reasoning with
988.
▲
by
jonahx
8y ago
I love this. Do you happen to know if there's anything similar for ruby?
989.
▲
by
jonahx
8y ago
I sense this won't be a popular answer, but it aligns with my experience teaching both english and math to undergraduates, as well as my personal observation. Disheartening but true.
990.
▲
by
jonahx
8y ago
That link is broken, but archive.org has it: https://web.archive.org/web/20100713132640/http://publicatio...
More ›