Better HN
topnewbestaskshowjobs
Log inSign up

lshevtsov

29 karma · joined Jan 14, 2010 (16y ago) · 19 submissions

Ukrainian. Systems architect at @railsware. Open source enthusiast. :: https://leonid.shevtsov.me
Submissions

comment 2y ago · link · parent

The "OG" fake SMTP as a service would be Mailtrap [1].

[1] https://mailtrap.io.

2.

UUIDs are obsolete in the age of Docker(leonid.shevtsov.me ↗)

20 points · by lshevtsov · 3y ago · 38 comments

3.

Rails is still the king (2021)(leonid.shevtsov.me ↗)

2 points · by lshevtsov · 3y ago · discuss

4.

Show HN: A rich daily digest feed for Hacker News(feeds.leonid.codes ↗)

1 points · by lshevtsov · 3y ago · discuss

comment 4y ago · link · parent

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 8y ago · link · parent

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 11y ago · link · parent

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...

comment 11y ago · link · parent

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 11y ago · link · parent

Or better yet, search right from the location bar of any modern browser, without any intermediary pages.

comment 11y ago · link · parent

And if you have a MacBook, you can just shut the lid.

comment 12y ago · link · parent

Another choice is port 8080.

comment 14y ago · link · parent

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.

13.

A human-driven sort algorithm (MonkeySort)(leonid.shevtsov.me ↗)

2 points · by lshevtsov · 14y ago · 1 comment

comment 14y ago · link · parent

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 14y ago · link · parent

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.

comment 14y ago · link · parent

How exactly would going through 2 keyboards to switch modes work in a practical situation?

17.

Pivotal Booster, the best native OS X client for Pivotal Tracker(pivotalbooster.com ↗)

4 points · by lshevtsov · 14y ago · 1 comment

comment 14y ago · link · parent

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.

19.

<B> is for Block(bisforblock.com ↗)

2 points · by lshevtsov · 16y ago · 2 comments