Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vkjv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
271.
▲
by
vkjv
12y ago
I know it's a hack, but I always wrote multi-line strings as a function with a comment. Super simple case: var multiline = (function() {/* I am a multi- line string. */}).toString().slice(16, -4); Couple this with a proper pa
272.
▲
by
vkjv
12y ago
Zmq is most often associated with network communications, but its in process sockets are fantastic for multi-threaded programming.
273.
▲
by
vkjv
12y ago
Am I the only person that things the sheer number of people that have had scaling issues with mongo is a GOOD thing? I think it speaks to changing technology landscape and attitude towards data. Many more people are collecting and working o
274.
▲
by
vkjv
12y ago
Because it is used... a lot. The only technologies that don't have animosity are the technologies that no one has ever used.
275.
▲
by
vkjv
12y ago
Agreed. I've also been using it in production for years and the hate is often misguided. My issues are almost never with lack of features, but almost always with the cavalier attitude towards bugs, even catastrophic ones.
276.
▲
by
vkjv
12y ago
Because you can immediately switch your focus to things that add direct value your to your business.
277.
▲
by
vkjv
12y ago
I agree that colorness is a problem, but there are also fantastic libraries that handle easier conversion between most of the common styles. For example, `bluebird` promises allow you to swap between error first callbacks in both directions
278.
▲
by
vkjv
12y ago
Are you excluding hacks? Because you can do this pretty easily in CSS2 since padding is always relative to width. Make your square div { width: 100%; height: 0; padding-bottom: 100% (or whatever ratio you want, doesn't have to be 1:1);
279.
▲
by
vkjv
12y ago
This, 1000 times, this. If you ever find yourself having difficulty cleanly separating a task, than you are going to spend more time defining the separation and integrating the parts than have having a single person do the task.
280.
▲
by
vkjv
12y ago
This. While common in many fields, I feel that this is most obvious with musicians. "What? I'm not paying this band $1000 for a 2 hour performance!" When, in reality, you are paying them for many hours of practice in order to
281.
▲
by
vkjv
12y ago
I had a similar experience with a plumber. Normally, I would have no clue how experienced the person was, but this particular person kept "missing" certain parts and had to make 3 trips to the hardware store! He only charged me fo
282.
▲
by
vkjv
12y ago
"And in practice they rarely are not. Nobody calculates the total cost of an unnecessary two hour meeting where 8 highly-paid employees discuss about something almost completely irrelevant." In my experience, that is absolutely no
283.
▲
by
vkjv
12y ago
I'd argue the opposite. I'd say it's impossible to love something if you don't know the ugly details. It's about being enamored with a language despite it's shortcomings. You know, just like loving people.
284.
▲
by
vkjv
12y ago
Tangential to the story, but, using `_.defaults` prevents the extra object allocation and reduces the syntax. `var jalapeño = _.defaults(jalapenoFromJSON, apple);`
285.
▲
by
vkjv
12y ago
In my experience, when doing user acceptance testing, the user will only ever give a maximum of X comments. If there is copy on the page, especially FPO, most of the comments will be around this copy since this is something that they unders
286.
▲
by
vkjv
12y ago
This question gets a lot simpler once you realize how they were originally implemented and many still are today: state machines. There is no history, no FIFO, the only thing that exists is the now. It's lot easier to answer, "I&#x
287.
▲
by
vkjv
12y ago
I think a much more interesting concept is prefetching files. Load the link to content with some of the critical files it needs to download, so that the browser can start downloading them before resolving the link. https://develo
288.
▲
by
vkjv
12y ago
> Educators get poor pay, somewhat decent benefits, and an ok pension I hear this relatively frequently (my wife is a teacher and so are many of our friends), but I disagree. I think saying it is "poor" depends on what you comp
289.
▲
by
vkjv
12y ago
Also, clumsy as it may have been, the practice of splitting large files into volumes of small RAR files helped.
290.
▲
by
vkjv
12y ago
The author is just giving what I would call, "optimizations" or maybe more plainly, "good code". To me, the term, "premature optimization" means optimizing something before measuring that your optimization has
291.
▲
by
vkjv
12y ago
I don't think a "framework" is necessary here, though. An example boilerplate project that glues all (most?) of the libraries together is all that is needed.
292.
▲
by
vkjv
12y ago
I completely agree with the modular, single purpose library approach, but, for large teams, it adds a lot of hidden overhead: library curation. It's so easy to just, `npm install` or `bower install` a new library, sometimes you don
293.
▲
by
vkjv
12y ago
I've read this article a few articles and it keeps hooking me with a certain math puzzle. Is it possible to identify an arbitrarily long string of operations when you can only control side effects and the return value? I haven't b
294.
▲
by
vkjv
12y ago
I guess the "uv" in "libuv" stands for "unicorn velociraptor." Edit: "libuv" stand for "Librarian Unicorn Velociraptor". http://logs.nodejs.org/libuv/2012-09-09
295.
▲
by
vkjv
12y ago
Thanks for the name! We do this internally to store various levels of product data in a single mongo collection (e.g., style, variant).
296.
▲
by
vkjv
12y ago
No, it stopped. I just tossed a 10 year old CRT with a 2560x2048 resolution. The key is that tech switched over to favoring LCDs which are finally catching up, and in some cases, passing CRT.
297.
▲
by
vkjv
12y ago
> ...as well as increasing the Node.js heap size to 32Gb. > ...also saw that the process’s heap size stayed fairly constant at around 1.2 Gb. This is because 1.2 GB is the max allowed heap size in v8. Increasing beyond this value has
298.
▲
by
vkjv
12y ago
> Well, from experience in the music industry, it seems that the person doing the hard work (the artist) most often is on the bad end of the deal, while all the middle-men are laughing their way to the bank. No, the person assuming the m
299.
▲
by
vkjv
12y ago
You've clearly not had to make a sandwich with bread that isn't sliced. Sliced bread is amazing.
300.
▲
by
vkjv
12y ago
That's because yesterday, it wasn't really 5%, it was 5±4%.
More ›