Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codesnik
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
codesnik
7mo ago
yes they do. check ruby for example.
32.
▲
by
codesnik
7mo ago
I wonder, why that kind of ambiguity or complexity even comes to your mind at all. Just because python is weird? def foo(self, arg=expression): could, and should work as if it was written like this (pseudocode) def foo(self, arg?): if is
33.
▲
by
codesnik
7mo ago
you could just treat argument initialization as an executable expression which is called every time you call a function. If you have a=[], then it's a new [] every time. If a=MYLIST then it's a reference to the same MYLIST. Simp
34.
▲
by
codesnik
7mo ago
basically all object oriented languages work like that. You access a member; you call a method which changes that member; you expect that change is visible lower in the code, and there're no statically computable guarantees that partic
35.
▲
by
codesnik
7mo ago
it starts with a pretty common char, but almost never gets in the way to the point I forget it exists. Meanwhile docker -t uses ^P which I use all the time for history instead of arrow keys. It's possible to configure it, but it's
36.
▲
by
codesnik
8mo ago
how does dichromatism restricts flight license? no instrumental flights? no night flights? something about perceiving warning lights on some panels?
37.
▲
by
codesnik
8mo ago
pcr amplifies all sequences, correct or wrong, no? and as I understand it, it works on short snippets the best.
38.
▲
by
codesnik
9mo ago
it'd sound reasonable, if that ownership wasn't already overconsolidated. But who says people doing that are reasonable.
39.
▲
by
codesnik
9mo ago
I was a kid without any PC anywhere in 40miles around me, had no idea that SCSI had to be terminated or anything. I don't remember any jumpers on the drive, though.
40.
▲
by
codesnik
9mo ago
nope. it was in a 3.5" bay in my standard AT box, but it was smaller, on some massive rusty metal adapter. It looks like it was from some early apple powerbook. I've got my computer second hand from some rural school accounting de
41.
▲
by
codesnik
9mo ago
I've been 10-11 at the time, and half the games I had didn't have an obvious "quit" menu option. I hated pressing the hardware "reset" button because it meant waiting for a minute again, staring at the BIOS set
42.
▲
by
codesnik
9mo ago
very much not on topic, but that reminded me: my first PC (286) miraculously had a 40MB 2.5" Apple-branded HDD connected via SCSI adapter. Who knows where it was sourced from. One weird thing was that it initialized on boot for about 4
43.
▲
by
codesnik
9mo ago
it's just "gitflow" is unnecessary complex (for most applications). with rebase you can work more or less as with "patches" and a single master, like many projects did in 90x, just much more comfortably and securely
44.
▲
by
codesnik
9mo ago
whoa. well, if it really works for you. The thing is, git has practically zero "destructive" commands, you almost always (unless you called garbage collector aggressively) return to the previous state of anything committed to it.
45.
▲
by
codesnik
9mo ago
I learned Perl scripting client for one MUD back in 2000, and that led me to web development. Just a month ago, I remembered one MUD I've been trying out since 2003. And found that it is still online, and my password still works. Very
46.
▲
by
codesnik
9mo ago
well, not only their software but also hardware resources they're renting, but I agree they don't.
47.
▲
by
codesnik
9mo ago
this is what I don't understand, why is it useless? there're multiple variants, vaccination could create reaction to a different part of the virus, etc.
48.
▲
by
codesnik
9mo ago
This is my biggest irk about Sorbet: because its signatures are wordy and because it can't infer the generic type of a private method, it slightly pushes you towards NOT extracting helper methods if they are going to be 2-5 lines. With
49.
▲
by
codesnik
9mo ago
eh, it's just a little celebration. Let Matz have it.
50.
▲
by
codesnik
9mo ago
from what I understand, ruby::Box has nothing to do with GIL. At least, not yet.
51.
▲
by
codesnik
9mo ago
I only have it when iphone simulator is running and using the same audio output.
52.
▲
by
codesnik
10mo ago
And earth contains so much of heavier elements.
53.
▲
by
codesnik
11mo ago
I think idea was that fungi for some time couldn't consume lignin in fallen trees.
54.
▲
by
codesnik
11mo ago
I kinda feel that singly linked lists isn't a data structure in FP as much as a (dynamic) control flow structure. It's okay in that application.
55.
▲
by
codesnik
11mo ago
interesting. how named arguments work with currying?
56.
▲
by
codesnik
11mo ago
this is very unnecessary. Arrays and maps transformations are really easy and concise in core ruby already, one line of map, to_h or whatever.
57.
▲
by
codesnik
11mo ago
Well, erlang and elixir operate on almost exclusively immutable data, in addition to message passing between "processes". They are more strict than most other languages in that regard.
58.
▲
by
codesnik
1y ago
or wifi toggle-toggle!
59.
▲
by
codesnik
1y ago
it's an .oh-my-zsh thing (~/.oh-my-zsh/lib/functions.zsh) but thanks, I didn't know about it.
60.
▲
by
codesnik
1y ago
problem is not with ifTrue, and not with it's performance, it's easy to do. it is "ifTrue:ifFalse:" also it is common to do assignments in the "if", and with actual method and blocks scope of the introduced var
More ›