skysight-inc/HackerNews huggingface dataset:
It's a great article, well written, and I like the recommendations. Especially "Find a Mentor"! But I still think deliberate practice is overrated (in some fiels, especially programming): http://davidtanzer.net/deliberate_practice
Every function in Lodash is also available as a dedicated module, for the same reason left-pad existed: https://www.npmjs.com/package/lodash.padstart
Would love to integrate and work on this
I agree, my pts feels like a nice watch, a good watch with well visible screen in any conditions. What you get extra is:
Notification, alarms, bike computer, ski-tracker, music controller (includes Sonos), step counter, sleep tracker. Mine consistently gets a 12 day battery life. It can even be stretched to 14 probably because at the end it goes into watch only mode. I love it much more than I could have imagined in advance. Just expect a nice watch, not a small smartphone. I even got it becuase I wanted a watch, my alternative was a Casio with some features.

I use my phone in a very different way now, I hardly turn on the screen anymore. I see if something is important right away (usually it is not) and I can leave it until I'm on the train for example.
It's easy to write code that does the wrong thing quickly in any language, and IME that tends to be the usual result of choosing C.
Strange. I was hoping to existing submission by submitting it, as HN usually just redirects you to an existing submission if you post a duplicate.
You can quite easily choose your version. There are virtual hosts out there supporting any version of anything. This problem is largely solved.
so - if they'd hired scantily clad men in proportion to the number of women attending as they hired women:men attending the conference, would it have no longer been sexist? or just objectifying? (something everyone does every day).
While "The Big Bang Theory" has its problems, at least it attempts to show people who are unrelentingly interested in science and technology, who love their work, and who go out of their way to learn stuff and make things.

The linked article nails it with regards the rampant anti-intellectualism of Friends, and while it didn't trigger the "Downfall of Western Civilization", it certainly is indicative of the state of it.
Too many medical trials move the goalposts. A new initiative aims to change that
Finding a job without a recruiter
Improve Agile Workflow with New Review Assistant 3.2 from Devart
If you don't know how to write a function to left-pad a string without copy & pasting, you have other problems..
Maintaining a dependency on a library should be much less effort than maintaining 17 lines of code. If it isn't that's a deficiency in your dependency infrastructure.
Spread of holiday lets must be stopped if we are to end the housing crisis
Managing your manager when it comes to legacy code
I don't know how much time it really saves me, but in addition to the convenience I find it much less intrusive (e.g. in meetings or other social situations, or when walking) to quickly glance at my watch to read an incoming notification rather than pulling my phone out.
That's my favourite part of the entire article as well -- the author clearly knows what he's talking about.

It's actually surprising how many people do the opposite to this advice. Often it starts with nootropics and then continues into more dangerous territory.

It seems to me that people within companies that encourage competitiveness between employees are more prone to that. I.e. if your company only gives bonus to the top 10% of employees when ranked by productivity ("productivity" being defined in any way), that's a bad sign.
Smartwatches always seemed like a fad to me. Part of the point with smartphones, at least to me, is to get rid of the watch. Smart or not. I used a watch throughout my youth and still remember when I got watch free. My wrists: free at last!

It's also puzzling me a bit because the appeal of watches among people where e.g Apple is aiming their watches for given the price range, tend not to be about supporting the latest WiFi standards or whatnot, but the value of classic, mechanical, precise, designs.
So this looks like prolog and logic programming to me.
A handful of clever people end up in the right place at the right time, make billions, and get praised on news aggregator sites. Millions of others lead good lives full of moral bravery, and will rarely get a mention by anyone, anywhere. HN is not the barometer of goodness in any sense.
The Veil of Ignorance
My wife and I would be very sad if Pebble went away. Even "crippled" with iOS it is a huge improvement.

* my phone is permanently on silent. Only my watch vibrates. I've found this to be much more professional.

* good step tracker

* I have an app that wakes me up between REM cycles. It's glorious!

