skysight-inc/HackerNews huggingface dataset:
I would not know the asnwers, possibly because many of them are phrased horribly. Some examples:

"How many ways are there to initialize a primitive data type in C++ and what are they?"

I guess the answer is two: implicitly at program startup or through assignment. But then, maybe he wants to differentiate between int j=0, int j(0), what constructors do in x::x : j(0){}, and whatever.

"What is name mangling in C++ and why is it used?"

There is no name mangling in C++. Some compilers do map names to C-compatible identifiers, but that is not C++'s business.

"What is a copy constructor and when is it used, especially in comparison to the equal operator?"

I do not have the standard at hand, but I would guess it has an equality operator and an assignment operator, or maybe even just 'assignment'.

"What is a Vector?"

What is that capital 'V' doing there? Should I assume a "using namespace std" and an "#include <vector>"?

"Why should you never throw an exception in a destructor?"

There is nothing wrong with throwing an exception in a destructor (well, it is a bit weird). Throwing one from a destructor is the no-no.

"What is the proper way to perform a cast in C++?"

Another trick question or badly phrased. What are the ways to cast values in C++? When are they appropriate?" or something like it would be better.
It's probably worthwhile to point out the distinction between general frameworks for static page generation and those that are designed for blogs. Overall the supported features are similar with the only difference being the amount of code that needs to be written and how opinionated the framework is regarding the project structure. This latter point pretty much defines whether a particular framework will work for your project.

I have a static site, which is published in two languages, currently with over 5000 pages and about 50 page updates and new pages added per day. None of the static blog frameworks were flexible enough even though my requirements are pretty minimal. I ended up using https://github.com/mtigas/django-medusa/ with a custom app, https://github.com/StuartMacKay/django-sitepaths to manage all the pages and allow pages to be easily regenerated. This works well, with little tinkering to keep it working however I'd certainly take a closer look at Frozen-Flask for my next project.
Thinkpad x230

I've had one for a few months now and it's been excellent, good keyboard, great Linux support and really good battery life (with the 9-cell battery I can get 8hrs+). It's nice and compact, and pretty darn light, if a little on the thick side.

With 8gb of RAM, 128gb SSD, and a midrange Core i5 it runs about $1200-1300, but you could probably buy the RAM/SSD separately and save a fair amount.

The one weak point is the screen resolution (1366x768), but the screen is IPS and very good quality otherwise.
Samsung NP900X3C, probably the best ultrabook. It has slightly higher resolution than the newest Air, matte screen, is slighly lighter and thinner.
"The rumors of my death have been greatly exaggerated" - C#, 2012.
I know you said you don't need serious performance but a decently spec'ed MBA goes for about $1700. That's with 8GB RAM, the i7 processor and 256GB SSD. You can do web development on a lower end MBA but large compiles or even using bigger IDEs like Eclipse calls for the extra RAM and processing power.
to be honest I found that to be quite readable.
globaldev - London, UK: Ruby Engineers & Ruby on Rails Developers - Permanent & Contract

http://globaldev.co.uk/jobs

With a portfolio of over 7,500 sites, we’re the largest social network you’ve probably never heard of. One of the world’s leading social discovery and dating companies, we’re the Facebook for people who haven’t met yet – enabling people to find new friends and partners online for fun and adventure in real life.

We’re looking for 2-3 expert Ruby engineers & RoR Developers to help us build a series of major enhancements to our dating platform and infrastructure over the next 12 months.
It's a fantastic place to work where you'll be surrounded by incredibly talented developers working on big data problems and we are working hard to ensure we provide the best environment for Ruby/RoR Devs in London.

Contact me directly in confidence: sbuckley@globaldev.co.uk
Another quote by Ballmer, heard in person a couple of weeks ago: "In Russia, we have a great market share, but a bit of a problem collecting".
I think Term::ANSIColor has become the standard for Ruby, it's included by Capistrano and other popular gems now: https://github.com/flori/term-ansicolor - defunkt's gem has not been touched in 3 years.
Typography, colour and techniques for visual priority (i.e. how to guide a user's attention to different sections within a page) are all things I struggle with.

I also wish a photoshop or illustrator "cook book for coders" existed which contained just enough recipes to learn the essential techniques needed to quickly mockup and experiment with how a page might look.
http://en.wikipedia.org/wiki/X-ray_optics
They make one of the few laptops that still has a built in serial port which is good for custom hardware dev. And they are made in Japan.
Are 20 year olds really the most successful entrepreneurs?
FYI, macports has supported binary packages for a while
Aircraft carriers take out the air threat as well. As for space and rockets, well that was the point of SDI.
> I chose MongoDB because it seemed very lightweight and the ease of changing the models.

This makes me think that the author didn't put enough effort into determining the right solution for this problem. Using something like MongoDB requires experience too, which the author lacked.
Well that depends on how much attached you are to GNU tools, as OSX provides the BSD versions.

I've been using OSX for 3 years now, and I still ssh to a linux box to do date calculations with date

$ date -d "next sun"
$ date -d "+3 years +2 months +3 hours -15 min"
Yet today over 1 billion people live in extreme poverty...

The right way to put that is "Yet today only a billion people live in extreme poverty." What we call "extreme poverty" today was the norm throughout the world until the 20th century.
It isn't much higher level, it is just more feature rich. You can still, with minimial tweaking, take any C program and compile it as C++. You just get more of the kitchen sink with C++, and what the article doesn't mention is how a subset of that sink makes code simpler, more maintainable, and more logical.

Just by having templates and classes doesn't make it higher level. It just means it has more feature parity. More higher level is when you can say "aspect X of the execution environment is barred from the language for the sake of abstraction, such as Java's garbage collection or Python's list comprehensions or dynamic types." You can't chose an alternative, so the level is raised on those issues since the language deals with them for you.
But how do people connect their Model Ms to their iPads?
I call bullshit on recent appropriations of the phrase "full stack".

If you have written a disassembler and known an assembly language, have notable programs in C and what ever higher level languages you are using, and you've written a compiler in the past, cool, I respect that. You are a "full stack developer": any new language is just a tool you pick up. Most technologies become tools you learn to apply from basic principles you have absorbed.

But I see this word get thrown around so often I don't believe people asking for it know it when they see it, or the people claiming they are, are.
> it's bizarre that there isn't a binary package manager for these things.

There are three!

* Fink

* Macports

* Homebrew

There are countless articles on the internet on which one is better than the other. The summary is that it depends on how closely you want the environment to look like Linux.
I don't see why so many people think of typography and color as central to UX/UI. I believe these are just as small part of the puzzle. Great interfaces are not just nice to look at - they communicate well. For me, great UX/UI is about the use of clear, consistent visual metaphors. It's about choosing the right words in your navigation, picking the best controls and form elements, and about removing anything that distracts or confuses the user. It's also about listening to your customers and understanding how they use your software.
Medal of Honor Warfighter Free Download
I responded to the people justifying piracy using this article here: http://nightra.in/random/ethics-of-piracy/

In short, I think Vlad is trying to explain that piracy was only a last resort for him. And it should only be a last resort.
Ethics of Piracy (in response to How piracy changed my life)
I'm using my third Fujitsu now, never had a single problem and the first one i bought in 2004 still runs fine :)

I love their keyboards the most, but yeah, resolution isn't something they can be proud of.
Been thinking of getting their new ultrabook, http://www.fmworld.net/fmv/pcpm1210/uh/spec/ (around $1400 USD) but resolution is only 1366×768, the same as the machine I already bought in 2010. And if you look closely, even external monitors via HDMI are limited to 1920×1080 which is just mean.
Extended offer, 35% off a great C# programming book
I've been running Ubuntu on the ARM Chromebook for over a month now and it works great. I use it mostly for doing Go programming. I mostly do local development with it.

If you're doing everything remotely you could probably just stick to ChromeOS (it has ssh, you can also use Chrome Remote Desktop or Guacamole http://guac-dev.org/) and not bother with Ubuntu.
Vitamin C Overdose
Using Vitamin C products beyond recommended the limits may cause stomachaches and diarrhea.
Dell just announced a 13.3" laptop with developers in mind:

http://www.dell.com/us/soho/p/xps-13-linux/pd.aspx

This looks like a really great machine.
Good point. But can you find a better metric or pattern for this?
I recently learned about these guys: http://zareason.com/shop/Laptops/

If I were on the market for a dev machine today my choice would be between their UltraLap 430 and Dell's XPS 13.
"More often than not, graduates receiving Computer Science degrees are not very good software engineers." Lot of people make these statements, but are there any statistical data to back this up. In opinion CS Degree person is always better bet to invest in long term (even if they wont be productive in webapp development right away) than one who finished 6 month webapp development crash course.
Reminds me a lot of a 120 year ago prediction that all the good stuff had been invented/discovered. So wrong...
This that annoys me the most - it seems a few startups don't know to include unsubscribe links in their emails any more. Two examples from just this morning:

http://cl.ly/image/0R101l3O101Y

http://cl.ly/image/34020b0m3n1m

Now yes, with ShiftEdit they tell me I can delete my account, and probably in both cases I could email them asking to unsubscribe me - but it's an extra effort I shouldn't need.

I have another service (to be honest I've blocked the name from my brain at the moment) - it was some spammy twitter app that continues to send me emails via a personal account rather than the company - with no way to switch them off - I've emailed them a couple of times asking them to stop, but they don't - so I just mark them as junk now.
"you have to understand exactly what is really going on"
WOW, if you said this at my workplace you would be fired. Good programmers need to know everything that is going on.
Newman Online. London, UK.

We are looking for a Python Developer. We allow plenty of home working, but if you do come into the office, you get free tickets to the cinema we work above (and free barista made coffee).

There's a lengthy description at https://jobs.github.com/positions/9f7647ee-3c66-11e2-961a-fb... but in short we want someone with a lot of Python, who isn't scared by legacy code, and who doesn't require managing. We offer a lot of flexibility and freedom for the right candidates.

Development is run by developers, so we use sexy technologies when they are appropriate. We let people choose what they want to work on, but sometimes we all have to chip in on the grotty stuff.

Do checkout the advert or email us at jobs@newmanonline.org.uk with any questions.
>Sharding also assumes a replica set, which will help bring in secondaries when your primary goes down.

I'm not sure they used more than a single mongod. I'm not sure any datastore would have been forgiving of the lack of attention to best practices.
Oh, cmon, let's check the inventory:
- tablet
- wireless keyboard

Right, I stopped reading after that. So he has a "small laptop" which is what the ipad+keyboard is and a vps.
Stand-Up Desks Gaining Favor in the Workplace
Good point. Hover is dead.
I've been using a standing disk for the last year and a half. All my back pain is gone and I generally feel better. I highly recommend others start using it. First week might be a bit hard but you'll get used to it pretty soon.
I agree. I'm doing the same course and because I couldn't get their implementation of Scheme(ucb-scheme) to work, I'm really out-of-sync with the course.

I'm doing the examples and exercises in Racket.
What do you guys use for form submission with these static site generators? I'm using Google Docs forms at the moment but I'm not very satisfied with it.

All I need is a simple "Get a quote" page.
Not working right now...
If you're going to go full cloud, a tablet like the Asus Transformer seems like a much better fit than the iPad.

It has a few key advantages:

1. it has a physical keyboard/trackpad dock which the OS fully understands.

2. the dock contains no actual PC, and is 99% battery, effectively doubling your battery-time.

Why would you chose an iPad over this?
I would definitely like a percentage of a sale (with a min/max amount) instead of the $X a/month.
I didn't say it's an cache system. I said that it effectively is a caching system. You won't notice much difference to a write back cache.
Every Apple commercial ever made
For $1699 you can get either:

13" MacBook Air with 2.0GHz i7, 8GB RAM, 256GB SSD, or

13" MacBook Pro Retina, 2.5GHz i5, 8GB RAM, 128GB SSD

Don't worry about the Air's CPU speed, the i7 actually Turbo Boosts to 3.2GHz, vs the Retina i5's 3.1GHz, plus it has an extra 1MB of cache. The choice is basically crazy good display vs larger SSD.

Try using Mac OS X (depending on the type of development you are doing). It can run almost anything Linux can, plus a lot of stuff Linux can't (Netflix, WebEx, MS Office, Photoshop). Don't pretend your laptop is a production environment, it will lead to problems, use Vagrant to run a realistic production environment.
I'd like to see an article that explains the difference between UI design and UX design, with examples.
I've read a few posts on various sites about Ubuntu running on jailbroken iPads, if it's a full Ubuntu experience I'd love to do that.
Not the second time, no.
> There is no reasonable "victim" left for this crime of infringement

The victim is the artist's heirs.
And this is the problem with the term. It means something different to everyone. Wordpress ninjas think they're full-stack developers. You've got your definition. I've got mine. Everyone else has their own. It's a meaningless term.
> Because we believe there’s honestly nothing wrong with it.

Your belief is not required. Laws are laws.
Groupon: from dotcom star to just another coupon business
I think it's more convincing if you point out that the reason meditation is harder is the effort involved in pointing your thoughts back towards your breath or something else very simple.

Flow is the state where it is no longer a struggle to control your attention. What you are paying attention to can require a very active mind.

Mindfulness meditation involves practice at directing your attention, your focus is on meta-cognition. Your breath is often chosen because it requires no attention. It's boring. That makes it good practice at discarding all the other thoughts that come up and focusing your attention back where you want it to be.

Sure, meditation is a broad term but this is at the core of the vast majority of what's called meditation.

Some ideas involve meditation with a goal (considered attainable or just an asymptotic ideal at the end of the direction of improvement) of achieving a state like flow in this practice, so you no longer struggle to maintain your attention on nothing. Apparently extremely serene and calm and peaceful. Sounds wonderful.

Flow is different from meditation, to paraphrase what ramblerman said in another comment: meditation is an exercise of directing attention. Being good at that can help you attain "flow" more easily in other activities.

I know I've found meditation to seem to be good practice for when I want to focus my attention deeply.
A little bit disappointed that the 'visual designer' is pretty much relegated to making things pretty... UX work is so much more than that. No UX research. No user testing. etc.

The big thing missing from this stack though is what's actually being built? Where are the folk who understand the product and customers and market? Those people need to be part of the team too.
My user agent styles include covering almost everything with font-family: Ubuntu !important. I did it as an experiment, but very rapidly decided I was never going back on a long-term basis (I've switched back once and couldn't bear it after a day or so).
You (rather, those that say school should be about learning for the sake of learning, not learning so you can earn more money) need to acknowledge that if school is 'for the sake of learning' then it's irresponsible to ask the lower middle-class and the poor to mortgage themselves to attend.

I agree with that, but one obvious solution is that it shouldn't require mortgaging yourself to attend. Here in Denmark, universities are tuition-free, and students are actually paid a small stipend to attend, to cover living expenses. The intent is precisely to remove any link to parents' socio-economic status in who is able to afford to attend university.

Even in the U.S. it used to be somewhat closer to that. My dad came from a poor family and attended university without taking out any loans, because at the time ('60s), public universities had very low tuition, and even what low tuition existed could be covered by part-time work on campus (e.g. in the cafeteria or library).
Depends on the position, your location and your profile but yes, it’s a strong possibility! Some teams are entirely remote.
Ego is often mixed up with self confidence, I agree that people should not themselves too seriously and to realize that in the grand scheme of things, we are all so insignificant individually.

Being a good listener is so essential in communication - We've all been on the other side of feeling disregarded in a conversation because of a distraction, text, time, wandering minds -- it's disrespectful and works in negative ways.
> Information wants to be free

You might be too young to have read this in Phrack, but I feel it's apt:

Let me tell you something. Information does not want to be free, my
friends. Free neither from its restraints nor in terms of dollar value.
Information is a commodity like anything else. More valuable than the
rarest element, it BEGS to be hoarded and priced. Anyone who gives
something away for nothing is a moron. (I am indeed stupid.) I can't
fault anyone for charging as long as they don't try to rationalize their
reasoning behind a facade of excuses, all the while shouting "Information
Wants to be Free!"

Trade secrets don't want to be free, marketing projections don't want to
be free, formulas don't want to be free, troop placements don't want to
be free, CAD designs do not want to be free, corporate financial
information doesn't want to be free, my credit report sure as hell
doesn't want to be free!

http://servv89pn0aj.sn.sourcedns.com/~gbpprorg/2600/infofree...
Aside from whether this article is right and accurate, can anyone share research-backed tips on how to get back from multitasking habit to singletasking? During career development ,for example from developer to manager, people take on more and more various duties and have to start multitasking. Is there a way to curb such performance deteriorating trend?
How to convince designers that just because it looks nice in photoshop doesn't mean that the people using it will find it "usable".

But seriously. This probably exists somewhere:
What are the conventions that have emerged in web design and mobile design, and why have these become conventions?
I commented on this a couple days ago: https://news.ycombinator.com/item?id=4849092

In short, it works great. A few very minor annoyances I haven't fixed yet. You can dual boot with OS X using rEFIt: http://refit.sourceforge.net/ You do need to dip into config files just a little bit to get the fans working properly and to make the touchpad not suck.
The Perfect Desktop - Linux Mint 14 (Nadia)
It's awesome! But I don't see how you can have high-productivity by using a laptop keyboard.
For the dev environment you can use rbenv or rvm and your favorite text editor. https://www.ruby-toolbox.com/ is a good source for 3rd party libs. About idiomatic style I have learned from reading code from some popular gems.
While the dual-30" monitors certainly has its appeal, I find getting away from my screens and truly discovering the world to be my most enriching time. Why confine your walking to the scope of those foreboding screens when your walk could be toward something unknown? Something strange, something beautiful. Something to inspire. A show, a friend, or something you've never experienced. I know it takes more than a walk on a treadmill to open my mind to a new idea.
There's a phrase in the design world - the unicorn designer.

These are designers needed for the job adverts that require somebody who is a great visual designer and a great user researcher and a great user tester and knows HTML5/CSS and knows JavaScript and knows PHP5 and ...

So called because you're about as likely to find one as you are a unicorn ;-)

There's a need for specialists and generalists on teams. Startups often need more generalists at the start - both because of cost issues and because of the communications overhead that specialists can cause. But trying to hire mythical employees who are excellent at everything is often a... suboptimal approach.
Great article, and great quote. I would definitely recommend reading the whole book Winning by Jack Welch -- I personally just finished it. It provides great insight to management and the behind-the-scenes look of GE at an executive level.