HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on Writing Multithreaded Applications in C++
Zmq is most often associated with network communications, but its in process sockets are fantastic for multi-threaded programming.
vkjv··on Announcing MongoDB 3.0
Am I the only person that things the sheer number of people that have had scaling issues with mongo is a GOOD thing? I think it speaks to changing technology landscape and attitude towards data.

Many more people are collecting and working on larger data sets than they would have ever dreamed of years ago. I credit MongoDB, in part, to allowing developers to do this and encourage them to try. Sure it has it's limitations and may not be as great in areas as other databases, but, wow have a lot of people tried and succeeded.

tl;dr, If reverse survivor-ship bias is a thing, I think mongodb has it.

vkjv··on Announcing MongoDB 3.0
Because it is used... a lot. The only technologies that don't have animosity are the technologies that no one has ever used.
vkjv··on Announcing MongoDB 3.0
Agreed. I've also been using it in production for years and the hate is often misguided. My issues are almost never with lack of features, but almost always with the cavalier attitude towards bugs, even catastrophic ones.
vkjv··on Announcing MongoDB 3.0
Because you can immediately switch your focus to things that add direct value your to your business.
vkjv··on What Color Is Your Function?
I agree that colorness is a problem, but there are also fantastic libraries that handle easier conversion between most of the common styles. For example, `bluebird` promises allow you to swap between error first callbacks in both directions with `promisify` and `Promise.nodeify`.
vkjv··on Use ReactJS to Build Native Apps
Are you excluding hacks? Because you can do this pretty easily in CSS2 since padding is always relative to width. Make your square div { width: 100%; height: 0; padding-bottom: 100% (or whatever ratio you want, doesn't have to be 1:1); };
vkjv··on The Parable of the Two Programmers (1985)
This, 1000 times, this. If you ever find yourself having difficulty cleanly separating a task, than you are going to spend more time defining the separation and integrating the parts than have having a single person do the task.
vkjv··on The Parable of the Two Programmers (1985)
This. While common in many fields, I feel that this is most obvious with musicians. "What? I'm not paying this band $1000 for a 2 hour performance!" When, in reality, you are paying them for many hours of practice in order to prepare for that 2 hour performance as well.
vkjv··on The Parable of the Two Programmers (1985)
I had a similar experience with a plumber. Normally, I would have no clue how experienced the person was, but this particular person kept "missing" certain parts and had to make 3 trips to the hardware store! He only charged me for the first, but, clearly he didn't know what he was doing.
vkjv··on Letters to Junior Developers
"And in practice they rarely are not. Nobody calculates the total cost of an unnecessary two hour meeting where 8 highly-paid employees discuss about something almost completely irrelevant."

In my experience, that is absolutely not true. Just about any meeting I've ever been in with more than 6 people, the very first question was, "this meeting is expensive, does it need to happen and do we need everyone?"

vkjv··on Ask HN: If you're “ridiculously in love with Python”, do you even know it well?
I'd argue the opposite. I'd say it's impossible to love something if you don't know the ugly details. It's about being enamored with a language despite it's shortcomings. You know, just like loving people.
vkjv··on Show HN: How I use JavaScript Prototypal Inheritance in my game inventory system
Tangential to the story, but, using `_.defaults` prevents the extra object allocation and reduces the syntax.

`var jalapeño = _.defaults(jalapenoFromJSON, apple);`

vkjv··on BLOKK – A font for clients who don't understand lorem ipsum
In my experience, when doing user acceptance testing, the user will only ever give a maximum of X comments. If there is copy on the page, especially FPO, most of the comments will be around this copy since this is something that they understand.

I am able to get much more valuable feedback when using copy that is obviously not final.

vkjv··on My favourite interview question (2006)
This question gets a lot simpler once you realize how they were originally implemented and many still are today: state machines. There is no history, no FIFO, the only thing that exists is the now. It's lot easier to answer, "I'm going up and am on the 3rd floor, someone is waiting on the 4th floor, do I start slowing down?" Then it is to answer, "someone pushed up on 4th and someone pushed down on 7th.... etc.".

This is also why many elevators perform very poorly under heavy load. You want to skip floors when the elevator is already full.

vkjv··on Revisiting the “Cookieless Domain” Recommendation
I think a much more interesting concept is prefetching files. Load the link to content with some of the critical files it needs to download, so that the browser can start downloading them before resolving the link.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefe...

vkjv··on Should States Spend Billions to Reduce Class Sizes?
> Educators get poor pay, somewhat decent benefits, and an ok pension

I hear this relatively frequently (my wife is a teacher and so are many of our friends), but I disagree. I think saying it is "poor" depends on what you compare it against.

The median earnings for a bachelors degree in the US is about $58k. In my county in MD, a teacher 10 years into their career makes $50k. Although, at this point teachers are required to get a masters.The masters scale goes all the way to $82k at 30 years.

IMHO, the pay is fairly well in line with the norm. If count the benefits and pension, which are better than the norm, then you could argue it is quite good.

vkjv··on You can take down Pirate Bay, but you can’t kill the Internet it created
Also, clumsy as it may have been, the practice of splitting large files into volumes of small RAR files helped.
vkjv··on Basic Micro-Optimizations
The author is just giving what I would call, "optimizations" or maybe more plainly, "good code".

To me, the term, "premature optimization" means optimizing something before measuring that your optimization has any effect.

vkjv··on The State of JavaScript in 2015
I don't think a "framework" is necessary here, though. An example boilerplate project that glues all (most?) of the libraries together is all that is needed.
vkjv··on The State of JavaScript in 2015
I completely agree with the modular, single purpose library approach, but, for large teams, it adds a lot of hidden overhead: library curation.

It's so easy to just, `npm install` or `bower install` a new library, sometimes you don't even think about it. But, this causes a huge bloat and duplicated functionality that both produce huge build artifacts and increase the learning curve.

You need to make sure you have at least one person dedicated to saying, "I know B does X better, but, we are already using A and it does X good enough."

vkjv··on Fake Operator Overloading in JavaScript (2011)
I've read this article a few articles and it keeps hooking me with a certain math puzzle.

Is it possible to identify an arbitrarily long string of operations when you can only control side effects and the return value?

I haven't been able to come up with anything.

vkjv··on Moving the joyent/libuv repository to libuv/libuv
I guess the "uv" in "libuv" stands for "unicorn velociraptor."

Edit:

"libuv" stand for "Librarian Unicorn Velociraptor". http://logs.nodejs.org/libuv/2012-09-09

vkjv··on Representing Trees in PostgreSQL
Thanks for the name! We do this internally to store various levels of product data in a single mongo collection (e.g., style, variant).
vkjv··on High-DPI displays and Linux
No, it stopped. I just tossed a 10 year old CRT with a 2560x2048 resolution. The key is that tech switched over to favoring LCDs which are finally catching up, and in some cases, passing CRT.
vkjv··on Node.js in Flame Graphs
> ...as well as increasing the Node.js heap size to 32Gb.

> ...also saw that the process’s heap size stayed fairly constant at around 1.2 Gb.

This is because 1.2 GB is the max allowed heap size in v8. Increasing beyond this value has no effect.

> ...It’s unclear why Express.js chose not to use a constant time data structure like a map to store its handlers.

It it is non-trivial (not possible?) to do this in O(1) for routes that use matching / wildcards, etc. This optimization would only be possible for simple routes.

vkjv··on The Programmer's Price: Want to hire a coding superstar? Call the agent
> Well, from experience in the music industry, it seems that the person doing the hard work (the artist) most often is on the bad end of the deal, while all the middle-men are laughing their way to the bank.

No, the person assuming the most risk, the label pushing large sums of money in promotion in a high risk investment, gets the most money.

vkjv··on Welcome, New Emacs Developers
You've clearly not had to make a sandwich with bread that isn't sliced. Sliced bread is amazing.
vkjv··on Why I Walked Away From a $12M Acquisition Offer 18 Months After Our Launch
That's because yesterday, it wasn't really 5%, it was 5±4%.
vkjv··on What Are Wallabies Doing in Ireland?
Rocko fancied a Gaelic holiday from his modern life?
← PreviousPage 10 of 12Next →