* I always know the time, you know, like watch people do

* battery life and water proof -- I never take it off... One reason I am not interested in Apple Watch

* inability to interact/reply from watch is a PLUS. Watches make terrible input devices and there's less of a distraction

* I don't get distracted by my phone. If I have to grab my phone to check a notification I'm going to start opening apps out of habit and get lost in my phone.
Thanks Thomas - totally understand and not having a moan at all - just wished that there was an equivalent to you that we could use as we've heard such good things.
Look at the useable screen estate on these: https://www.google.nl/search?q=casio+watches&source=lnms&tbm...

You're comparing it to the wrong product. I think their vision is spot on compared to other manufactures, I can't understand why Apple/Google don't pursue a watch with this type of screen and battery life.
That's prime agricultural land, though. And Cambridge is really not suited transportwise to becoming a big city.
You just get a different set of problems. When you require a specific version of a library, you're making your code incompatible with anything that requires a higher or lower version of that library. You're also assuming there will never be a security fix that requires you to update your dependency.

If there is a security fix, you should bump your dependency by hand, the other problems that you pointed out do not exist in Node (and it's about time they disappear in Java)
ΚΑΤΑΣΚΕΥΗ ΙΣΤΟΣΕΛΙΔΑΣ – SEO – WEB DESIGN
You're right - this could lead to a lot of new innovation as a bunch of developers who wouldn't have bothered before can now start hacking away to see what they can do.

I've been thinking a lot lately about where the next major areas of technology-driven disruption might be in terms of employment impact, and things like this make me wonder how long it will be before call centers stacked wall to wall with customer service reps become a relic of the past...
The article is very US-centric for all its talk about "western civilization".
Is there a special reason the tests are all asserting inequality? To me this only indicates if it doesn't do stuff it's not supposed to do, instead of working as intended: https://github.com/hfiguiere/leftpad-rs/blob/master/src/lib....

[edit] thanks for the explanation, I'm not familiar with rust and just assumed the bang would mean !=
Late bloomer, you say? :)
When I want files available on IPFS, I just pin them to the appropriate machines.

Ipfs pin add [key]

And my material now has another seed machine. It works, and is clean and efficient. One thing: I share everything in a directory, so the root directory name gets clobbered with the multi hash, and all the files in it retain their pretty names.
I saw someone with a Pebble while we were catching up over drinks. An incoming call came in, and in just a glance he'd looked down at the watch & back up again, determining that it wasn't a call he needed to answer. With a smartphone, he would've had to reach into his pocket or backpack, press the hangup/voicemail button, put it back in his pocket or bag and apologize for the interruption to the conversation.

Of course, the ideal would be turn off the phone entirely, but I thought the Pebble was an elegant & respectful way to remain on-call with work, but also remain present with others. I can see how it would be useful to some people.
> Maintainability is the feature of unreliable equipment.

Would you pay 100x more for a reliable equipment?
The big black dog
Thanks. This means the impact of submitting a link with a new account and a high Karma account are the same, right?
I wonder why Tamagotchi didn't go for a watch design.
Saving Wildlife Through a Game
if the NSA is doing this in the US against a US company isn't this illegal?
ok, you are aware that the vast majority of the worlds software is written in C.... yes there are problems with it but it is still suitable for real-time, embedded, safety critical software of the sort I've been making quite successfully for close to 30 years.

Don't fall into the 'C is the devil' trap, any tool can be misused.
API of Natural Language Processing, IR and ML Tools
I know, that's why I have a frame from that video and the link in the caption. Do you already feel smarter?
That's not shorting, in fact by renting you're financing the bubble. After all, valuation is done on the present value of future cash flows. Firms that earn a lot of money are thus valuable, as are firms that will grow into firms that make a lot of money. By renting, you're constructing that cash flow.

To pop the bubble you must not exercise any demand at all. And to short, you have to construct a financial scheme that benefits when the price goes down.

