HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on [dead]
Came to say the same. I've seen good developers that are working on front-end, back-end, and full-stack.

The key is that they are a good developer. Where they focus usually has more to do with the organizational structure and its values than the engineer. If they are the best in their area, if you move them, they quickly become the best in that area.

Besides when back-end means you work on a web API and frontend means you work on a web UI, is there really that much of a difference? It's not like we are talking about completely different technologies.

vkjv··on ‘This’ in JavaScript
Here's a fun one about `this` that you might not know. When running `eval`, `this` refers to the `this` in the calling context. Unless you alias the method. Then it refers to the global context.

    class Test {
        eval() {
            return eval('this');
        }

        aliasEval() {
            const e = eval;

            return e('this');
        }
    }

    const test = new Test();

    assert.equal(test.eval(), test);
    assert.equal(test.aliasEval(), global);
vkjv··on Algorithm That Makes Preschoolers Obsessed with YouTube
> Or at the very least, the content that parent watched and approved before.

In my experience, kids are willing to watch the same content many, many more times than an adult. This makes this strategy reasonable.

vkjv··on Higher-paid, faster-growing tech jobs are concentrating in 8 US hubs
Not really. They are close. There are places you can live that are a reasonable commute to both. Also, I know people that make the commute in both directions. MARC train helps.

Source: I live and work in Baltimore.

vkjv··on “You’re Not the Customer, You’re the Product”
Yes, it's a chrome extension and downloads the file unencrypted directly to a directory of your choosing.
vkjv··on “You’re Not the Customer, You’re the Product”
No... kind of. They have a 2 time cap on downloading from the web client. If you install their app, you can download unlimited times.
vkjv··on “You’re Not the Customer, You’re the Product”
This is a trend that I've maintained for 15+ years. I don't expect it to change anytime soon. I am subject to them dropping content that I care about, but anecdotally, I don't recall that happening with anything I listen to in the few years I've subscribed.
vkjv··on “You’re Not the Customer, You’re the Product”
It depends on the product and the person. Google Music has saved me money. I listen to quite a bit of music and was averaging about $200/year on buying CDs. Now, I average about $50/year + my $120/year subscription.

As bonuses, I get my catalogue easily sync'd across devices, easy access to new music, and youtube ad-free.

I don't mean to discount your view, I just wanted demonstrate that there is a rationally minded market for these services.

vkjv··on How do you cut a monolith in half?
If you don't need high throughput and otherwise don't have a reason to add a separate technology to the stack just to have a queue, SQL can make a great, simple and reliable queue!

* Postgresql and Oracle with skip locked

* MS SQL Server with readpast

* DB2 with skip locked data

If you use MySQL, it's going to be a bit more difficult.

vkjv··on Redditors design worst volume sliders possible
I don't believe the parent meant a physical shutter button, but a specific area on screen designated as the shutter button instead of the much easier, "anywhere".
vkjv··on How Cold Brew Changed the Coffee Business
This. Brewing temp and serving temp are often confused. I like hot brewed coffee, but I like cold brewed better. I do not like iced coffee.

I've been given confused glances at coffee shops when I ask for a cold brew coffee hot. :)

vkjv··on Why do so few people major in computer science?
Where I went to college, UMBC, Computer Engineering covered enough of Electric Engineering and Computer Science that it set you up for either a career or further education in either. In my opinion, it was the best value.
vkjv··on ‘The Wire’ – Game Day
Lots of people have already commented on the accuracy of the content, but, as a life long resident of Baltimore, what struck me was the dead on accents.

Baltimore has a very distinct, but evolving sound and vocabulary. Cinema usually can't seem to escape the 1960s "hon" cliche. I was certain that Idris Elba had to be from Baltimore until I learned otherwise.

vkjv··on Running Java on Docker images on a Mac
My primary reason is orchestration. By putting it inside Docker it runs like every other application in our Kubernetes cluster.

If everything you run is Java, it might not make sense, but in a polyglot, the uniformity can be really beneficial.

vkjv··on How to Be Someone People Love to Talk To (2015)
The key piece is that you don't ask blind questions, you ask more about a topic that they brought up or expressed interest in.

