Hacker Newsnew | past | comments | ask | show | jobs | submit | lshevtsov's commentslogin

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

[1] https://mailtrap.io.


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.


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?


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


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.


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


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


In my experience this is one of the things Apple still has yet to perfect. I frequently have a problem of my mid-2012 MBP not wanting to wake up when I open the lid no matter how many times I close/open it. Often I have to do a hard reboot.

To Apple's credit, this is also still a problem with PC laptops from what I hear.


Another choice is port 8080.


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.


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.


This is very readable C code, as C code goes. The documentation isn't there as a substitute for that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: