HNHacker News
TopNewBestAskShowJobs

lshevtsov

29 karma · joined January 14, 2010

Ukrainian. Systems architect at @railsware. Open source enthusiast. :: https://leonid.shevtsov.me
submissionscomments
lshevtsov··on Show HN: A fake SMTP server for software integration testing
The "OG" fake SMTP as a service would be Mailtrap [1].

[1] https://mailtrap.io.

lshevtsov··on Hegel – An advanced static type checker for JavaScript
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.

lshevtsov··on Taking Children Seriously
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?
lshevtsov··on A Killer Adversary for Quicksort (1999) [pdf]
I made an implementation of this algorithm as a university assignment;

here's a vanilla implementation of Quicksort https://github.com/leonid-shevtsov/uni-programming/blob/mast...

and here's the function to generate data that causes the custom implementation to go O(n^2) https://github.com/leonid-shevtsov/uni-programming/blob/mast...

lshevtsov··on Anti-Web-Design Manifesto (2013)
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.

lshevtsov··on The Fastest Blog in the World
Or better yet, search right from the location bar of any modern browser, without any intermediary pages.
lshevtsov··on A new way to lock your computers: just walk away
And if you have a MacBook, you can just shut the lid.
lshevtsov··on Patch to Log SSH Passwords – One Year Results
Another choice is port 8080.
lshevtsov··on Announcing mails_viewer - easiest way to test mails in Rails app
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.
lshevtsov··on My first C program: simple process supervisor like daemontools/runit in 359 LoC
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.

lshevtsov··on Tell HN: RAM Requirements are going through the roof
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.

lshevtsov··on Vim ported to iOS
How exactly would going through 2 keyboards to switch modes work in a practical situation?
lshevtsov··on Ask HN: What's your experience with remote working? as employees/employers?
I'm a remote Ruby developer. Most of our team is on-site.

My main problem is: online communication makes discussion much more complicated than face-to-face, so you don't contribute as much ideas when people brainstorm or otherwise solve creative problems. If you have a lot of ideas, that can be depressing.

I visit the office several times a year, mostly to share thoughts and socialize.