News for hackers. Stuff that matters.

philcrissman

Re:Euler's Fizzbuzz (2020) on Tuesday March 16, 2021 @08:39PM (#26485141)
Thanks!

Re the margin notes, the footnote numbers are clickable to toggle them inline when the width is too small... I should add a bit of color or underline to them in the css so that this is easier to intuit. :/

Re:Euler's Fizzbuzz (2020) on Tuesday March 16, 2021 @01:55PM (#26480391)
I was actually asked Fizz Buzz in an interview once, but I did not have this solution at the time.

My favorite FizzBuzz solution is actually:

``` ->(n){[[["Fizz"][n%3],["Buzz"][n%5]].join].find(->{n}){|w| w if !w.empty?}} ```

This is Ruby, of course, probably something very similar can be done in several other languages.

Re:Euler's Fizzbuzz (2020) on Tuesday March 16, 2021 @01:48PM (#26480273)
Not sure how this came back around into the zeitgeist today, but this is my post from awhile back. Thanks to all who had nice things to say about it.

I'm definitely an amateur mathematician, though I tried my best to write the post like I think I'd try to write a proof. It came about because I stumbled across the equation, but I did not know _why_ it worked, so I was semi-obsessed with figuring out the _why_ for a long time.

I have nothing else to promote, haven't even put anything on the site since this one and only post... Anyways, thanks, news-YC.

Re:Brightcove Acquires Zencoder (YC W10) on Thursday July 26, 2012 @04:33PM (#4298526)
Congrats, guys!
Re:Why To Write Tests For Your Code on Monday August 29, 2011 @02:31PM (#2938240)
I don't even ask anymore. If I'm writing an app for you, I'm starting with tests, before I even write a line of executable code. If you don't want tests for your app, you'll need to find a different developer. It's not an optional part of the process, it's how the app is developed.
Re:Most people have no idea what the word hacker means on Tuesday July 26, 2011 @09:25PM (#2810292)
Maybe this is nitpicking, but did the author this article do zero fact-checking?

>Mr. Mitnick, who ... is publishing his first book in August...

Er... Following the link to his "first book" leads to Mr. Mitnick's website, whose products page lists his... other books...

Not to mention the well-known tech writer Stevy Levy. :-)

Re:Rails 3.1 has jQuery by default on Thursday April 21, 2011 @11:29AM (#2470985)
Rspec doesn't really need to be in the default stack; switching to it takes what; a minute? That's not a benchmarked timestamp, but I'm just saying... :-)
Re:HTML 11 Labs on Wednesday April 20, 2011 @11:07AM (#2466886)
April 1st was 19 days ago... ;-)
Re:How to construct a web developer in twelve months on Wednesday March 16, 2011 @01:56PM (#2333067)
Totally agree. Reading HN, blogs/etc is fine, but the net result is: more time reading == less time doing [whatever].

Play + Build should absolutely be 90% of the activity of a would-be developer. Most of the rest of the list could go away. Research is fine, but really only if you're going to _use_ it.

I do find local meetups beneficial, _particularly_ if you can work yourself up to do a presentation on something. Presenting on a topic is a great way to make yourself learn it better.

++FIND A CUSTOMER: Maybe the best advice ever. Has the additional benefit that unless you completely mess up, you get paid. And if you do mess up so badly that you don't get paid, hopefully you learn something about how not to repeat that.

I have to add (since this is a list for people learning): learn git or mercurial. If you know one, you can pick up the other. I don't really think this is optional.

Re:Like.fm (YC W11) Is A Social Network For Tracking Songs on Tuesday March 08, 2011 @09:02AM (#2300847)
Mini-ask HN: Why link to a techcruch article when you could just link to the startup's website? I'm not trying to be ornery, sincerely asking.

I'm not interested in reading a techcrunch article about a new startup. I'd rather go straight to the startup and look at it.

Re:Start Me Up: Minnesota’s First Start-Up Accelerator on Friday December 10, 2010 @12:28PM (#1992361)
I'm not sure about it being the "first"; The Minnesota Cup (http://breakthroughideas.org/) has been around for awhile, and http://minnestar.org has done some micro-seed funding.

http://speedylemur.com is also local to Minneapolis, though I don't know how many startups they've funded yet.

Regardless, still cool news for entrepreneurs in this part of the midwest...

Overwhelmed with traffic?

Would really like to see this. :-) If it has an API I'd love to tie something like this to http://tldrd.com to auto-generate summaries of various texts.

Re:Why I downvote "tl;dr" comments on Hacker News on Saturday October 16, 2010 @10:02PM (#1799398)
Does this mean there's no place for http://tldrd.com ? :-)
Re:99 Out Of 100 Programmers Can’t Program – I Call BS on Saturday October 16, 2010 @11:43AM (#1798132)
But "Really?" is actually a very good question; it's an appeal to common sense. Do we all work at places where only 1% of the programmers can actually program? I know I haven't... even when I just started and was clearly the least experienced person on the team, I could still get things done...

Older »