"I listen to podcasts on the way to work." "Me too! What kind of podcasts do you listen to?"

vkjv··on Ngrok: Secure tunnels to localhost
I do exactly this. I also have it set up with let's encrypt so that the Webhooks are encrypted.

Locally, I also mirror the LE keys and add a hosts file entry for the test domain to localhost.

This means I can test locally with proper ssl certs.

vkjv··on Never Mix Promises and Callbacks in NodeJS
You don't need to refactor the existing code. You can change the calling code.

    // Promisifying a standard callback
    const myAsyncMethod = Bluebird.promisify(myCallbackMethod);

    // Or if you have weird callback passing and need
    // to manipulate the callback method being passed around
    function myAsyncMethod(...args) {
        return Bluebird.fromCallback(cb => myAsyncMethod(cb, ...args));
    }
vkjv··on Never Mix Promises and Callbacks in NodeJS
Bluebird is more than just a promise implementation. It is also a general purpose promise utility library.

E.g., providing `promisify` wrappers for callback driven code and functional collection methods like `map` / `filter` / `reduce`.

vkjv··on The Minimally-Nice Open Source Software Maintainer
Not sure if it's what you had in mind. But, you could comment with a diff code fence. It gets proper highlighting as well.

    ```diff
    diff goes here
    ```
vkjv··on Why predicted gridlock almost never happens
William Shatner feels the same way.

> I don't think of favorite roles like 'This was my favorite thing to do, and that isn’t.' I just wish they hadn't cancelled Shit My Dad Says because I could bicycle to work.

https://entertainment.slashdot.org/story/11/10/17/150212/wil...

vkjv··on Thirteen Years of Bad Game Code
One of the quotes from a senior engineer that has stuck with me over the years:

> "Working is the lowest bar of quality."

vkjv··on Thirteen Years of Bad Game Code
One of my favorite quotes, "the dev whose code I hate the most is me from 2-years ago."

One of the unfortunate outcomes of the job market encouraging job hopping for salary bumps is many new engineers don't get the opportunity to see the cost of their own mistakes.

vkjv··on Big Tech Company Salaries Are Hurting Startups
I'm not sure how many companies would agree to it, but you could potentially work those items into your contract so that they are on the same level as other benefits (e.g., salary, health care).
vkjv··on Diaspora-common: does 'rm -rf /' on purge
I usually add `pipefail` as well.

    set -euo pipefail
vkjv··on JSON Web Tokens should be avoided
Store it in a DB for persistence, but push it out to application memory. If for some reason you expect your blacklist to be very large (maybe, you have a massively popular API?), push a bloom filter of the blacklist instead of the actual list.

Now, you (probably) only absorb the DB hit on blacklisted tokens.

vkjv··on Attitudes That Lead to Maintainable Code
If you replace, "maintainable" with "easily maintained by a large group of people" the statement holds true.
vkjv··on Nintendo Switch review: pure potential
For me, that's disappointing. It means that a year or two into battery wear you'll be tethered to an outlet.

The situation looks even more dire after reading this quote.

> ...although we’ve yet to find a battery / cable that can charge the console faster than it drains.

vkjv··on Node v7.5.0 Released
In my opinion, these are the major ones:

1. Promises are a value. They can be passed to other functions. This simplifies a lot of control flow.

2. The `.then` method on a promise is similar to `flatMap` in other languages / libs. The next chain will wait for any nested promises to complete. This flattens callbacks so you can see the flow instead of the pyramid of doom.

3. Native promises include a bit of sugar, such as Promise.all. You need a library to do this with callbacks.

4. Promises are the backbone of async/await. You need them to use it.

Example:

    await const [a, b] = Promise.all([getA(), getB()]);
vkjv··on What's new in Docker 1.13: prune, secrets, checkpoints and more
There are only methods that I'm aware of:

- Exposing the secrets on a (http) server that the Dockerfile can use to fetch

- What we use: Create a one time use secret that is destroyed after the image is built and before it is pushed.

vkjv··on When Node.js is the wrong tool for the job
I strongly disagree. Making many async service calls concurrently and awaiting the result is the text book use case for node.js (well, event based programming in general).
← PreviousPage 3 of 12Next →