skysight-inc/HackerNews huggingface dataset:
I'd have thought at least a few people measure bug ratios of different coding styles?

It's a big motivator in terms of deciding up best practices. And whenever I fix a bug, I try to identify the root cause. If it was a coding pattern to blame (as opposed to bad process or design) I look for ways to eliminate that pattern.
Mithril defines a vdom, routing, a $.ajax style XHR request, a few handy wrapper functions, an mvc-style structure for your apps, and a rendering loop that knows about ajax, and can be integrated with external libraries, so it only rerenders when necessary, and not while the application's state is inconsistant. However, the VDOM implementation, and kinda-sorta-not-really the MVC structure is all that's required. Yes, you can even write your own render loop if you want. Although why you'd want to do that is beyond me.
If you don't use the budgeting part then there are many better solutions out there.
You have to maintain the current, while pushing forward on the new. Accounting is important, because the incoming money has to pay for the outgoing money (food, clothing, rent). Calculating everything down to the dollar is pointless, however. Just be within 80% of the right number, build in a buffer, and push forward on the new.

The new is much more exciting than bean counting the current, but you still have to maintain the current. Just like how refactoring, testing, and debugging code are just as important as writing new code.
fusor.net is the hub for these things, it's really quite an impressive resource. He says in the AMA he's registered there.
If the tab people would reliably use tab for leading indent and space for further alignment, I'd be 100% on board.

But what happens in practice is that the file ends up with a mish-mash of tabs and spaces throughout and the file is only legible if you set your tab stop to a specific setting, and sometimes not even then because different authors have used different tab stops for both indentation and alignment. At which point the tabs buy you nothing.

So just use spaces and be done with it. Or go fmt. :-)
Once upon a time it used to have a sensible meaning[0].

Nowadays I'm more interested in people that are effectively building stuff and just s/[:buzzwords:]//g.

[0]: http://www.catb.org/jargon/html/W/wizard.html
> invent numbers from the bottom of their heart in order to please clients and to give them an illusion of something that works.

Think (some) customers are part of the problem here - that they are happy to accept this illusion because it makes their lives easier.

In your traditional bricks n' mortar company, it used to be that the marketing manager could just hand over big chunks of budget to an agency and watch them splash it on a few big campaigns (TV ads, print etc.) - easy work with the added bonus of free lunches and other perks from the agency to keep their client happy.

But online advertising is a different beast. The legitimate players in this space, like Google and Facebook, require you to actively manage your campaigns and provide all kinds of reporting to show exactly how you're performing. That means work for the poor marketing manager who's a bit too used to long lunches; there's effectively an audit trail for your CEO to see exactly what their marketing budget is buying them, rather than some vague "brand recognition" metrics which are easy to fuzz.

Spending the ad budget becomes like Brewster's Millions ( https://www.youtube.com/watch?v=-9kMHiqS6Kg ) so anyone who can step up with a way to blow large chunks of it quickly is going to do well with these guys.
most "upgrade" installs should be more accurate.
I've looked somewhat at both, and my impression is that Gtk+ tried to do a similar thing as the Xt Intrinsics, but didn't do it in a really better way.

The problem with both is that you still have to write a lot of boilerplate by hand. Of the Xt Intrinsics I know that the things you could do with it were pretty advanced for their time, just too much annoying work.

What the Gtk+ people should have done is design some nice notation for objects and generate the Xt Intrinsics object boilerplate from that. Or in fact that should have been done soon after creating Xt.
Is this an old bug? 2013 ...
https://www.devconsole.info/?p=341
Actually the first thing Jobs did upon his return was to cut the product line and focus. https://www.youtube.com/watch?v=9GMQhOm-Dqo
Strongly disagree. That 30k or 100k or 200k can go a LOT farther if you pay attention to how you use it. And you can reduce your stress level tremendously.

When I picked up YNAB, I was already making 90k or so. At the end of every month it was tough to make rent, and we would live on rice and beans for a week. We lived in fear of the day that a larger or annual bill would show up. Health insurance? Panic. Tax bill? Drink and panic. Emergency needing some real cash on hand? Don't even think about it.

A budget lets you save in advance for those sudden shock bills. Now I don't even notice when the insurance bill comes due; I've been gradually putting aside money for it all year. What's more, we can afford way more important stuff. We were able to self fund two successful companies, we take extravagant vacations, and our quality of life is much better, just because we now set money aside in advance. And fwiw, those two companies more than doubled our income.

