Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bulatb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
301.
▲
by
bulatb
13y ago
The join() hack used to be significantly faster for many/long strings a couple years ago, but I wouldn't be surprised if things have changed since then. I'd be interested to see your results. Edit: Apparently the loop is fast
302.
▲
by
bulatb
13y ago
Alternatively: "Iterating through the string, take each character and dump it plus a space to a temp string. Return the temp string trimmed." I wouldn't say that's any worse, especially in this scenario. But they should
303.
▲
by
bulatb
13y ago
You should know that they exist and what they do. You can do a lot of things with higher-order functions just by making closures, but `apply` and `call` will give you flexibility and power there's no other way to get. For one thing, th
304.
▲
by
bulatb
13y ago
This interview could go much faster if it didn't use a laptop or a whiteboard. A strong candidate should fire off responses to those questions just as fast as you can ask them. Spacify: "Split on empty, join with spaces." D
305.
▲
by
bulatb
13y ago
If you're on Android, check out Hacker News 2. Much better experience.
306.
▲
by
bulatb
13y ago
Have you seen jq? It's supposed to be like sed for JSON. http://stedolan.github.io/jq/
307.
▲
by
bulatb
13y ago
If you want long-term results, the bottom is the place to do it from. Popular culture and social taboos are pretty much the only way to influence a power structure that's not interested in being influenced. In 2014, there simply isn&#x
308.
▲
by
bulatb
13y ago
It's a joke. Sorry for the Quora link, but this answer comes straight from the source. https://www.quora.com/Whats-the-story-behind-Javelins-hilari...
309.
▲
by
bulatb
13y ago
http://javelinjs.com/
310.
▲
by
bulatb
13y ago
Previous discussion: https://news.ycombinator.com/item?id=5392984 This source has some problems.
311.
▲
by
bulatb
13y ago
High or low?
312.
▲
by
bulatb
13y ago
If they haven't already, they could hide the DOM and nasty host-provided objects behind something more Pythonic. As long as it transpiles to XMLHttpRequests, it doesn't matter what the Python looks like.
313.
▲
by
bulatb
13y ago
#4 is less an issue since one truck can carry all the packages for people on its route. With Prime Air, it looks like it's one drone per package/person/destination. If the tradeoff is between vehicles per package (A) and aver
314.
▲
by
bulatb
13y ago
In my position as the Arbiter of Relevance, I presume to speak for all of you when I complain that articles about this issue don't belong on Hacker News.
315.
▲
by
bulatb
13y ago
How would profit-sharing work in companies that don't and probably won't ever turn a profit? If I had been at Instagram, for instance, I think I would have been much happier with equity than with a profit-sharing scheme that may n
316.
▲
by
bulatb
13y ago
That if governments have privileged access to the hardware, it's not safe to use a phone until a whistleblower tells us what exactly they can do.
317.
▲
by
bulatb
13y ago
"Don't be so dramatic," says the frog. "The other pots are all much hotter."
318.
▲
by
bulatb
13y ago
"Growth spammers" has a ring to it.
319.
▲
by
bulatb
13y ago
The user doesn't care whose fault it is. If the WiFi doesn't work in Linux, but it worked fine under Windows, then Linux is worse.
320.
▲
by
bulatb
13y ago
Return without a value returns undefined, which is falsy but not false.
321.
▲
by
bulatb
13y ago
Because freedom means it's the restrictions, not the privileges, the government enumerates. I don't know if there's a reason cell phones shouldn't be allowed there, but if there isn't then they should be.
322.
▲
by
bulatb
13y ago
Your vote is worth about five bucks a year to Facebook. Not really a huge deal, considering most people aren't concerned about surveillance and a very tiny fraction is concerned enough to give up social networks.
323.
▲
by
bulatb
13y ago
> Do you think the government is going to put the CEOs of some of America's most popular and profitable companies in jail for an act of civil disobedience If you support the rule of law, you should expect and demand that if it comes
324.
▲
by
bulatb
13y ago
Total internet traffic is not the total volume of communications . What you're saying is like saying that your county's prosecutor has a 0.25% conviction rate because 1% of residents are charged with crimes and 25% are found guil
325.
▲
by
bulatb
13y ago
In the observation that kicked off the meme, a 10x engineer was someone who was 10x more productive than the least productive members of the team, not 10x more productive than the average.
326.
▲
by
bulatb
13y ago
Could he be outsourcing his job? Has anybody seen him write the code?
327.
▲
by
bulatb
13y ago
"More jobs" doesn't really matter if you really want to work at a specific place.
328.
▲
by
bulatb
13y ago
Using an employer-issued laptop makes it murkier who owns the code you might hack up on nights and weekends.
329.
▲
by
bulatb
13y ago
The answer to this type of question is typically "because Apple said so."
330.
▲
by
bulatb
13y ago
I think the computer there would be so you could see your progress, not so you could look things up. Write the display rule, then sanity-check; fix the margins and remove the bullets, then make sure it's right; etc.
More ›