Better HN
topnewbestaskshowjobs
Log inSign up

codesnik

1,035 karma · joined Mar 11, 2009 (17y ago) · 496 submissions

Submissions

comment 5y ago · link · parent

There could be consequences, btw. Like being barred from getting a pilots license in US if you'd ever acquire a taste for flying for example.

comment 5y ago · link · parent

fun. did you happen to learn those words from some dog-owner, by chance?

comment 5y ago · link · parent

garam and garum do seem similar, but how latin word for something lost in medieval times could've come to indonesian language?

comment 5y ago · link · parent

well, jsonlines works extremly well for gigabytes of short json objects. You can mix and match usual unix tools, or simple scripts with just "read" in a loop, and you can parse each json object without worrying it'll take all your memory. jq can convert arrays to json lines and back. I love the format.

comment 5y ago · link · parent

although nothing really vanishes anywhere, no? I wonder, if sun or anything else would fully annihilate, would resulting gamma radiation still produce a gravitational pull just because of the energy contained in it?

comment 5y ago · link · parent

Mandatory squash merge would be very bad, right. But it sounds like success of this policy is highly dependent on the code size of average PR. I really liked to work at place where commits were usually squash-rebased, which got rid of most "typo"s, but long lived huge feature branches lived mostly usual life. And if possible, some logically atomic and finished groundwork parts of feature branches were extracted and squash-rebased into master ahead of time, slimming feature branch, sometimes to the point that feature branch could be squash-rebased too. Git blame was VERY pleasant to work with, and git-bisect would actually work if need would arise.

comment 5y ago · link · parent

git CLI isn't so bad for that, why? I do --fixup commits all the time, git commit -i gives me all the power to reorder, merge and even split commits.

comment 5y ago · link · parent

some games from 80ies didn't even try to retain MSDOS in memory. The only way to "exit" the game was to reboot.

comment 5y ago · link · parent

article is from 2013. And the road still stands.

comment 5y ago · link · parent

I started to make money writing in perl when it was long on decline already, in 2005-2007. I've switched to ruby after that. It's not widely known, but perl had a lot of influence on ruby, in much cleaner syntax and without baggage of text-only-processing scripts of early 1980-es

comment 5y ago · link · parent

1password payment form filling works fine so rarely for me, I usually copy just number by hand. I wonder if that's somehow specific to Russia (field names are still in english, but it doesn't seem to help much)

comment 5y ago · link · parent

7-8 meter diameter mirror in outer space would be too small? Should be possible to put into orbit in one starship launch. And a system of big mirrors could be probably assembled and aligned together, without gravity and outside vibrations.

comment 5y ago · link · parent

I sometimes joke that our brains were needed during glacial periods to survive, and now we just invent chores and make fuss over everything just to keep it busy.

comment 5y ago · link · parent

How is it white, no light is able to go in direction from the center even after crossing event horizon (if that even possible to do mantaining ability to observe anything)

comment 5y ago · link · parent

black holes are capturing imagination because of scale and many other reasons, but their danger just not worth to even discuss. Space is empty and time is slow.

comment 5y ago · link · parent

SQL is greatER than excel's default mode of addressing data. As russian, I've worked with a very diverse data sources in different encodings during my career, fair amount of broken CSV's, xml's, etc, cleanups, joins, sqlite processing etc. And yes, many, many excel files used as a poor man's data entry software to cleanup. No german abbreviations, right, just poorly made russian transliterations.

comment 5y ago · link · parent

The fact that vlookup with all its usability, pitfalls and speed is still the main way to relate data in excel basically proves my point.

comment 5y ago · link · parent

But they're pain in the ass to use, modify, and really feel as an afterthought which barely used by anyone. Compare this to "Numbers": you just enter any text int row or column header and this text is immediately usable and visible as a range specifier in formulas. How intuitive is that?

Also excel has (inner) tables inside of tables, with more restrictions that. Also excel even has SQL-dialect for querying columns. That's not important, important are defaults, and how your simple spreadsheet you can fit into a screen is going to evolve. Excel makes it VERY hard to not make a mess, even if you have time to learn it.

comment 5y ago · link · parent

Spreadsheets, as they incarnated in Excel are akin to running old style no-named-subroutines, only-two-chars-per-variable-name, goto-line-number BASIC but on modern hardware. Ideas that could potentially grow into something safe and powerful cannot grow now because of market dominance of that outdated monster.

And I keep hearing the same arguments, like "it can be used without knowing how to program" - but have you actually seen those formulas they enter? How exactly it differs in complexity from, say, SQL? At least in SQL you'll have sanely named columns and can actually see logic, reading it a month later.

Mixing datasets and freeform reports in the same sheets is a design mistake. Having auto-conversion for data is a design mistake. Not having enforced row/column sets instead of just typing any formula anywere is a design mistake. All that leads to millions of wasted hours of human life just looking closely on rows and rows of numbers with squinted eyes, trying to figure where accidental keystroke had broken your data.

I really liked how MacOS Numbers approached spreadsheets, before they were somewhat butchered for ipads and excel compatibility: spreadsheets were not "infinite", separating concept of tables from concept of pages; column and row headers automatically used as names in formulas instead of undescriptive A1:B2 format, making them actually readable.

Unfortunately it was also slow as hell.

Airtable is a good direction for data entry purposes by multiple people, unfortunately it's no good for even medium sized tables, and exporting is limited.

comment 5y ago · link · parent

excel is a grandiose waste of human time, exactly because of that "well enough" feature set.

comment 5y ago · link · parent

keep history just as a changelog to see when and what was changed? or something with versions you actively can revert to? I suppose one of the problems is that changing schema is usually interleaved with some sorts of data migrations and conversion and those I have no idea how to track without using some general scripting language, like migrations in many frameworks which are already there.

comment 5y ago · link · parent

spreadsheets barely have distinction between strings and numbers. Units would be another level! I hope that at some point something like a strongly typed jupyter notebook tailored specifically for table inputs would arise and replace some current usages of spreadsheets in office/consumer space.

comment 5y ago · link · parent

It's mostly to work less surprising to the programmer, AFAIR. Probably the most complexity is from having to differentiate local variables and methods depending if the symbol had an assignment before in the scope.

comment 5y ago · link · parent

bison should be compared to https://github.com/tree-sitter/tree-sitter-ruby/blob/master/... probably?

comment 5y ago · link · parent

> After you've had the final meal, you've got about 2h left.

spooky

comment 5y ago · link · parent

oh my, I was prescribed a course of doxycycline once, and those were gloomiest and angriest couple weeks of my life. I felt like I'm a sociopath, just didn't care about people emotionally. And that bitter taste all the time, like my saliva just become bitter.

comment 5y ago · link · parent

um, I wonder, who works in Fed and who writes their policies?

comment 5y ago · link · parent

I understand this simple rule, and I understand closures, of course, it's just using closure semantics for default arguments doesn't make any sense, aside from some optimization maybe, and pretty dangerous. Other approaches are possible, see ruby, for example, default arguments are evaluated basically as if they're already in the body of running function, every time, only when they're not passed, and with the same lexical scope as the function/method. And what, python retained this behavior even in 3.x? omg.

comment 5y ago · link · parent

module-level dict?... why...

comment 5y ago · link · parent

But what if you want to match to value of some variable in the scope? I see no "^pinning" of variables or stuff like that. There's "dotted" syntax, but it works only for constants and fields, not local variables, right? Am I missing something?
1
111213
17