For example, you could 'borrow' a home, sell it at market price, then 10 years later when prices are much lower, buy it back, then give back the home to the person you lent it from. Or in fact, housing prices could rise, as long as they do not rise more than another guaranteed investment, it makes sense to short this stock and reinvest it into the other investment, and you'd still make money, interestingly, without having to need money in the first place. Of course in practice all of the above is tricky and risky, and so I appreciate that within the opportunity set of a normal citizen, renting is preferable to buying, but let's not call it the equivalent of shorting.
According to Der Spiegel, Assad had helped ISIS: http://www.spiegel.de/international/world/islamic-state-file...
You said "The vast majority of these people" which would imply you're talking about the type of person who creates projects like this
Concatenate them and then run them through Babel...
Agreed. I really wanted to buy a Pebble, but that bezel is just atrocious. Really really bad. Especially the new round Pebble.

I truly can't understand what they're thinking. By this point there should be minimal bezel.

It is literally the only thing that turned me off buying one.
(That's the whole point of using a dynamic language, what '>' actually does depends on the surrounding code. If you want '>' to type check you should be using a type safe language to begin with.)

The issue I have with this is readability. Type '>' and I know exactly what it does, I know what implicit conversions are involved, and how it would react to a null object. Type 'isPositiveInteger' and I need to check. I can not read your code fluently anymore.
This - In a world where I barely ever have cash in my wallet, I find it increasingly frustrating having to withdraw cash from an ATM and then break it just so I can give it as a tip. I have a trip to New York booked for the winter, and the tipping culture in the USA is one of the things that I don't look forward to.
it doesnt test for inequality. assert_eq! is a macro (indicated by the exclamation mark)
While a 5kb function is immense, I work on a legacy code base and I have seen functions up to 2000 lines long. You possibly overestimate the quality of code that people in business actually write. I've worked in a few places and all have parts of the code which I would thought were made up if submitted to the dailywtf.

Also, have you ever seen a commercial library require >2MB of minified JS? Here's an example:

http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20153.84.min.js

That file is almost 2MB minified (5.6MB unminified).

And that is is only 1 of the few different files required for our dependency on it, there is a bunch more javascript/css also required. Would I use that library on a new product? I'd probably advise against it due to the size, but a legacy product has dependencies and you don't have the freedom to rewrite everything all the time.
> But regardless of how many insults get thrown around, or how many people seem to think JS is useless or that it's a horrible language, its probably my favorite (and I've done professional work in non-trivial applications from C and C++, to Java and go, to python, Ruby, and PHP to BusinessBasic and even some lisp).

I see one common thread between all those languages you list: none of them has a decent type system.

If you ever get the chance I'd strongly recommend trying a small project in a strongly-typed functional language - PureScript if you're targeting the browser, otherwise Haskell or Scala, or maybe F# or OCaml. (Scala and OCaml also have compile-to-JS options). If you find you don't like that style then fair enough, but it's well worth trying one language in that space and getting a sense of the techniques that it enables - it will make you a better programmer even if you end up going back to JavaScript or another language from your list.
A secure architecture is possible with IBM POWER. Unless they can save money building their own without hurting iDevice development, there is just no reason to make their own server chips.
Nope.

Why are they attacking Belgium, of all places? There's always some excuse - it really boils down to opportunity. To groups like ISIS the west is weak, and that's provocation enough.
The assert_eq!() calls are calls to the assert equals macro: https://doc.rust-lang.org/std/macro.assert_eq!.html

In rust macro functions look like functions but end in a bang(!), it's not using ! to mean negate.
http://rustbyexample.com/macros.html
Because we don't have a history of violating promises like this when done in writing? Seriously, I'd love to call us just "Cloud Platform" so you don't have to think "oh yeah, those guys cancelled reader on me" but if you look at the Cloud products we don't play games with this (partly because we hold ourselves to our binding Deprecation Policy, but mostly because we really care).
A large part of the problem is that companies are focussing more on the watch aspect and less on the smart-wrist-mounted-device aspect of such things - for me, at least.

I have the feeling that there's a breakthrough "why didn't I think of that?" moment not too far in the distant future from now.

Until then.
> People never see a property price crash coming.

Isn't this a bit like any statement. 'People who get hit by a car never saw it coming'. Or 'people diagnosed with cancer weeks before they died, never saw it coming'. Well sure, ignoring the people who did saw it coming, which are events we then ignore. i.e. there may have been various formations of bubbles, people saw it coming, adjusted their investments, and the bubble diminished.

Further, it's not like today, people don't realise there's a bubble in Vancouver. It's pretty much the opposite.
The ! indicates that assert_eq is a macro call.

Usage example: https://doc.rust-lang.org/std/macro.assert_eq!.html
Both in a way.

What happens when you have a "100% test coverage" requirement is that people don't think about the tests, they simply make tests to force the code down every path without thinking whether it was intended to operate like that.

For example if the is-positive-integer had a silly test for "if(value==23) return false", a requirement for "100% test coverage" would simply result in someone creating a test for that condition instead of considering if it was actually a fault.

100% test coverage != no faults.

What you have done by generating 100% test coverage is effectively 'frozen' your code and made it harder to implement any changes.
Exactly what I was going to reply.
Lol this is all pretty funny. I also did this but in C++ to make fun of that JS crap.

https://gist.github.com/zelcon5/7dc42bf91ea958132a0d

- "padding" can go either left or right.

- generic function

- minimal lines of code

Wow so great, make me a dependency for Windows11, Apache, Firefox, and toasters.
Huh, why is that? Corporations don't like spending money just for the hell of it.
> This is an extremely severe design issue, where an Anti Virus can not only be bypassed, but it can actually be used to compromise an attacked system.

Don't we have exactly that design issue in all anti-virus tools, by definition?

All potentially dangerous data is routed through that single tool that runs with high permissions and performs complex computations. Every single programming error in the anti-virus tool (e.g. a buffer overflow) can potentially lead to a compromised system. An attacker can now choose not just between vulnerabilities of browser, mail client and operating system, but also use vulnerabilities of the anti-virus tool.

So anti-virus is by definition a tool with complex behaviour and a large attack surface.

For many security people, this alone qualifies anti-virus tools as additional threat, not as part of the solution - even without dramatic failures as shown in this particular case.
This will give

startsWithCapitalLetter("!") == true

which is not what you want.
See The Role of Deliberate Practice in the Acquisition of Expert Performance by Ericsson. The data supports your hypothesis.
Hold on, hold on. Let's say you have worked hard on a project that you were not paid for, totally out of love for software.

And out of nowhere, a corporation threatens you to re-brand it else you are gonna face consequences, you are saying you will rename the package and be done with it ? Just like that ? Without asking why .. or finding a compromise ? I am sorry to say, but that's not how most people think.

Maybe this would have played differently if Bob would have used better language. But the fact that he went off with "our trademark lawyers are going to be banging on your door and taking down your accounts" would have pissed off any person.

And why can't a software engineer be "unprofessional" in his own private time when he is dealing with "unprofessional" people in the first place ? Have you even read any of Linus' mails ?
MIT Calculus Integration competition from 2006
iCloud uses Linux according to their job postings.
Microsoft Releases Version 0.30 of the Azure Storage Python Client Library
New entrant to the iOS Reddit space
A backdoor or legitimate bug in any line of custom code could leave huge exploits in your system. A widely-used published module is likely to be much more reliable, at least on average.
Server-Sent Events (SSE) for iOS. Get the latest news in realtime on your iPhone
So, what is the point of this? Highlight that it is possible to do to Cargo what leftpad has made to NPM?
Yup, had this with my 2006 MacBook, and a new battery fixed it.

