Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chewxy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
661.
▲
by
chewxy
13y ago
I recently consulted with a logistics company. Turns out reroutes and missed orders are expensive. Really expensive for the company. Since the company also used owner drivers, the cost of the reroutes are put on the drivers themselves. Natu
662.
▲
by
chewxy
13y ago
I gave a talk just a couple of days ago on the beauty of Python code[0] - the talk hasn't been transcripted yet. In it I gave an example of how we've been conditioned by evolution to see clever things as beautiful[1][2]. I gave th
663.
▲
by
chewxy
13y ago
Simple - finding customers is surprisingly more difficult than you'd expect. Waaaay more difficult. I've thought about continuing consulting with big companies, but with big companies, you have to sign this sign that, get that man
664.
▲
by
chewxy
13y ago
SEEKING WORK - SYDNEY I'm a data scientist who has quite a bit of compsci knowledge. If there is a spot of data bother in your company, you need someone like me. Can't tell if your new designs are ACTUALLY working? You call me. Wa
665.
▲
by
chewxy
13y ago
Oh you can definitely fake block scoping in JavaScript, with ES5. ;P
666.
▲
by
chewxy
13y ago
You could argue that "use strict" does the same, except it's language mandated. But yes, you have a point. These are not particularly fun, if you are on the receiving end. I've seen more than enough hair-raising bad Java
667.
▲
by
chewxy
13y ago
Imagine you have inexperienced coders who do this: function foo() { bar = function(){}; //define bar } function baz() { bar(); // use bar } Note that both foo() and baz() could them
668.
▲
by
chewxy
13y ago
Oh... very very very nice. This is amazing
669.
▲
by
chewxy
13y ago
One of my favourite ways to punish JavaScript developers who don't use `var` is to randomly hide a if (false) { var GLOBALVAR; } somewhere in the code. It's fun (in a harmless fun kinda way, but you can also use
670.
▲
by
chewxy
13y ago
I liked deVries' The First Modern Economy - the first volume is great. It's not a pop-econ book, but rather a good hard look at the Dutch economy circa 1500s. A Concise Economic History of The World is also not a bad book, if a bi
671.
▲
by
chewxy
13y ago
I am a data scientist/statistics consultant, and have consulted to a few startups and one soft drink company that is often confused with a drug. Can't say for their experience, but I can say why they hired me: make sense of data.
672.
▲
by
chewxy
13y ago
Adding to what mooism said, there is a general "consensus" of sorts as to which sorting algorithm is "best". "Best" in this case would be fast enough for most general purpose computing. The answer is: Timsort.
673.
▲
by
chewxy
13y ago
> But in my opinion, this is going to kill a lot of real-time commentary on posts that are only moderately popular, and it will kill discussion on scrolled-off posts almost completely, for obvious reasons. Real time discussion is overrat
674.
▲
by
chewxy
13y ago
This is amazing! I cannot stop laughing! The first reversed number hit me like a ton of bricks and I couldn't stop. BEST.2048.CLONE.EVER
675.
▲
by
chewxy
13y ago
As the author of Underhanded JavaScript, I must definitely recommend Eloquent JavaScript and JavaScript Design Patterns. The latter is quite important because the design patterns that Addy talks about actually does patch up a lot of rough s
676.
▲
by
chewxy
13y ago
Give Underhanded JavaScript a try then. It teaches you how to be an arsehole JS developer :P - published today too ( http://leanpub.com/underhandedjavascript/c/NackerHews ) The book is laid out by logical topics (on
677.
▲
by
chewxy
13y ago
No. Use isNaN() instead. Or if you have ES6 support, Number.isNaN() is much better an implementation than window.isNaN()
678.
▲
by
chewxy
13y ago
The reason is simple: "hello" is Not a Number. "world" is Not a Number. (Number)"hello" == (Number)"world" returns false. EDIT: Another reason why this is the case is because IEEE mandates it to be.
679.
▲
Optimizing UI icons for faster recognition
(boxesandarrows.com)
2 points
by
chewxy
13y ago
|
0 comments
680.
▲
by
chewxy
13y ago
This is possibly one of the darkest of dark patterns I've seen.
681.
▲
According to RyanAir, "Don't Insure Me" is a country
(liveatthewitchtrials.blogspot.com.au)
1 points
by
chewxy
13y ago
|
1 comments
682.
▲
by
chewxy
13y ago
Wait Novell Netware still has that bug? I recall in my A levels day, we would disconnect the LAN cable on a Netware client machine to circumvent having to logon to the network, which gave us control of the local machine.
683.
▲
by
chewxy
13y ago
I like this because it is suitably in-depth and yet written in a very accessible manner
684.
▲
OOP Basics in Python 2.x - Part 1
(lgiordani.github.io)
1 points
by
chewxy
13y ago
|
1 comments
685.
▲
I split-tested two titles for my upcoming JavaScript book. Here's what happened
(blog.chewxy.com)
1 points
by
chewxy
13y ago
|
0 comments
686.
▲
by
chewxy
13y ago
My personal hypothesis is Whorf Sapir happens with programming languages as well. A lisp developer is going to think about a problem in a very different way from a JS dev.
687.
▲
by
chewxy
13y ago
Yup. That was Ken Iverson's point of view when he created APL. Different languages make you think in different ways. When working with Go, C and Python, I'm always keenly aware of the different and optimum data structures to use.
688.
▲
by
chewxy
13y ago
Is that not rather the point of the post? I read it as Panasonic is trying to enforce its own ecosystem. It's not playing well with Amazon's ecosystem. Amazon's ecosystem doesn't play well with Android either (which to m
689.
▲
by
chewxy
13y ago
The language is actually called ECMAScript. It's in its 5th version right now. As its name suggests, it is standardized by ECMA. JavaScript is a name that is licensed to Mozilla by Sun Microsystems. Technically speaking, only Mozilla c
690.
▲
by
chewxy
13y ago
Something better than MorpheuZ. I currently use it because it's the best solution out there, but damn, it's hard to use. Keeps crashing
More ›