HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on Angular vs. React – the tie breaker
I've always thought that flow-control in XML / templates is very messy. That's one of the things that I really like about JSX. It's a very simple, easy to understand transformation to function calls to make HTML generating code look more like HTML, but it's just JS. You don't need to invent flow control attributes on HTML that are really JS, because you are just using JS.

This completely removes that. I'm glad it works for you though and happy hacking!

vkjv··on Seen that job listing for a while, its no coincidence
This fails to take into consideration a growing team. We have had a single job listing open well over a year, but that single listing at one point represented 7 open positions.

It's interesting to see this possible view. We might be better off posting duplicates to make this nuance more obvious.

vkjv··on Trine – A utility library for functional programming in JavaScript
1. I already gave an out for your point. Yes, always weigh performance vs. clarity and don't over optimize.

2. You are making an assumption that you aren't binding thousands of times a second. You need to take actual use case into consideration.

3. My example has a 1000:1 method call to bind ratio and it's still a significant difference in benchmarks. Yes, it's that expensive it's important to think about in critical sections of code.

vkjv··on Show HN: Interview Challenges to Hire Better
What about a company that asked you to solve a couple of these on your own time and then talk about your solutions in a phone interview?

I'm curious because this is what we do and I hadn't considered that we might miss some good people because of it.

vkjv··on Trine – A utility library for functional programming in JavaScript
I agree, but closures and bine are expensive--present in both cases. It's better to avoid it. Granted, this is a contrived example and sometimes closures are the more elegant solution.

  function Person() {
  	this.age = 0;
  	setInterval(this.incAge, 1000, this);
  }
  Person.prototype.incAge = function personIncAge(that) {
  	that.age += 1;
  };
http://jsperf.com/bind-vs-closure-vs-param
vkjv··on Ask HN: How to reskill without losing income?
> Are there any companies that would be willing to hire a grumpy 30-something and recognise his/her experience as something reusable?

Yes. I work for a large company that does recognize this and does not hire for specific stack experience. We have a hard enough time finding enough good people, regardless of specific experience, to use that as a critical factor.

vkjv··on Ask HN: How to reskill without losing income?
I'm curious about something similar, but perhaps more drastic. I went to college for EE, but after graduating got a job in software. I enjoy computer engineering much more than software, but at this point I'm 5 years into my career and I don't see a way that I could ever switch paths without taking a critical hit in income.
vkjv··on Ask HN: Which Laptop models would you recommend for a developer using Linux?
Along with lots of other people here. I recommend getting a ThinkPad that is Ubuntu certified. Even if you don't use Ubuntu, it will mean that there is good linux support for all of the hardware.

I use a T440s and it is fantastic. No issues whatsoever in Mint 17.1 Mate 64-bit.

vkjv··on Python – Lightweight snake game running in the console
Nice work! IMHO, Snake is one of the best games to get your feet wet programming. I have very fond memories of writing a snake game on the TI-83. IIRC, my event loop was so slow that I didn't even need any wait states to make the game playable.
vkjv··on We have a problem with promises
Also, fun is that `.nodeify(cb)` protects against undefined. So, it's a handy way to make your library support both promises and callbacks.

    module.exports = function (arg, optionalCb) {
        return promiseReturningFn(arg).nodeify(optionalCb);
    };
vkjv··on We have a problem with promises
This. That was my "answer" to the question. "Oh, if `doSomethingElse()` returns a function, it will run that function after the promise resolves successfully."
vkjv··on We have a problem with promises
> Rookie mistake #3: forgetting to add .catch()

I disagree with this advice. I usually refer to this as a "Pokémon Catch" (Gotta' Catch 'Em All!). Never catch a promise that you are un-able to handle. It's better to use a Promise library that supports debugging possibly unhandled exceptions (e.g., Bluebird).

> Rookie mistake #4: using "deferred"

This one is interesting because it's actually used in the Q library documentation for a way to `denodeify` or `promisify` a function. You definitely shouldn't do this if it's already a promise, but outside of that, it's more of a gray area. I tend to recommend using libraries to convert callback functions to promises.

vkjv··on Why Good Developers Write Bad Code: An Observational Case Study [pdf]
Interesting, but for me, there's a key piece missing. What did they use to determine that a developer was "good" to begin with?
vkjv··on CloudFlare “Interview Questions”
I completely disagree. I find these types of questions incredibly useful at measuring depth of knowledge and exposure.

Of course I don't expect anyone to know the answers to all of them, but, if you've been working in Java for a decade and can't answer any nuanced questions about garbage collection in the JVM, then I start doubting either your experience or curiosity.

