Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zverok
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
zverok
3y ago
(Author here) I don't think this corresponds to my experience. I am working as a staff engineer in big production codebases (with all the traits of those: some code is good, some is bad, some is unrecognizable legacy, sometimes we are
2.
▲
by
zverok
3y ago
Oh, thanks! Added a footnote to the article.
3.
▲
by
zverok
3y ago
Thanks, that's the highest praise I could possibly hope for :) It is one of the things I always enjoyed and tried to achieve myself (when the discussion of design decisions in one language would provide food for thought in the context
4.
▲
by
zverok
3y ago
(Author here) Well, unfortunately a lot of new stuff becomes controversial on the pure ground of "no new language changes! it is good enough for me!" TBH, I thought about a post series like this for a long time, but the last trigg
5.
▲
by
zverok
3y ago
Ruby didn't always had both. `reduce` as an alias for `inject` was introduced in Ruby 1.8.7; `filter` as late as in Ruby 2.6 (just a few years ago, and most of the codebases I saw are still preferring `select`). Yes, the dictionary is
6.
▲
by
zverok
3y ago
Yeah, should've mentioned that probably (though a post is already a mess of footnotes, aside notes, and parenthicals). I do believe though that a lot of modern languages got that from Ruby (or, via Ruby, from "JS that Rubyists wro
7.
▲
by
zverok
3y ago
Ugh, never thought about that this way! I believe it is a habit back from my journalistic days, when there were "insets" besides the main text with "things that deserve mentioning here, but kinda out of the main flow... but m
8.
▲
by
zverok
3y ago
Well, first of all, I was one of those who fought for method references as first-class objects for a few years (the story is told in my blog before[1]), and "let Ruby eventually become more functional" was one of my main arguments
9.
▲
by
zverok
3y ago
> I don't find the hypothetical Ruby syntax ["hello","goodbye"].map(&reverse) to be offensive or wildly inconsistent. This syntax wouldn't work in Ruby, because bare `reverse` is already a method call, n
10.
▲
by
zverok
3y ago
I made a small nod towards Haskell's way of doing things in the last paragraph of "How others do it" section: > We might also start look into the concept of the “tacit programming”, which, from some point of view, is also
11.
▲
by
zverok
3y ago
Well, I expected that, but slighlty hoped that ironical quotes will help (which is also part of the name of the series, started with explanatory intro[1]). But I am afraid it is hard to do something to prevent people communicating with arti
12.
▲
by
zverok
3y ago
Thanks, that's insightful!
13.
▲
by
zverok
3y ago
Yes, that's what I referred to. Before 2.7, object&.:method was almost merged (or rather merged and reverted) because Matz had second thoughts about its uglyness... Which is not completely untrue, but not having a concise way for r
14.
▲
by
zverok
3y ago
Ruby-idiomatic pipe operator is Object#then. After a lot of design proposals and discussions it is more or less evident no solution other than method would integrate naturally with the rest of the code. So it is just `arg.then{ third(_1)}.
15.
▲
Andy Hunter on Bookshop.org’s Second Anniversary
(publishingperspectives.com)
2 points
by
zverok
5y ago
|
0 comments
16.
▲
by
zverok
5y ago
In rewritten code: https://zverok.github.io/advent2021/day11.html — I'd say it is relatively probable (grep for this line): if_(stories == 1, ()=> chance(2/3, ()=> [1, "Pizza Hut"])) E
17.
▲
by
zverok
5y ago
The `times` solution was overhtought, and later I get rid of it. In the end, the code of cycle like this are handled with `range`, for example: var points = range(resolution).map( i => ({x, y: y - (i * height) / resoluti
18.
▲
by
zverok
5y ago
Wow. Now THAT is impressive!
19.
▲
by
zverok
5y ago
Yeah, I am mentioning it at Day 11, while debugging the singular house logic: https://zverok.github.io/advent2021/day11.html :)
20.
▲
by
zverok
5y ago
I actually hope the WikipediaQL, when it will become a bit more mature, to be helpful in parsing Wikipedia data _into_ Wikidata. As of now, Wikidata lacks a lot of knowledge yet (the article talks about that, too).
21.
▲
by
zverok
5y ago
I am (slightly) contemplating this (see also Reddit discussion: https://www.reddit.com/r/programming/comments/oe9oia/wikiped... ). But currently I am mostly focused on deducing atomic selectors that would
22.
▲
by
zverok
5y ago
The answer is complicated (I am mentioning it in the midst of plans and possibilities in README: "(maybe?) other MediaWiki-based sites (like Wikvoyage, Wiktionary, etc.)"). In more details: 1. With the current library, you can
23.
▲
by
zverok
5y ago
Thanks! I am mentioning Wikidata/SPARQL in README (TL;DR: less data still, harder to discover unless you are deeply into SemWeb tech), but I expect this project, will it live long (fingers crossed) will definitely has some relations wi
24.
▲
by
zverok
5y ago
Yeah, it is dated and naive in many ways :) Really don't know how the HN works and why this one made it to the main page while some of the other stuff I write rarely does so ¯\_(ツ)_/¯ (In _some_ defense of the post, at the time o
25.
▲
by
zverok
5y ago
(author here) Me neither! Don't know how or why it suddenly appeared on the HN main :) Just to provide a bit of the personal context: this article caused creator of DaRu (Sameer Deshmukh) to contact me and propose to work on DaRu toge
26.
▲
In Praise of the Singular “They” in Literary [Ukrainian to English] Translation
(lithub.com)
2 points
by
zverok
5y ago
|
0 comments
27.
▲
A Writer from the Future: Who Was Sci Fi Iconoclast Izumi Suzuki?
(lithub.com)
3 points
by
zverok
5y ago
|
0 comments
28.
▲
Who Is “Public” Data For?
(lithub.com)
41 points
by
zverok
5y ago
|
21 comments
29.
▲
“Embarassing words”– on a relationship between natural and programming languages
(code-anth.xyz)
1 points
by
zverok
5y ago
|
0 comments
30.
▲
Meditation on Sale
(theitalianreview.com)
1 points
by
zverok
6y ago
|
0 comments
More ›