News for hackers. Stuff that matters.

Donito

Re:Ask HN: How/where should I host my personal site? on Monday August 12, 2013 @03:29PM (#6201133)
Heroku's free plan is a good option, but it does require some knowledge of git/one of their supported framework. Good learning regardless.
Re:Ask HN: Interview Questions for Front End Developers on Wednesday August 07, 2013 @07:32PM (#6176381)
Create an infinite scrolling effect for an image gallery. This will test out the following:

* Ajax * Event handling (scroll) * Basic arithmetic (e.g. when to trigger a new request based on % page scrolled) * Template/DOM insertion * Thinking about edge cases (e.g. what happens when the page is resized, or the ajax request has no more elements to return)

Re:Javascript Constructors and Prototypes on Thursday August 01, 2013 @04:52AM (#6139281)
Terrible article in my opinion teaching some really bad habits that will cause hard to find bugs over time. Truth is, omitting semi-colons is probably fine at smaller scale, but for larger javascript code base with multiple maintainers, it's definitely a better practice in my opinion. Oh well, no point in me saying what has already been said :)
Re:ChessBoardJS on Sunday July 28, 2013 @04:34AM (#6116054)
Play a full game and you'll be surprised, the AI is actually surprisingly good and gets better as the game progresses, especially given the size of the code.
Re:Why is there no (ad-free) YouTube Premium? on Thursday July 04, 2013 @03:41AM (#5989592)
There's hidden cost associated with offering a paid membership for "privileged" users, in that it affects the overall perception of the product. Many non-paying users would feel negatively about it, and start looking for alternatives. As a result, the membership fee has to cover (1 + lost users) advertisement revenue.
Re:Ask HN: What's a good way for an engineer to learn design on Wednesday June 26, 2013 @06:27PM (#5949552)
Some good ideas in this blog post: http://karenx.com/blog/how-to-become-a-designer-without-goin... (I'm not the author of the post)
Re:Ask HN: What board game do you like? on Wednesday June 05, 2013 @01:47PM (#5827292)
I stick to the basics: Chess.
Re:Ask HN: Accepting Bitcoin for freelance work on Thursday April 25, 2013 @04:18AM (#5606182)
120$/BTC hasn't been fairly stable. Just a few days ago it was at 70.
Re:Ask HN: Pilot jobs in San Fran? on Friday April 05, 2013 @05:34AM (#5497442)
Would you be interested in trading services? I can teach you how to code, in exchange for flight instruction. I'm in SF.
Did you try creating a new gmail account with that email? If you succeed, it means no one ever received those documents :)
Re:Ask HN: What's the best API documentation you've ever used? on Saturday February 23, 2013 @06:09AM (#5269342)
MSDN
Re:Ask Programming Superstars: Do you have to interview? on Thursday February 21, 2013 @03:59PM (#5260341)
Absolutely, many people don't realize that interviews are a two way street. Not only is the company interviewing you to assess your technical skills and cultural fit, but you are interviewing the company as well to see whether you'd like to work there.

If you're a "superstar" (I don't really like that term), you want to work with other talented individuals. So if the interview process is non-existent or overly easy, it sends a negative signal about the "potential" quality of other hires.

Re:Ask PG: Do you ever get overwhelmed? on Wednesday February 20, 2013 @03:14AM (#5249460)
Quote from pg: "For some reason I didn't check the comments after the surgery to see if they were in the right place. I must have been distracted by something."

Short answer to your question: Test the fix after deploying it on production :)

Use PDF, it's a format that will work for anyone, or any device and is printer friendly. Now whether you want to use LaTex, html, or word to design your resume is up to you.
Re:Ask HN: Rails or Nodejs on Thursday February 14, 2013 @08:27PM (#5223887)
I've gone that route in the past, and truth is it's painful to run rails on windows (albeit not impossible). The main issue I ran into was that some gems (libraries) rely on native extensions that are not available on Windows.

HOWEVER, there's still a way which works pretty well, which involves running rails from a Virtual Machine (e.g. Ubuntu) to which to ssh into, while coding from windows. Take a look at http://tinyurl.com/b8w4exm (using vagrant might be easier than this tutorial).

Re:Ask HN: Rails or Nodejs on Thursday February 14, 2013 @04:47PM (#5222611)
Asking whether to use Rails vs. Node is like asking whether you should use DirectX or XAML. Both can be used for rendering UI, but every technology has its strengths and weaknesses so the answer is "it depends".

You can either start by choosing a technology, then a project that is adapted to it. Or pick a project, and choose the framework that is best for achieving said project. Here are some thoughts about Node vs. Rails to help with your decision:

Node: - Uses Javascript (on back-end) - Asynchronous IO, great for handling high volume of requests or massive amount of simultaneous connections. - Smaller learning curve, given you're most likely already familiar with JS - Can do much more than traditional web frameworks (e.g. php/rails), like binding to a specific port, handling socket connections etc.. - It's pretty fun :)

Rails: - Uses Ruby, so there's a bit of a learning curve here - Extremely mature framework with impressive amount of existing libraries (known as gems) that plugs into it - By nature, enforces great software practices (e.g. testing) - Best adapted for creating traditional SaaS applications - It's also a lot of fun :P

Honestly, if it's for fun, just pick one and start doing a project. They're both in their respective ways fantastic.

Re:Naming programming variables, classes and other things on Wednesday February 13, 2013 @10:42PM (#5217552)
To follow up on my own question (about naming being the hardest thing), here's a supporting quote towards your argument:

"The only real difficulties in programming are cache invalidation and naming things. " -- Phil Karlton

Came across that quote as I was reading some style guidelines for Ruby. In case it's of any interest to you: https://github.com/bbatsov/ruby-style-guide#naming

Re:Naming programming variables, classes and other things on Wednesday February 13, 2013 @05:40PM (#5216191)
"Its pretty well accepted that one of the hardest things in building stuff with computers is naming things so that humans can understand whats going on." -- Hum... that's pushing it a little bit isn't it? :P

Regardless, I think what you're looking for is commonly known as "naming conventions": http://en.wikipedia.org/wiki/Naming_convention_%28programmin... - I would suggest googling "naming conventions for <insert your language of choice>" as a starting point. From there, if you have more questions, feel free to ask :)

Please don't do this, web fundamentals will barely help for matlab.
Re:Ask HN: How to find a place in the Bay Area? on Saturday January 05, 2013 @06:34PM (#5014485)
Moved to SF recently, and was looking for a place with roommate. It was EXTREMELY hard to get anytime, and demand was insane. I ended up renting a 2 bed room apartment from a complex, and posted an ad looking for roommates on Craigslist. The response was impressive (~10 applicants within an afternoon).
Don't be scared to ask questions. You will [most likely] be interacting with a lot of very smart people with years of valuable experience. Don't be scared to ask question and learn from them.
What's the problem with the 5-10 seconds wake up time in Heroku? This does NOT happen every time they are used, it only happens ONCE every an hour or more of inactivity. This limitation becomes problematic however if your app has cron jobs every so often, or states (e.g. node app).
Re:Ask HN : What do you do when you feel like a loser? on Friday December 28, 2012 @09:29AM (#4977759)
I often feel the same way, and at times even feel wrong thinking it given my $$, job, and status. I almost feel ungrateful feeling that way, but that's beside the point.

In my case, I tend to feel like a loser when I'm exhausted from doing things I don't particularly enjoy, and neglect the things I do. For example, spending countless hours doing a job that doesn't particularly excite me (but still do it well), and neglect my favorite activities such as playing soccer, dancing, or going out with friends. Then begins the spiral loop of wondering "what you have achieved", and looking at what others your age or younger have done. If that's how you feel, you're not alone and thankfully there are ways to break that mentality :)

When that happens to me, my best approach over time has been to pause for a moment, take a step back, and reflect on my situation. Realize that at 25, having $$, job, and status is actually "quite an achievement" that many others wish they could have accomplished as well. Realize many of the things you take for granted, like eating every day, having access to water, are a dream for some in other parts of the globe. Being able to afford what you desire for the most part (except maybe that Lamborghini), is a dream for many for many within the country. All in all, on an absolute scale, you're definitely in a pretty good spot and by no mean a "loser".

At that point, I usually feel better about myself. But that's only a temporary fix, because the underlying issues are still there. Rethink your priorities in life in terms of what provides YOU happiness. Forget about what society and movies make you believe priorities should be, and think personal. A quote I really like on the topic, from fight club, is:

"God damn it, an entire generation pumping gas, waiting tables; slaves with white collars. Advertising has us chasing cars and clothes, working jobs we hate so we can buy shit we don't need. We're the middle children of history, man. No purpose or place. We have no Great War. No Great Depression. Our Great War's a spiritual war... our Great Depression is our lives. We've all been raised on television to believe that one day we'd all be millionaires, and movie gods, and rock stars. But we won't. And we're slowly learning that fact. And we're very, very pissed off."

Now don't get me wrong, it is possible you genuinely have a personal goal to become a movie star, which would make you the happiest person on earth (but again, that's beyond the point). So think hard about yourself and what really motivates and makes you happy, and reset your priorities. Maybe it's worth not staying as long at work, fix that bug tomorrow, and go play that soccer game you've been craving for. Or maybe instead of spending an afternoon going to some event you don't really want to go to is better spent hacking away this fun idea you've been wanting to do for a while. Whatever makes you excites you, make it and priority and find time for it. The rest really is secondary. In my case, after a while I decided to make the bold move of quitting my job for another that pays less, where I work longer hours, but that is oh soooooo much more fun. I'm loving it and am super happy learning great stuff on a daily basis, and being payed doing what I like. We're all different, so it's up to you to find what your thing is :) Good luck, and I hope if you got this far my answer helps.

Hum, had to Google the term FOSS (Free and open source software). Might be useful to define it the first time you use in your article for readers (like myself) without context.

It's also worth mentioning I have make "FOSS contributions", but didn't know the term :) Can't be the only one that missed the memo.

Would the paper abstract be enough? or you'd want an even more compressed summary?
Re:Ask HN: How to make a startup without money? on Thursday December 27, 2012 @04:22PM (#4975101)
If you are doing a purely software startup, then you should be able to create your prototype/first version at no cost (e.g. using heroku's free offering), and find customers along the way to validate you are building something people want.

When you reach a point when you have proven customers, and a product that works, but are only limited by money to grow up (e.g. development offering doesn't work anymore), then you can start looking for investors (e.g. friends, family, incubator). It will much easier to convince them to invest in you at that point.

Re:Cloud on cloud on cloud...can it work? on Thursday December 27, 2012 @01:20AM (#4972564)
Can it work? It's already working pretty well. Not perfect for sure, but working pretty well.
Re:What is the best way to invest $870? on Wednesday December 19, 2012 @03:14AM (#4941664)
Hum, have you looked at the stock recently?

Older ยป