vkjv··on Problems with Go Get
I haven't written much go, so I'm just riffing here, but could you do something similar to what the author is suggesting with git submodules?
vkjv··on Ask HN: How to avoid giving a scathing code review?
I work with a lot of contractors and so I end up doing this frequently. Here's the pattern I follow:

1. Reject the PR. It needs to be clear that this isn't acceptable. 2. Realize that stopping with rejection doesn't help the problem at all. :) 3. Start with some light comments and refactoring a couple of sections (usually it's the same bad patterns repeated). 4. Only provide the refactors as comments. Try not to fix other people's PR and then submit. It makes it hard for that person to improve. 5. Talk with the individual about it. Ask about the issues they were having and offer fixes. 6. Ask them to try again.

If this cycle happens a few times, you either need to break down tasks into simpler, smaller bites, or let them go. This can quickly turn into negative productivity for the team.

vkjv··on Oracle latest to be sued for wage-fixing
> "...Silicon Valley wage-fixing sandal."

That sounds way more interesting than a scandal. Too bad it's probably a typo. :)

vkjv··on Ask HN: Please stop making infinite scrolling websites
I think "infinite scroll" is best when implemented as scroll triggered pagination. An example of this hit hacker news awhile back:

http://scrollsample.appspot.com/items https://news.ycombinator.com/item?id=7314965

vkjv··on Show HN: A Guide to TDD'ing React Components
My thoughts exactly. Randomness has a place in tests, but not in unit tests.
vkjv··on RSMQ: A lightweight Redis based message queue for Node.js
First off, this looks great! It has a simple interface and could compliment some simple projects very well.

However, this quote, "If you run a Redis server and currently use Amazon SQS or a similar message queue you might as well use this fast little replacement" is greatly over simplifying things.

Amazon SQS gives you acknowledgement guarantees that are not possible with Redis. Don't get me wrong, I love Redis, but you can't reliably trust that writes happen.

https://aphyr.com/posts/283-call-me-maybe-redis

vkjv··on Ask HN: Could developers use the licensing model professional photographers use?
This was what I worked out, without much effort. A perpetual license for prints, but I couldn't sell the works.
vkjv··on The photographers who refuse to abandon traditional film cameras
Very similar to guitarists who refuse to give up tube amplifiers. I'm one of them.
vkjv··on Why We Are No Longer Developing for the iPad
I'm barely monolingual let alone bilingual, so I'm honestly curious: how does spell check do here? Are you able to type most words without the accents and let an auto-correct tool auto-magically correct things?
vkjv··on Ask HN: Why do people have a hatred for Scala?
Everyone who hasn't used it for at least a year or more than three.
vkjv··on Ask HN: Why do people have a hatred for Scala?
+1 Implicits. We put very strict limits on use of implcits. They make code extremely difficult to reason about, but can also be incredibly dangerous. I once stumbled upon an implicit cast of Int to Float... Oh, my.
vkjv··on Ask HN: Why do people have a hatred for Scala?
I can speak from my own experience with using it on a growing team: Don't.

It's a very powerful and expressive language. That translates to "completely unreadable by people without at least a few months direct experience in it." If you plan on introducing people with little to no scala experience to your code base regularly you will probably want a different language or to severely limit your allowed feature set.

vkjv··on How FPGAs work, and why you'll buy one (2013)
While, I do have an EE degree, I play with FPGAs fairly frequently and rarely think about the hardware that I'm laying out.

In my experience, unless you are building something either very large and need to worry about your gate count, or something very time sensitive and need to work about component distance, you can just program and enjoy real concurrency. :)

vkjv··on Android’s 10 Millisecond Problem explained
> And I don't think many people outside the the tech audio community realize how many people have ditched their guitar amplifiers and are playing guitar purely through the iOS devices.

I'm super interested in this question because I honestly don't know. My assumption is that among serious guitar players (defined as individuals who play in groups or in front of people at least monthly) the number is almost nil.

I'm sure the number of casual guitarists (those who rarely play, but technically own one), this number is quite high.

I'm unwilling to even concede the tubes in my amp let alone the amp itself...

vkjv··on Keeping Your Car Safe from Electronic Thieves
You can disable it via the on-dash console in GMs.
vkjv··on Keeping Your Car Safe from Electronic Thieves
Wow, I didn't think of it until I read your comment, but it would be super easy to add a switch to my fob!

With little more than a cap, you can throw on a button that enables the feature on for a period of time then disables it again.

← PreviousPage 8 of 12Next →