Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nvader
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
511.
▲
by
nvader
11y ago
Have a look at https://github.com/dnschneid/crouton It lets me run ChromeOS most of the time, and then fire up an Ubuntu session when needed.
512.
▲
by
nvader
11y ago
Agreed. My personal laptop is a Pixel with Crouton to run Linux for development.
513.
▲
Polarised light and the super sense you didn't know you had
(theconversation.com)
1 points
by
nvader
11y ago
|
0 comments
514.
▲
by
nvader
11y ago
The terminology in that article is avowedly nonstandard; I found it off-putting. "Parallelism/Concurrency is good when... Parallelism/Concurrency is bad when...". The author cites feedback received in an interview to thi
515.
▲
by
nvader
11y ago
It appears that since Ruby 1.9 they guarantee insertion order: http://ruby-doc.org/core-2.3.0/Hash.html I guess there are two approaches to solving the problem of people using your data structures the wrong way. Edit:
516.
▲
by
nvader
11y ago
I actually found it more interesting that Ruby hashmaps ("hashes" :S) preserve insertion order and guarantee predictable insertion. I was taught to never trust the ordering returned by iterating over keys of hashmaps because it ca
517.
▲
by
nvader
11y ago
Thanks for the share, that was a very illuminating read (accidental pun). As an aside, why do they all spell laser as "l@ser"? There's 3 instances of "laser", two are from the title repeated, and one is in the body.
518.
▲
by
nvader
11y ago
Awesome but impractical idea: require every laser over a certain wattage to encode in very short pulses its own serial number. On first purchase and every resale, owners much register and transfer ownership. Now, whenever such an incident h
519.
▲
The Six O'clock Swill
(en.wikipedia.org)
2 points
by
nvader
11y ago
|
0 comments
520.
▲
by
nvader
11y ago
One argument I've seen for using dictionaries is that namedtuples restrict you to column names that are valid Python identifiers, which is a smaller set than postgres allows for column names (postgres allows the '$' and non-L
521.
▲
by
nvader
11y ago
I learned to program in BASIC from a copy of "The Beginner's Programming Handbook" that my father gave to me. Like many other commenters on this thread, I didn't have a computer, but the illustrations in the book itself
522.
▲
by
nvader
11y ago
So, https://gist.github.com/danverbraganza/8447acc70ad08c92d4fd has an uglified version of the same code, shortening identifiers, removing extraneous whitespace, and (!) replacing bool(x) with not x to save 2 character
523.
▲
by
nvader
11y ago
I tried to explain in my article how the code works. If I did my job well, you should be able to write the clear version yourself!
524.
▲
by
nvader
11y ago
Isn't the rest of the problem of fizzbuzz to then map your oneliner over the range 1 to 100, and print each result on a new line?
525.
▲
by
nvader
11y ago
I like it! Looks like you replaced while with a recursion, and you had to import sys to get rid of a print statement. Bravo :)
526.
▲
by
nvader
11y ago
I applaud the author's decision not to invest effort in learning that doesn't fit her goals. Perhaps one day in our future coding ability will become a requirement in society, in the same way that literacy did over the course of h
527.
▲
Show HN: Hangman in 3 lines of Python
(danverbraganza.com)
58 points
by
nvader
11y ago
|
25 comments
528.
▲
by
nvader
11y ago
Maybe as engineers we are tempted to misunderstand the motivation for building this. As other commenters have pointed out, the main reason for this is political. Perhaps the secondary reason is not so much the actual utility of the solar ro
529.
▲
by
nvader
11y ago
I'm sad the grandparent was deleted, I really wanted to comment with: "Horse-less carriages will never work! How would you fill them with grass?"
530.
▲
by
nvader
11y ago
I would concur with the article's recommendation of a brisk walk, because when running in the rain you risk slipping and falling, which puts you contact with the wet ground, and prolongs the time you spend out in the rain.
531.
▲
by
nvader
11y ago
You can use the _ signifier to mark imports as optional during development: use import _ "net" Make sure you don't check such lines of code in to your repo, because there is a concrete benefit to having the language
532.
▲
by
nvader
11y ago
My practice has usually been to ensure that the zero values of the types ARE a sane default for a struct if that struct is public and may be instantiated by a client. It sometimes involves flipping the semantics of some Boolean values aroun
533.
▲
by
nvader
11y ago
Very interesting. I see what might be a problem, however: determining the difference between a zero-value in a struct that was supplied intentionally, or one that was left unspecified. To clarify what I mean, in the example on that page the
534.
▲
by
nvader
11y ago
Did you just reply to yourself? I'm really confused and curious to know what just happened.
535.
▲
by
nvader
11y ago
I most often run into using super() with __init__(). This makes the problem with calling super from a specific superclass very obvious. Every class along the hierarchy needs to ensure that it's __init__() gets called (or you end up w
536.
▲
How to remember the order of arguments to super() in Python2
(danverbraganza.com)
1 points
by
nvader
11y ago
|
2 comments
537.
▲
by
nvader
11y ago
Props to Tavis for maintaining his composure in the face of this incompetence. Despite his mounting frustration, you can see he keeps repeating his request, "Turn it off, apologise for the disruption, and then get it audited before tur
538.
▲
by
nvader
11y ago
Is there a way for the public to challenge a patent application during the process? If there isn't, what would be the most expedient way of getting such a step added to the application process?
539.
▲
by
nvader
11y ago
Could you explain what you mean by "summer hours"? The term is not familiar to me, and Googling was unfruitful.
540.
▲
by
nvader
11y ago
The parent could be stating that late twenties is the average age of startup founders, not that that they are in their late twenties themselves. I do agree with you that someone who claims to pick up new languages in a week should already h
More ›