Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
greenpeas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
greenpeas
4y ago
If food was plentiful and everyone had access to food, sharing food would not be a virtue. It's only a virtue if it's somewhat difficult for the person sharing (it means they are sacrificing something to help others) and at the sa
62.
▲
by
greenpeas
4y ago
sorry, I'm not familiar with the terminology: in £600 - £950pd, "pd" means per day? For what duration are these contracts usually agreed upon?
63.
▲
by
greenpeas
4y ago
A lot of resources are being "wasted" by everyone all the time. Think about the gym memberships and exercise equipment that people buy and never use. Or online courses and books that don't get consumed. Or clothes and shoes t
64.
▲
by
greenpeas
4y ago
wow, thanks. I worked with ruby for more than 5 years, and `||=` never surprised me. TLDR On the distinction between `a = (a || b)` and `a || (a = b)`: * There is no difference when `a` and `b` are local variables (unless `a` is undefined,
65.
▲
by
greenpeas
4y ago
No! Sunday is 6 because "Sunday" has 6 letters.
66.
▲
by
greenpeas
4y ago
S looks like 5 if you squint. not hard to remember
67.
▲
by
greenpeas
4y ago
you're not alone :) https://bugs.ruby-lang.org/issues/15723 This syntax looks ugly, but it's really nice when writing short scripts. Combined with one line function declarations: `def foo(n)= bar`, it can mak
68.
▲
by
greenpeas
4y ago
What do you mean? > When tested for truth, only false and nil evaluate to a false value. Everything else is true (including 0, 0.0, "", and []). In ruby only `false` and `nil` evaluate to false values. 0, [], "" all e
69.
▲
by
greenpeas
4y ago
> > `do_thing if other_thing` > Yeah I don't get why you would deliberately make the flow control confusing and backwards like that. I like to use this as function guards, where the first lines in the body of a function can be
70.
▲
by
greenpeas
4y ago
I don't quite get the distinction in your first item: What's the difference between `a = (a || b)` and `a || (a = b)` ?
71.
▲
by
greenpeas
4y ago
Or with numbered parameters (since ruby 3.0) list.each { work_on(_1) }
72.
▲
by
greenpeas
4y ago
Less than two "australias" away from 8 billion now. https://www.worldometers.info/world-population/
73.
▲
by
greenpeas
4y ago
I think your personal experience with games and game development may predispose you to believe that the majority of HN users share your experience and cultural vocabulary. But judging by the variety of topics discussed here weekly, I think
74.
▲
by
greenpeas
4y ago
Chess Engine - is a well established term in the field. Position estimation and move generation is the hardest and most important aspect of a chess engine. In this sense chess.js may do many useful things, except the thing that would make
75.
▲
by
greenpeas
4y ago
The Chrome browser and various protocols (SPDY/HTTP2 and others though I need to do some research to know exactly which ones). They've also invested a lot in optimizing the JS engine. The Go language, so indirectly contributed to
76.
▲
by
greenpeas
4y ago
> I became a Jr Dev at 33 years old... > I'm now 42 years old... That's 9-10 years.
77.
▲
by
greenpeas
5y ago
I guess if you all promise to be nice, I can stop locking the doors to my house when I leave for work in the morning. We'd also simplify all our web services to not require passwords, we'll just trust all the nice people to be who
78.
▲
by
greenpeas
5y ago
Furthermore, for each piece of equipment lost, resources will be allocated to replace it, and then some. And many other countries have decided to increase their military budgets as a result of this conflict. > How about we just don'