It's important to work on increasing your income through an improved skill set,better jobs, etc. But you can reap multiples of every dollar, and even new income sources, just by taking control of your expenses.
Federal Agents Went Undercover to Spy on Anti-Fracking Movement, Emails Reveal
I would sum it up as "reducing variability in code paths", i.e. not causing degraded performance when certain conditions change.
I love the super-simple configuration, but it comes with some tradeoffs. For example, last I checked, I couldn't forward some requests to a hostname to another machine, while serving certain URLs (e.g. /static) from the local machine.
Right, we think that contracts and OO programming are both important things that programmers want and need, and so they deserve high quality support from the language. The traditional Scheme approach of not making choices and not integrating things hasn't served anyone well, and isn't the approach that other languages like Python or Ruby take.
It helps that the fundamental theorem of arithmetic is a significantly more approachable topic than perfectoid spaces :)
Bypassing Gmail's malicious attachment filter with “one weird trick”
Show HN: CC0 Avatar placeholder service
Show HN: Circuit training app built with React native
You can do whatever you are comfortable with.

For example, for the trip, if you like cash you could just make an entry that moved whatever amount of your savings to an expense account associated with leisure travel. Done. It's less useful to do that for non cash spending (Because having the accounting system balance spending transactions against the bank records is one of the things it is good for).

As far as what other uses, analyzing your finances over time. Once the information is machine readable and you have categorized the spending to some extent, you can see where money is really going. Most accounting systems will make it trivial to generate time based reports.

(I say this having used ledger for a while and then stopped...)
No, that is not the problem. The science may be expensive but the main cost is seldomly the researcher him- or herself. Equipment is expensive and always will be, I mean we are speaking about cutting edge science not counting birds in the garden. When I am doing Assays in the lab, its it easily 5 bucks per sample. But then I have 30 to 50 samples. And one Assay is only a small step in a long procedure for a small scientific advance. Similar, when I am doing scientific computation, I often cannot work with the nice and cheap Nvidia 1080 GTX because I am doing science and need reproducibility. Accordingly, ECC is a must and we have to afford a Nvidia Tesla Cluster. Do you really think scientists are not curious or exploring, thats ridiculous. It is just that you cannot make an expedition without funding, and that is not about the money you make, its about the ship you need. (just my two cent as someone whos working on a dataset that is worth 3 or 4 times my yearly income and could easily be 3 or 4 (or 10) times larger)
> But how do you actually use them?

The key concept you need to understand is the concept of the balances. A transaction is always a transfer between two accounts. Buying a beer with cash is a transaction from assets:cash to expenses:beer. Getting cash from an ATM is a transaction from assets:bank to assets:cash.

> Do you really put every cent you spend into it?

Mostly. I started doing personal accounting together with my wife about a year ago (currently in Gnucash). I enter the payments into the software every 1-2 months. Usually my cash amount is off by 20-100$. I simply book that on the "unknown" account.

> How is it possible? How do you remember all that. for example, during a weekend trip?

Bank transactions are easy, I simply download the transaction statement. For cash, I either write it into a "accounting" Telegram chat that my wife and I share, or I keep the receipt and put it in my drawer.

It takes quite some time to do, but I think after 1-2 years I know enough about our expense behavior to be able to adjust it properly and to stop doing the accounting part.

Another welcome side effect: If I lend someone money, I never forget about it anymore ;)
Yes, the property has to be maintained, but generally the cost and effort of doing that is minimal, and the usual things that break need to be fixed by the person living there, not the landlord.
Entire US Voters’ Registration Records Is Available Online on Dark Market
Ironically enough, it's always been the same people who snap about being bothered with questions, who are the first to go running for help when they are confused by something outside their domain of expertise.

That's been my experience at least. My very first job was especially bad. There was an entire culture built up where tech leads and senior engineers would never answer chats/emails sent by junior engineers. If you really needed a clarification, you had to hunt them down in their cube, where if you're lucky, they would answer your question without any condescension. At my very first performance review, I was even dinged for "asking too many questions."

At the time, I thought there was something wrong with me. Looking back, the reason why I had to ask so many questions was because there was zero documentation, the code base was horrific, and we were using stone age tooling. My only regret is that I hadn't left even earlier than I did.
The correct answer isn't always the end result. Instead, make your answer where you sit with them on the "try" for that thirty seconds.

Obviously, you could have someone that will always ask and not try. My gut, though, is that spending that thirty seconds just a couple of times will save you hours of future work.
MIT always had that reputation though.
China's Local Debt Problem Goes Global
Also the UK parliament cannot be called a representative democracy. In the last general election 13% of voters voted for a UKIP candidate but the party won only 1 seat out of 650. A properly representative system would give them 84. Same with Green Party, 1 seat from 4%, should have 26. Meanwhile the Tories have an overall majority on 37% of the vote.
Pokémon Go – A Raging Fire Over Night Success
KDE Plasma 5.7.2 Released
>then they'll have learned two things

