HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on When Node.js is the wrong tool for the job
> This is completely standard and the only way to do node in-memory caching.

This isn't accurate you can use shared memory. There are a few modules that implement this. In addition, you can offload the JSON.parse to the dedicated "caching" process that updates the shared memory.

vkjv··on When Node.js is the wrong tool for the job
IMHO, the core piece is that supporting a language is very, very expensive: tooling, CI, linting--especially standards. Many of things that ensure quality are not language agnostic. It's not about learning a language, it's about maintaining one.

If you are a web shop you have javascript. Using node.js allows you to eliminate one extra language.

Is it perfect? Definitely not. Is it best for everything? Probably not the best for anything. But, it's good enough for most stuff. It doesn't make sense to incur the burden of another language for a one off task.

vkjv··on No tipping means better business
Just an FYI, but if a tipped employee does not meet the minimum wage, the employer must make up the difference.

https://webapps.dol.gov/elaws/faq/esa/flsa/002.htm

vkjv··on New XPS 15 Laptop
Need to be careful with the non-linux releases. They sometimes have subtly different hardware (e.g., ralink wifi instead of intel).
vkjv··on Slack Calls: Now with video
Interesting. I wonder if a dep changed. They don't work in Ubuntu 14.04.
vkjv··on Slack Calls: Now with video
Slack calls have been broken in linux for a while--even though they worked when calling first launched. Is a fix for that on the horizon?
vkjv··on Show HN: Automated Pipelines to Your Kubernetes Clusters
We do this by checking a `kubernetes.yaml` in with the source code. That way it gets bundled with the image as part of a Jenkins build. Deployment is just a docker pull, extract kubernetes.yaml, and kubectl patch.
vkjv··on ECMAScript bind operator proposal
At one point I had memorized the corner cases* of `this` for the pointless reason of stumping people who thought they knew it. The only thing it really taught me was to avoid it.

*My favorite is "what does `this` point to when running `eval()`"? The current context. "What if you assign `eval` to a variable and then use that?" The global context.

vkjv··on Zero Cost Abstractions
I don't doubt that you make code 10x to 1000x faster, but could this be selection bias? I.e., you are focusing on the code that is slow and not the code that the compiler has already had substantial impact on?
vkjv··on Software Engineering Internship Amazon Interview Experience
Strangely I really like this. It starts the relationship off with trust instead.
vkjv··on Don't Give Up on the Guitar, Fender Is Begging You
This! 1000x this! One of the most frustrating things about learning an instrument is that it initially sounds terrible and you feel like you will never get it. If you have a low quality instrument and are inexperienced, you honestly cannot tell if it is you or the guitar.

This is why I heartily recommend to anyone trying to learn to pick-up a mid-range guitar used. You get much higher quality and the price is usually comparble to a "cheap" beginner one.

vkjv··on Microsoft announces the next version SQL Server for Windows and Linux
> Wasn't there a golden rule to not store persistent data in a container?

You shouldn't store persistent data in the container. However, you can mount external storage and read/write to it from inside the container. The most simple example of this is mapping a path from the host.

EDIT:

In fact, the MS documentation gives an example of exactly this. https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-...

> sudo docker run –e 'ACCEPT_EULA=Y' –e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 -v <host directory>:/var/opt/mssql -d microsoft/mssql-server-linux

vkjv··on Microsoft announces the next version SQL Server for Windows and Linux
I'm okay with waiting on features. What I really want in tedious is a significantly faster parser.
vkjv··on Basic Flashlight Tutorial
> then they hit it with their hand a few times and it works again.

Just in time to see the antagonist right in front of them.

vkjv··on Be Kind
My only advice is to not worry too much about it. One of the first things a new dev needs to learn is how to separate critique of the wok from critique of them as an individual.

IMHO, code reviews should be clear and concise. They aren't a place to go out of your way to soften blows. I expect the same when my code is reviewed.

