Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vkjv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
211.
▲
by
vkjv
11y ago
lunr.js is pretty small (5k gzip/minified) and does a pretty good job at providing client side full text search. Definitely larger than this but provides a few more (IMHO, necessary) features. http://lunrjs.com/
212.
▲
by
vkjv
11y ago
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 generati
213.
▲
by
vkjv
11y ago
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 be
214.
▲
by
vkjv
11y ago
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
215.
▲
by
vkjv
11y ago
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 p
216.
▲
by
vkjv
11y ago
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; setInt
217.
▲
by
vkjv
11y ago
> 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 ex
218.
▲
by
vkjv
11y ago
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 caree
219.
▲
by
vkjv
11y ago
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 i
220.
▲
by
vkjv
11y ago
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
221.
▲
by
vkjv
11y ago
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).no
222.
▲
by
vkjv
11y ago
This. That was my "answer" to the question. "Oh, if `doSomethingElse()` returns a function, it will run that function after the promise resolves successfully."
223.
▲
by
vkjv
11y ago
> 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
224.
▲
by
vkjv
11y ago
Interesting, but for me, there's a key piece missing. What did they use to determine that a developer was "good" to begin with?
225.
▲
by
vkjv
11y ago
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 d
226.
▲
by
vkjv
11y ago
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?
227.
▲
by
vkjv
11y ago
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
228.
▲
by
vkjv
11y ago
> "...Silicon Valley wage-fixing sandal ." That sounds way more interesting than a scandal. Too bad it's probably a typo. :)
229.
▲
by
vkjv
12y ago
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/
230.
▲
by
vkjv
12y ago
My thoughts exactly. Randomness has a place in tests, but not in unit tests.
231.
▲
by
vkjv
12y ago
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 t
232.
▲
by
vkjv
12y ago
This was what I worked out, without much effort. A perpetual license for prints, but I couldn't sell the works.
233.
▲
by
vkjv
12y ago
Very similar to guitarists who refuse to give up tube amplifiers. I'm one of them.
234.
▲
by
vkjv
12y ago
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?
235.
▲
by
vkjv
12y ago
Everyone who hasn't used it for at least a year or more than three.
236.
▲
by
vkjv
12y ago
+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.
237.
▲
by
vkjv
12y ago
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 i
238.
▲
by
vkjv
12y ago
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,
239.
▲
by
vkjv
12y ago
> 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 beca
240.
▲
by
vkjv
12y ago
You can disable it via the on-dash console in GMs.
More ›