I used to do that. What would happen is people learn they _dont need_ to poke, because this sucker has all the answers on a platter, so why bother.
Ask HN: Does your company practice daily reporting?
In our company we submit our daily work at the end of the week using Excel. I am thinking to create small app for daily reporting.

Do you think community needs yet another tool to do reports?

Does your company requires daily/weekly reports?
What is VPAID? I've seen plenty of references, but never a definition.
Managing credit card declines; expiration date data
When book sales are split between multiple parties I can't imagine it's okay to get a bunch of free ones and sell them yourself, keeping 100% of the proceeds.
Les 5 commandes Linux à éviter en mode console
As a tab person, I don't line up code. Each line may decide to unindent, indent, or maintain indentation

Here's some Befunge interpreters in a few different languages: https://github.com/serprex/Befunge
Why the Herd Instinct Makes Pokémon Go a Public Menace
How much does amerikkka export?
Off-Topic: any chance you've got some literature on the subject of turning CDROM drive motors into model airplane motors? This sounds like a great hack for HN ..
Nice. I wonder if he's a climber?

https://en.wikipedia.org/wiki/Figure-eight_loop is a classic climbing knot and I guess most people would just use an overhand knot.

I usually prefer a bowline for tying in, but that's not as safe. :)
I'm not sure how useful analogies are in this case, even so I get pretty upset over a lot of popular poor quality business books (and similar) that have real impact on things.

If you want to make a comparison you can equate things to hardware where things like quality control and yield is instrumental. If you buy a plastic case that after a year self-disintegrates because while it looked the same it wasn't manufactured to spec. When this could potentially happen to every part of your device this quickly becomes annoying.

Yet, this is how software is all the time and is further worsened by a lack of due diligence and quality control. How many developers can get the time to properly verify a technology or library. Not to speak of if it's even fair to expect developers to be able to reach those conclusions.
Cannot recommend this approach. There are many people making $100k, $200k, $300k, etc, living paycheck to paycheck because they think 'accounting for personal finances is a waste of time'.
Not gonna bother to answer in detail because you are not worth the time, but you're making assumptions without actually knowing how the features work, and you're quite wrong in your assumptions.
I believe you can login direct to spotify using your fb credals.
That was sort of my point, and I didn't finish it, although the OP just said "bunches", which could be any number.

The person you're replying to indicates that 10% is 1700, and that 10% may be more representative of the high-EC and 4.0 level.

I'm not sure a few thousand folks from around the country qualifies as 'bunches'. Thinking back to my high school days, we had only a handful of people who were both academically advanced and active in many EC - sports, music, theater, etc. Partially there's just not enough time in most people's days to get 'good' at multiple things, even if there's aptitude. Secondly, not everyone can actually afford to get involves in a lot of ECs (despite aptitude/talent).

I can't think of anyone I know from my school (class of over 600, IIRC) who was all 4.0 GPA who also did multiple EC work. We had people in both camps. And I had a pretty lousy GPA, but did much better on ACT than some of the high GPA kids.
I bet more than half do. Tend to be the over achiever life.
U.S. and UK move towards automated voter registration
I didn't read it as "one simply has to earn more".

He's saying it's better to work on things that will lead to one earning more money, rather spending time monitoring how much one is spending. The first leads to an improved state, the second is just for ensuring one's state does not worsen. With one your increasing your 'cap', with the other you're just maximizing given a 'cap' (cap meaning the amount of money you can work with).
Anyone who makes a language in which the performance of a call to previously processed code depends on its original whitespace should immediately be stripped of their CS degree, if they even have one.

If some decision depends on the size of a function, that size should be measured over the parsed code: number of nodes in the abstract syntax tree or whatever. This should be obvious to everyone by around the end of their second year of school. A function isn't larger if we give it wider indentation with more spaces, or replace its local variables with ones having longer names.
Ask HN: Mobile Devs – How do you prefer to receive animations from designers?
I'd like to know the preferences of mobile developers when receiving animations mocked up in one of the various prototyping tools (i.e. Flinto, Principle, Pixate).

I'm mostly concerned with native because tools like Framer allow you to re-use code in web applications.

How do you arrive at the final values for timings, durations, springs, easing curves etc?

I've seen many different forms of animation handoff:
- Video file - dev required to guess at what's going on in the animation
- Gif - same as above
- Dev gets hands-on with the prototype - uses a mirror/viewer app to interact with the prototype but still needs to guess at what’s going on
- Spec sheets - a list of all the values for timings, durations, springs and easing curves, but difficult to use in context, difficult to put together and difficult to read.

