Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seivadmas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
seivadmas
11y ago
What happened with that guy? Did he ever come back?
2.
▲
by
seivadmas
11y ago
Rust is a unique language in that it deallocates memory on the heap without requiring the writer to call free, while at the same time having no need for a garbage collector. Someone correct me if I'm wrong but surely this i
3.
▲
by
seivadmas
11y ago
Agree with you 100%, and the ability to dynamically define methods is one of Ruby's great strengths. However, metaprogramming is a power that should be used wisely. When implemented unnecessarily it reduces readability (and probably pe
4.
▲
by
seivadmas
11y ago
Just because you CAN do something doesn't mean you SHOULD. Metaprogramming has a place in Ruby but for the examples in the article there are far more readable ways to implement it. Readability > cleverness every single time.
5.
▲
by
seivadmas
11y ago
Important to note that this isn't STATIC typing (which detects errors at compile-time), rather this is more like a validation library to make sure structures have certain properties at run-time. Not saying it isn't useful, in fact
6.
▲
by
seivadmas
11y ago
Photos are everything man. There are a tonne of average-to-poor looking girls on Tinder who have very good photos of themselves that paint them in a much more flattering light than they really deserve. Take a leaf out of their book. Tinder
7.
▲
by
seivadmas
11y ago
If you are writing Ruby you already decided you didn't care about speed. Don't get me wrong, I think Ruby is a great language and I use it every day to get paid, but it is not a speed queen. Ruby's strengths lie in flexibilit
8.
▲
by
seivadmas
11y ago
Actually it does make a practical difference but I would argue in favor of the electric razor. Ever wonder why it itches in those first couple of weeks if you decide to grow your beard out? Look at that picture. Shaving with a straight-blad
9.
▲
by
seivadmas
11y ago
Sounds like Rubocop for Ruby: https://github.com/bbatsov/rubocop Fast enough to integrate into a continuous integration build process and catches a lot of dumb mistakes/typos before deploying to production.
10.
▲
by
seivadmas
12y ago
Or press cmd-up to go up a dir.
11.
▲
by
seivadmas
12y ago
I haven't used it much so please forgive my ignorance, but what is wrong with git rebase?
12.
▲
by
seivadmas
12y ago
Unless there are third party C extensions involved.
13.
▲
by
seivadmas
12y ago
Must have been utterly terrifying to pilot that thing... the entire aircraft is basically one gigantic fuel tank with a tiny space for a seat at the front.
14.
▲
by
seivadmas
12y ago
Ah I see the problem. Actually I used a Ruby console. So what then is the CORRECT way of doing this comparison in C, avoiding potential overflow pitfalls?
15.
▲
by
seivadmas
12y ago
WTF? The article states: x = 1987654321 and y = -1987654321? Then the difference between them is -319658654 (negative) which proves that x is less than y. That’s less than correct. Which is completely 100% wrong. Surely the differenc
16.
▲
by
seivadmas
12y ago
At the risk of sounding callous, perhaps they are poor BECAUSE they are so indiscriminately generous. Everyone is needy. Everyone always needs help. People have an infinite capacity to suck up your help and they will always need more. Proba
17.
▲
by
seivadmas
12y ago
This also depends on where you live, and your responsibilities. I lived for six months in western Australia working only 2-3 days a week as a bartender. Pay was about $160 per day, which works out to $1500-$2000 per month. With no kids or d
18.
▲
by
seivadmas
12y ago
Forgive my ignorance... but why would anyone want their URL 'forgotten'. If they want to hide from the search engine, isn't that what robots.txt is for?
19.
▲
by
seivadmas
12y ago
Hey I'm interested, do you have an email address I can send a cover letter to? The online form doesn't seem to be working...
20.
▲
by
seivadmas
12y ago
Well I don't tend to actually write much code out by hand. Usually I use a notebook for sketching out ideas, thoughts or todo lists. For copying out code I use the same text editor that I program in.
21.
▲
by
seivadmas
12y ago
I'm sure Quiver is slick software but so often I have seen flashy tools suck up more time and effort in using them than other, simpler solutions. If you want to make quick notes, there is absolutely no better tool than a notebook and p
22.
▲
by
seivadmas
12y ago
You know this is funny, I remember reading comments EXACTLY like this about 3-4 years ago but with pulseaudio in place of systemd. Pulseaudio was Lennart's previous project. It broke everything in linux sound for a while, everybody moa
23.
▲
by
seivadmas
12y ago
Nope, I've never seen it either.
24.
▲
by
seivadmas
12y ago
If you want to find the 'magic moment' try 'The Little Schemer' by Friedman and Felleisen. I'm on my third read of it. The first time I tried to implement all the exercises in Ruby and failed around chapter 7 when t
25.
▲
by
seivadmas
12y ago
Perhaps a naive question but... what is this useful for?
26.
▲
by
seivadmas
12y ago
I think this article was probably written by people who haven't actually tried it. I experimented with the Uberman sleep schedule myself as a student (i.e. 2 hours sleep a day, split into 20 minute naps). I stuck rigidly to the schedul
27.
▲
by
seivadmas
12y ago
How about 49 lines? https://github.com/samphilipd/the-little-schemer/blob/master... I wrote an implementation of Scheme in Javascript to use as I work through the excellent book 'The Little Schemer'
28.
▲
by
seivadmas
12y ago
Or just <ctrl>-f Languagename.