HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on Real-Time Web Analytics Dashboard with NodeJs, Socket.io, and VueJs
It's also important to note that you don't just need browser support. You also need support in every web appliance that the request passes through.

It's really common for web sockets not to work through corporate content filters and old load balancers.

vkjv··on Data Structures in JavaScript
Unless by "hash based" you mean just using `new Set()`, I'm not aware of a way to do this generically. Using a `{}` for this would only work for a set of strings and things that can be uniquely coerced into strings. Otherwise, looping over arrays is your only option.

Care to elaborate?

vkjv··on How to Pass a Programming Interview
> "That’s exactly the point. These are concepts that are far more common in interviews than they are in production web programming."

The list includes things like Big-O analysis. While, formal analysis is certainly not a day to day occurrence of most programming, knowing what the runtime complexity of the code you are writing is almost always important.

While, I generally don't care for most algorithmic problems, I am honestly concerned when someone can't tell me that something runs in O(n^2) and good probably be optimized.

EDIT: I should note, I'm not necessarily looking for them to use precise term here, but they should be able to clearly articulate it.

vkjv··on Performance and Usage at Instagram
Just finished a fairly large pilot test with grpc. Summary: it's not production ready. It seems to be still moving rapidly and bugs pop up. I'd recommend holding back for awhile longer.

Also, instagram heavily relies on JS. There are not any protobuf parsers in js that perform anywhere near that of native json. The most feature complete implementation is two orders of magnitude slower.

Using the C++ bindings is faster, but is more difficult to fit into a typical build, can't work in a browser, and still an order of magnitude slower.

It's definitely something to keep an eye on, but, IMHO, not quite ready for something large scale.

vkjv··on We Hire the Best, Just Like Everyone Else
This. It's important for them to understand their biases. This has a bias towards individuals who either are already contractors, do not have a job, or have large amounts of "free" time that is not dedicated to other endeavors.

Personally, I don't think there is anything wrong with this as long as they understand their bias. Sometimes it's more important to pass on potentially great hires in order to weed out bad hires.

For what it's worth, I would never do this. I'm not going to quit my current job to take this kind of risk. I also don't have "free" time. I have several time consuming hobbies / commitments outside of work that I'm not willing to break for 3-8 weeks.

vkjv··on Step by Step Guide to Building React Redux Apps
Reduce requires that functions be pure (no side effects). Immutable.js is one way to enforce this but ithe is not required.

The examples mostly use things like the spread operator and Object.assign.

vkjv··on Show HN: Import Docker in Python and Run Anything
Doesn't look like it. It looks like it's just a thin wrapper the `docker` module, which is a wrapper around the Docker API.

https://github.com/deepgram/sidomo/blob/7890cde8c5dbf1722311...

It probably wouldn't be much effort to add an options object that is a direct pass-thru to the Docker API. That gives you the availability of all options and helps to future proof it.

I'm not a Python developer, but I've had success doing exactly this in node with the `dockerode` module.

vkjv··on Rust vs. C++: Fine-grained Performance
I think one thing of note here is that the author did not want to make the program parallel. One of the benefits touted by Rust is "fearless concurrency." If this feature was introduced this is where # lines or performance may have diverged.
vkjv··on The Sad State of Web Development
I'm glad to see another like minded person. I see the massive explosion of web dev tools, frameworks and libraries as a good thing. I think it's strong indicator that things have become approachable. It's easy to create something new and share it with the world.

I find the authors sentiment very similar to that of those who complain about "all of this terrible music." Music is much easier to create and distribute and that means more of it, which, IMHO, is a good thing.

vkjv··on Idea Debt
I also use the `IDEA` tag in addition to `TODO` and `FIXME`. My definitions:

* IDEA: This is neat and could be helpful, but is probably okay if it never gets done.

* TODO: Not doing this has some measurable ill effect. Maybe maintainability or constraining scale.

* FIXME: This is a temporary work-around while finishing a feature. It should never be shipped.

vkjv··on Lodash 4.0.0 is out
I'm curious why the `thisArg` parameters were removed? I dug through some of the PRs and commmits but was unable to find any specific conversation.

It seems odd since the `Array.prototype` methods include it.

https://github.com/lodash/lodash/commit/454aca7003e14994e7b9...

vkjv··on Lodash 4.0.0 is out
How is it arbitrary? It's part of the ES spec.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

I'm honestly curious why this is being removed?