(Incidentally, when I last went to buy a replacement battery from an Apple Store, they wouldn't let me install it myself even though the polycarbonate MacBooks had user replaceable batteries. They insisted I bring in my MacBook and leave it with them overnight to have a Genius install it. I ended up cancelling it and getting a NewerTech battery replacement, which is both cheaper & has better battery life than the Apple model.)
its scary because i want my self driving car to go 150 miles an hour at all times
Curiously the "square" package linked by Azer has been removed (by npm or the contributor ? ).

I would be curious of how many package are being affected by these ripples and will end up being removed/renamed.

https://www.npmjs.com/package/square.

https://webcache.googleusercontent.com/search?q=cache:PL8U_6...
CVE: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-17...
twitter doesn't have an edit button, but it does have the delete button ;)
Is it no longer standard operating procedure to disable hibernation when you put an SSD in?

In any case, with an SSD, my boot times from cold start have been faster than coming back from hibernation were with rust disks. Plus, clean starts are less likely to leave things in a fubar state than the often-buggy hibernation
Lamport on Real World TLA+: Who Builds a Skyscraper Without Drawing Blueprints?
HP machines to be specific.

http://blog.fosketts.net/2011/06/06/datacenter-equipment-app...
New devops guy at my work a few years ago somehow completely blows away the CDN. Of course we have all of the data locally but it took almost a full day to reupload. I believe this is our longest downtime to date.
Some people have favorite submitters, and so well established accounts may get more readers, and hence more upvotes, than newer accounts. Your question included the proviso that both submissions got the same number of upvotes in the same time - that might not happen with accounts that have difference karma.

And not all upvotes are equal. The software has voting ring detection that is good, but not perfect. Submissions often get quite a lot of upvotes that don't convert to karma for the user simply because not all upvotes are regarded as "genuine". Those upvotes might not count towards the submissions ranking, but I don't know.

What I do know is that there is "secret sauce" and that it's generally pretty good, although not perfect. Trying to game the system is rarely successful, and trying to understand it from the outside is going to be really hard.

Personally, I submit stuff I think is going to be of interest, I read stuff that looks like it might be interesting, and then I walk away. The internet in general has taught me not to care.
Your code is a bit inefficient. I took the liberty of fixing that for you: https://gist.github.com/lhecker/8e89d998c156f0bfdd2d

(You can use that code freely and without any attribution if you want to.)

The important part here is to use `String::with_capacity()` to prevent unnecessary reallocations. Furthermore I used `usize::saturating_sub()` because it's neat and cleaned up the code with `rustfmt` (which you should use).
> It makes no sense to bring in a module from a third party adding yet another dependency and potential point of failure when reimplementing it yourself literally takes as long as it takes to find the module, add it to package.json and run npm install.

Even if it does take the same amount of time (which it shouldn't), a 1-line call to a standard module imposes less of a future maintenance burden than 14 lines of custom code.

> People should be trying to limit dependencies where possible. Reproducible builds are really important if it costs you almost no time you should have it in your code base IMO.

That's a non sequitur. Reproducible builds are important, but unless you write code with 0 external dependencies you already have a system in place for handling library dependencies in a reproducible way. So why not use it?

> People taking the DRY principle to the most extreme degree always makes for the worst code to debug and maintain.

This is the opposite of my experience.
If you have 100 dependencies, then that's a 100 projects you need to follow and understand the updates for. The minute your dependencies bring in their own dependencies then you start having troubles keep up or even keeping track of the updates. The 17 lines of code you pull in is in most cases a one time deal, having it in a third party library means that you need to keep track of that library for ever.

Honestly, and this is maybe just me being biased against JavaScript, then this is what happens when you pick a language fully knowing it's limited in all sort of silly ways and attempt to use it as a general purpose language. It's not that you can't, but if you need say typing that can tell you if something is an array, then maybe picking JavaScript to begin with wasn't the brightest idea.

There's a ton of libraries and hacks out there, all attempting to fix the fact that JavaScript isn't really good general purpose language. ES6 is fixing a lot of these thing, but it's a little late in the game.