Edit:

It occurs to me the parent may have been referring to an informal review or one with the intent of mentoring. Asking questions, like the sibling mentioned is a great way. My comment is geared more towards a formal review.

vkjv··on Exploring CLI Best Practices
This is missing something that I highly recommend:

"Start with supporting stdin/stdout as the only input and output. This ensures that it is composable with other utilities. You may find you never need anything else"

Need to read a file? `my-cli < file`

Need to write a file? `my-cli > file`

How about read from a URL? `curl url | my-cli`

vkjv··on Postgres full-text search is Good Enough (2015)
Not only do some of us no break out in hives at data duplication we actually design with it in mind!

http://martinfowler.com/bliki/CQRS.html

vkjv··on It May Not Cost You More to Drive Home in a Climate-Friendly Car
Interesting, I had assumed that EVs maintain their value better, but this link says the opposite. I'll have to check it out. Thanks!
vkjv··on It May Not Cost You More to Drive Home in a Climate-Friendly Car
sigh Another one of these that focus on new cars. Most fiscally minded people, like myself, exclusively drive used cars. Even a lightly used model that is only a couple of years old is significantly cheaper than a new car.

As I get more environmentally conscientious, here's what I really want to know: What is better for the environment manufacturing a branch new EV and driving it around for 5 years or picking up an existing junker that's going to be scrapped and doing the same.

vkjv··on Learning systems programming with Rust
Interesting. At the university I attended, Operating Systems was required not only for Computer Science students but, also Computer Engineer students.
vkjv··on The Correct Way to Validate Email Addresses
I like the approach of accepting anything that is a reasonable length with an`@`, but suggestinging corrections for possibly misspelled common domains.

https://github.com/mailcheck/mailcheck

If you really need to validate, the only way I know how is to send them an email and click a link to confirm.

vkjv··on How the JVM compares strings on x86
This is lexical comparison (<, >, =) not just equality.
vkjv··on Lessons Learned While Building Microservices
I highly recommend reading Martin Fowler.

http://martinfowler.com/articles/microservices.html http://martinfowler.com/eaaDev/EventSourcing.html

vkjv··on Ask HN: Best way to start and master Hadoop?
I don't recall where I heard this analogy, but I repeat it frequently.

"Not using a hadoop is like cutting down a forest with a single chainsaw. Using it is like cutting a forest down with unlimited hatchets. It will usually be faster and cheaper with the chainsaw."

vkjv··on Comcast wants to sell your Web history to advertisers
Not me. I'm very happen when this happens. When it comes to identity, it's far easier to deal with false positive than theft. For example, my credit card gets flagged for fraud every holiday when I go on a gift card purchasing spree. I have no problem with this.
vkjv··on How becoming a pilot made me a better programmer
Thanks for this. I've always been interested in flying and have only taken one lesson. However, I also have tendency towards hyperfocus and this comment has sufficiently frightened me.
vkjv··on Merging vs. Rebasing
I'd be interested to know how this scales on a larger team. Looking at the number of open PRs on some of our repos, I would guess doing this in a larger organization would cause an unnecessary amount of busy work when everyone scrambles to rebase after each merge.
vkjv··on Amazon Is Quietly Eliminating List Prices
I think something might not be working. The very first thing I noticed as a pack of 10 CR2032 batteries for $75 when there is also a pack of 5 for $5.

Along with other ridiculous prices, like $40 for a standard tape measure.

vkjv··on CSS is powerful, you can do a lot of things without JS
The animation, yes, but not the trigger. You can balance this by adding / removing classes in javascript (to limit the complexity in CSS) and with the class performing the animation.
vkjv··on CSS is powerful, you can do a lot of things without JS
The accordion example isn't really what I think of as an accordion because it doesn't auto-close other elements.

For that behavior, you can make some minor tweaks swapping out the checkbox elements for radio buttons.

← PreviousPage 4 of 12Next →