vkjv··on Ask HN: What is your company's on-call rotation like?
This. tl;dr: No on-call schedule sometimes means always on-call.
vkjv··on Our sons' student debt is delaying our retirement
I agree with the sentiment but I think somewhat higher loans are reasonable.

The rule of thumb that I use is total student debt shouldn't exceed the normal starting salary for a job in your field.

If you are getting an engineering degree, go ahead and feel free to drop $60k+ on an education, but if you are going to be a teacher start looking for grants.

vkjv··on Neon: Node plus Rust
Since both node and Rust use libuv for parallelism. Is it possible to provide the node libuv pool to rust so that they share a single bound on parallel operations?

Also, can I use Neon for async callbacks?

vkjv··on Bye, bye, bananas
Another story on the topic from the unusually engaging authors at DamnInteresting.com.

http://www.damninteresting.com/the-unfortunate-sex-life-of-t...

vkjv··on Debugging Node.js in Production
It's also important to note that these are not quite the same thing. If you name a function, it will be hoisted to the top of the scope where a possible naming conflict could occur.
vkjv··on Debugging Node.js in Production
This. They don't show up in heap dumps and sometimes CPU profiles.
vkjv··on From Karma to Mocha, with a taste of jsdom
Thanks for the good read, very enlightening. But, I thought the choice of React as an example was interesting since it already provides test utilities. Any specific reason you aren't using these or were they just omitted for simplifying a blog post?

https://facebook.github.io/react/docs/test-utils.html

vkjv··on Modern SQL: With – Organize Complex Queries
It works pretty well and fairly quickly. We use the array_agg and other json features in a Postgres to Elasticsearch ETL. Postgres is able to spit out the exact format that we need, so the application code isn't really doing much more than coordinating the reads and writes.
vkjv··on Can Women Build A Better Tinder?
I remember reading that Netflix practically ignores what you rate shows when generating recommendations, that using what you actually watch is much more accurate. You may have gave A Clockwork Orange 5 stars, but you binge watches Jersey Shore.

I imagine the same applies here. You might say height isn't a factor, but only picked men over 6'.

vkjv··on The Most Common Job in Each State 1978-2014
You can get certified by to teach both primary and secondary. It takes very little additional effort. No courses and very little studying if you are already familiar with the material. I know some people who do both and they are more interchangeable than you may think.

Analogy: Front end developer, back-end developer, and full-stack developer. It's really just a focus, they are all developers.

vkjv··on Five years of Scala and counting: debunking some myths
> implicit def intToFloat(x: Int) = x.toFloat

I've seen code like this pop up way more than I'm comfortable admitting.

vkjv··on The Most Common Job in Each State 1978-2014
For me, it makes the entire chart unbelievable. For example, they separate out teachers into two groups. I find it unlikely that there is a bigger difference between high school and elementary school teaching than there is between installing (programming?) a PoS system than building a video game.

I assume the only reason for the teacher split is tthat they didn't want it to be the top job of every position.

vkjv··on 80x40
It would be a nice feature to reject any PRs that are over a certain # of characters diff. That way it becomes more collaborative instead of wholesale replacement.
vkjv··on Ask HN: New attempt at mobile markup – keep or bail?
Off-topic, but I really wouldn't be surprised if it was clicked more often than the link to the source.
vkjv··on Whitemark: Steganographic encoding of a watermark in the whitespace of text
Reminds me of a fun Obfuscated C Contest winner:

https://github.com/c00kiemon5ter/ioccc-obfuscated-c-contest/...

The author, Stephen Sykes, submitted a program that encodes a message into the whitespace of another file. Since whitespace doesn't matter in C, he encoded the encoder into the source of the decoder and only submitted the source for the decoder. Neat!

vkjv··on How Can We Achieve Age Diversity in Silicon Valley?
I agreed with this up until this sentence.

> They also often lack the imagination on how to solve things in a new technological paradigm.

I think that they absolutely have the imagination, as well as the skill and experience, to solve these problems. What they lack is tolerance for risk.

vkjv··on Don’t Feed the Beast – The Great Tech Recruiter Infestation
Agreed. You need to be careful with exactly how much the bounty is. Too low and people won't bother. Too high and people will recommend anyone they know.

I find recommendations for peers are almost always high quality simply because people want to work with good people.

vkjv··on In defense of client certificates
Even new and shiny stuff uses client certificates. RE: Kubernetes (https://github.com/kubernetes/kubernetes/blob/master/docs/ad...)

Loading this into the browser is often desirable for access to the proxy API.

← PreviousPage 6 of 12Next →