Any others? I want to build a better way!
Ok with this it should be possible https://github.com/GianlucaGuarini/allora/pull/3
How Old School Floppy Drives Worked
Your citation is from his 2007 thoughts.

His 2014 thoughts:
No matter what language you work in, programming in a functional style provides benefits. You should do it whenever it is convenient, and you should think hard about the decision when it isn't convenient.
BT must 'put its house in order' – MPs
We do need electoral reform in the UK as well, leaving the EU is just the first step in driving towards a better democracy.
Facebook AI Research: Learning Physical Intuition of Block Towers by Example
Going public becoming an increasingly popular option for Nordic tech, up 83.33%
I think that depends partially on the verbosity of the programming language (e.g. type declarations, casting, templating) which eat up a lot of columns, and verbosity of coding style. In the latter case, if your variable names are `name_of_person' rather than simply `name' (which should be obvious by context), you're also going to have problems.

The first one might be a legitimate issue. The second issue, I've noticed, I've never had a problem with, even in heavily indented lisp:

- If your variable names are too long, they must not be obvious from context, and your function/method/block is doing too much. Refactor.

- Consequently, if the line is too long, perhaps it's doing a little too much; short lines with limited logic help with code comprehension the same way short methods do. Splitting code into multiple lines generously allows you to clearly indicate how parts relate to one-another.

My line width is 76 characters max to allow for 3 columns for line numbering + one space after it---if line numbering requires more columns that that, maybe your file's too big as well. Some will disagree on that last point, but I consider that in the same light as I do line length and function size. For OOP especially where there's one class per file, it's certainly a code smell if you have a long file.
API Bootstrapping

What if you could slap something like Caddy in front of any API and provide authentication, analytics even billing out of the box.

- Rate limiting
- Billing
- Authentication and Authorization using OAuth or JWT
- Analytics/Metrics
- Geo Location
- TLS
- HTTP2?
- Image optimization
- Content minification
- Gzip
- Signaling Slack/Push/SMS
- Caching through cloud storage S3, BlackBlaze B2
- PostgREST
Related: Here is a really good blog post by John Carmack after forcing himself to code functionally in C++ for a month:

http://www.gamasutra.com/view/news/169296/Indepth_Functional...

Some really choice quotes in there.
Be careful with those --- the cable is lying to the phone about whether the thing you've plugged it into is a fast charger or not, so if it's not, you can end up drawing way more current than it's rated for.

A well designed USB charger will just shut down if this happens. A non well designed USB charger is another matter.
If the word privilege has a one to one correspondence to the word success, as in high profits and wages, then maybe the people who use the word privilege are asking the wrong questions.

Maybe they should be asking why growth and wages are non-existent in areas outside of the tech industry.

I mean if you had a solution to that it would lift all boats, right?

Otherwise it just looks like the politics of envy to me and that just leaves a sour taste in people's mouths.

I don't think this form of politics can even begin to work because frankly the profits of the tech industry are not high enough to help everybody suffering in this wage stagnation most people are affected by.

To be perfectly honest when I hear the word 'privilege' it is difficult not to notice it nearly always coming from people who are only slightly less fortunate, if that is the right word, than tech sector employees.

The hard truth is that the computer industry (and a small number of other industries, like fracking or solar) is just an oasis of success/privilege, call it what you will, in an ocean of misery and diminished expectations.

This isn't the fault of geeks or venture capitalists. It is a much bigger systemic problem that even generous distribution of wealth cannot solve for.
On second thought, I've added a PDF to the bottom of the post which contains a detailed guide on how to create a schedule.

Kind of wish I added this initially, but live and learn!
Ask HN: Typical work hours
As an engineer in the US what is a typical work day? Mine is 9 hours including an hour unpaid lunch. Is that normal or are there people that really get to work at 9 and leave at 5?
In any large school that has been running for years, there are bound to be a few students out there who had poor experiences. On the whole I've heard good things about people's experiences with this one.
Surprised noone mentioned Vision Zero.

Vision Zero is a multi-national road traffic safety project that aims to achieve a highway system with no fatalities or serious injuries in road traffic. It started in Sweden and was approved by their parliament in October 1997 [1]

In every situation a person might fail - the road system should not. [2]

[1] https://en.wikipedia.org/wiki/Vision_Zero
[2] http://www.visionzeroinitiative.com/
I don't think you are taking in the account of how much better tech companies are getting at extracting value out of the economy. Transportation costs will plummet but price( for services) will probably need to stay near the same to boost up the 40% profit margins tech companies need.
Tip #1 seems to be a brilliant way to get shouted at @ Stack Overflow...
Another technique might be to randomly destroy sectors on the back of the floppy disk, e.g., using a laser. Then format the back of the disk, and record the locations containing errors, and store these locations on the front side of the disk.