lshevtsov

Joined 17 years ago

Karma
29
Submissions
19
Member since
Jan 14
Ukrainian. Systems architect at @railsware. Open source enthusiast. :: https://leonid.shevtsov.me
View on Hacker News

Recent submissions

Comment · 2 years ago
Comment · 4 years ago
It's because it is not proven that element with the index 1 exists. Even TypeScript enforces bounds checking these days.

As for the first one - as i understand, this will spoil the original array, as it is assigned by reference; so by writing the string into `numbersOrStrings`, you also write it into `numbers`, thus violating the type.

Comment · 9 years ago
But why didn’t you give her the ice cream in the first place? Perhaps, because of a rule? Perhaps that rule was not so bad after all?
Comment · 11 years ago
Comment · 11 years ago
This reminded me of Dogma 95, a similar manifesto for film directors. https://en.wikipedia.org/wiki/Dogme_95

It's not practical, but something uniquely valuable can be grown from the constraints.

Comment · 11 years ago
Or better yet, search right from the location bar of any modern browser, without any intermediary pages.
Comment · 11 years ago
And if you have a MacBook, you can just shut the lid.
Comment · 12 years ago
Another choice is port 8080.
Comment · 14 years ago
There's also Mailtrap http://mailtrap.io/ that prevents test emails from getting to real addresses, and collects them on a server where they could be viewed by every member of the team.
Comment · 14 years ago
This. Having a paragraph of explanation text for each line is not a replacement for source code that is readable by itself.

I understand, though, that explaining each and every line of code was done for the sake of learning C.

Comment · 15 years ago
What are you panicking about? A gig of RAM costs less than a fast food meal nowadays.

EDIT: and the cost of programmer hours required to save a gig of RAM is orders of magnitude more.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton