News for hackers. Stuff that matters.
Re:Show HN: Exploring the US Budget, 1962-2019 by chrismealy on Sunday September 14, 2014 @06:41PM (#8316496)
The government really is an insurance company with an army.
Re:Show HN: Exploring the US Budget, 1962-2019 by gobengo on Monday September 15, 2014 @01:20AM (#8317401)
When you think about it, that's not a bad definition of government in < 140 chars.
Re:Show HN: Exploring the US Budget, 1962-2019 by chrismealy on Monday September 15, 2014 @12:23PM (#8319752)
Re:Show HN: Exploring the US Budget, 1962-2019 by Agathos on Sunday September 14, 2014 @09:50PM (#8316906)
My impulsive response would be that no insurance company would be stupid enough to sign up for such a certain loss. But then again, AIG.
Re:Show HN: Exploring the US Budget, 1962-2019 by dredmorbius on Sunday September 14, 2014 @09:06PM (#8316826)
I like this.

First response: I'd prefer the total spending was more clearly highlighted (larger font and/or to the side).

Inflation-adjusted or percent of total GDP would also be useful.

The detail pop-ups are pretty sweet. A little hard to navigate (somewhat a property of space available). Maybe give them more of the window -- if someone's looking at the detail show them the detail and allocate display space to it.

Re:Show HN: Exploring the US Budget, 1962-2019 by anonymoushn on Sunday September 14, 2014 @03:10PM (#8315950)
How does the national debt increase from $5,656,270,901,633.43 to $5,674,178,209,886.86 during a year with a $200,000,000,000 surplus?
Re:Show HN: Exploring the US Budget, 1962-2019 by dripton on Sunday September 14, 2014 @03:25PM (#8315993)
It wasn't a real on-budget surplus. It was only a surplus if you took the revenue from Social Security tax and ignored the obligation to later pay Social Security with it.
Re:Show HN: Exploring the US Budget, 1962-2019 by nni on Sunday September 14, 2014 @03:33PM (#8316011)
Hey dripton - curious what your thoughts are on this: http://www.factcheck.org/2008/02/the-budget-and-deficit-unde...

I think that this gets into what the deal might have been with respect to whether you count the social security tax or not. I think that they conclude there is a "surplus" either way, although it is of course smaller. However, you might be referring to something else.

Re:Show HN: Exploring the US Budget, 1962-2019 by AnthonyMouse on Sunday September 14, 2014 @09:52PM (#8316912)
That seems to be saying that accounting for social security would eliminate ~99% of the surplus. But what about medicare and the like?
Re:Show HN: Exploring the US Budget, 1962-2019 by judk on Sunday September 14, 2014 @11:05PM (#8317096)
SS benefits are paid from current taxes. There is no Social Security Lock Box, its was a metaphor.
Re:Show HN: Exploring the US Budget, 1962-2019 by nni on Sunday September 14, 2014 @03:17PM (#8315969)
I assume you are referring to 2000. I am very much a newbie in this stuff, but think that the "story" from the OMB outlays/receipts data (which is what this is based on) is only part of the story. For example, I read somewhere that some were arguing that this "surplus" in that period was not a good thing in some respects. There's a lot to learn.
Re:Show HN: Exploring the US Budget, 1962-2019 by Aloha on Sunday September 14, 2014 @06:53PM (#8316522)
This would be more helpful is it was indexed to inflation, the numbers are quite misleading otherwise.
Re:Show HN: Exploring the US Budget, 1962-2019 by dmix on Sunday September 14, 2014 @03:50PM (#8316059)
Did some math for fun:

DoD 2000-2014 = $282 billion to $587 billion = 2.08x increase over 14 years.

Total 2000-2004 = $1.79 trillion to $3.65 trillion = 2.03x increase.

So since 9/11 DoD seems to be expanding at the rate of total government expansion, which is pretty rapid. Compared to the 14 years before that from 1985-1999.

DoD 1985-1999 = $246 billion to $262 billion = 1.065x increase over 14 years

Total 1985-1999 = $946 billion to $1.7 trillion = 1.7x increase

So the total government is growing at a similar rate, but DoD exploded in size in the last 14 years.

Re:Show HN: Exploring the US Budget, 1962-2019 by Retric on Sunday September 14, 2014 @04:20PM (#8316127)
Unfortunatly the US budget is intentionally misleading in a wide number of ways.

For example there is a lot of DoD spending that's not included in those numbers. Such as veterains affairs. Also, those numbers don't take into account inflation or the current GDP.

Re:Show HN: Exploring the US Budget, 1962-2019 by frogpelt on Sunday September 14, 2014 @04:43PM (#8316179)
They split it up by discretionary and mandatory.

Supporting veterans or paying government employees' promised pensions is considered mandatory. Buying 12 new aircraft carriers is not mandatory.

Re:Show HN: Exploring the US Budget, 1962-2019 by AnthonyMouse on Sunday September 14, 2014 @09:56PM (#8316929)
> They split it up by discretionary and mandatory.

Which has always been a bit of a lie for political expediency. Most of the "mandatory" expenditures aren't actually fixed amounts. For example, changing the retirement age or what benefits government health plans provide will directly impact "mandatory" spending.

Re:Show HN: Exploring the US Budget, 1962-2019 by refurb on Sunday September 14, 2014 @04:02PM (#8316085)
It all depends on the time period you measure across.

1985 was near the peak of the Reagan cold war build up. No surprise the budget didn't grow between then and 1999.

Re:Show HN: Exploring the US Budget, 1962-2019 by wdr1 on Sunday September 14, 2014 @10:38PM (#8317017)
Beautiful visualization! I really like it.

Only semi-related, but something I've always wondered: Like a lot of other sources, this graph shows us running surplus in '98 & '99.

At the same time, the federal debt increased in those years:

http://www.treasurydirect.gov/govt/reports/pd/histdebt/histd...

Can anyone explain why?

Re:Show HN: Exploring the US Budget, 1962-2019 by joshuaheard on Monday September 15, 2014 @12:15AM (#8317245)
Without looking at the issue, I can say that the "deficit" and "surplus" are for the budget. Actual spending may differ, which may explain the rise of the debt.
Re:Show HN: Exploring the US Budget, 1962-2019 by MaysonL on Monday September 15, 2014 @03:17AM (#8317626)
"Debt" includes the Treasury securities held by Social Security and Medicare trust funds, I believe.
Re:Show HN: Exploring the US Budget, 1962-2019 by frogpelt on Sunday September 14, 2014 @04:44PM (#8316182)
The projections show the deficit being almost equal to the debt service payments in 2017-2019. There's a lesson about debt in there somewhere.
Re:Show HN: Exploring the US Budget, 1962-2019 by imaginenore on Sunday September 14, 2014 @05:10PM (#8316245)
Inflation-adjusted version would be useful.
Re:Show HN: Exploring the US Budget, 1962-2019 by pdeuchler on Sunday September 14, 2014 @05:31PM (#8316300)
But would also be difficult, and introduce a political element to it
Re:Show HN: Exploring the US Budget, 1962-2019 by seanmcdirmid on Sunday September 14, 2014 @07:34PM (#8316614)
Uhm, no. Inflation is a given; these numbers aren't very useful without adjusting for inflation and population and/or GDP growth.
Re:Show HN: Exploring the US Budget, 1962-2019 by sokoloff on Sunday September 14, 2014 @07:39PM (#8316630)
Inflation itself is a fact. The exact amount of inflation in any given time period is subject to differing points of view.

The choice of "which inflation measure" can be viewed as a political choice because it could be carefully chosen to tell the story you prefer. (choice A might yield "Look how much worse measure X was during party Y's tenure" which choice B could tell an even-handed or even opposing story)

Re:Show HN: Exploring the US Budget, 1962-2019 by seanmcdirmid on Sunday September 14, 2014 @08:53PM (#8316789)
We have had and do have independent agencies to measure inflation. But if you wish, we also measure GDP which is an absolute number. Here is the budget with respect to GDP:

http://en.wikipedia.org/wiki/File:Total_Revenues_and_Outlays...

We start out with outlays at under 16% GDP in 1970, and go all the way up to 20% in 2014, with a spike up to 24% during the last crisis. Not surprising, shocking, or daramatic at all. This is better than even the inflation adjusted numbers; e.g.

http://www.glencoe.com/sec/socialstudies/economics/econprinc...

Well, W2, we spent a lot of money then, but even still, federal spending by 2000 was 8X that of spending in 1940. Why is that? Well, population growth obviously, higher expectations as another.

By going with ABSOLUTE numbers with no context on population, inflation, and GDP...that's very biased.

Edit: the charts are still useful, if you look at them only for relatively distribution of spending. They don't convey how spending compares to the overall economy, however.

Re:Show HN: Exploring the US Budget, 1962-2019 by AnthonyMouse on Sunday September 14, 2014 @10:08PM (#8316952)
> But if you wish, we also measure GDP which is an absolute number.

Of course, using GDP rather than inflation is also a political choice because GDP has on average increased more than inflation.

Also, comparing the government budget with GDP will never show more than a modest increase because a "large" increase (e.g. quadrupling the government budget as a percentage of GDP) would require the government to be consuming in excess of 100% of GDP.

On the other hand, if compared with inflation there is an exponential increase in the federal budget over time. For example, the 1962 budget of $107B would be $884B in 2014 dollars (using CPI) but the 2014 budget is $3650B, which exceeds the real 1962 GDP.

Re:Show HN: Exploring the US Budget, 1962-2019 by seanmcdirmid on Monday September 15, 2014 @12:29AM (#8317280)
It definitely does show large increases during the depression (when the economy shrank) and during WII, when we went all out into war. Fluctuations since then have been quite boring.
Re:Show HN: Exploring the US Budget, 1962-2019 by JamesBarney on Sunday September 14, 2014 @09:02PM (#8316804)
The standard choice is the CPI or core CPI data compiled by the BLS. You can also use the billion price index for the more conspiracy oriented but they give you essentially the same number. I don't know of any measures of inflation that are wildly off the standard official estimates of CPI or core CPI. Choosing to not index has just as many political ramification as choosing to index it.
Re:Show HN: Exploring the US Budget, 1962-2019 by dredmorbius on Sunday September 14, 2014 @09:05PM (#8316812)
Yes. Or (as suggested below) spending as percentage of GDP.
Re:Show HN: Exploring the US Budget, 1962-2019 by pandatigox on Sunday September 14, 2014 @10:49PM (#8317048)
Really nice visualization - helps to put things in perspective. Interesting how 2009 shows a US deficit in the trillions.
Re:Show HN: Exploring the US Budget, 1962-2019 by rando289 on Sunday September 14, 2014 @06:28PM (#8316452)
Over time comparisons should be inflation adjusted, and optionally adjusted by total population or gdb.
Re:Show HN: Exploring the US Budget, 1962-2019 by b2themax on Sunday September 14, 2014 @04:26PM (#8316140)
Good job, great visuals make it easy to understand the numbers.
Re:Show HN: Exploring the US Budget, 1962-2019 by pdeuchler on Sunday September 14, 2014 @05:31PM (#8316302)
Is this on github/bitbucket/google code or am I going to have to dig around the JS to mess around with it?

Regardless, pretty cool.

Re:Show HN: Exploring the US Budget, 1962-2019 by sheetjs on Sunday September 14, 2014 @05:46PM (#8316334)
Your possibilities aren't mutually exclusive: There are many unminified javascript files floating around that are not OSS.

> Is this OSS

Unless the author releases it under an open source license, the answer is no

> am I going to have to dig around minified JS to mess around with it?

The unminified source is available at http://learnforeverlearn.com/usbudget/dist/usbudget.js

The source data is available at http://www.whitehouse.gov/omb/budget/supplemental (note that XLS files are the normative versions)

Re:Show HN: Exploring the US Budget, 1962-2019 by pdeuchler on Sunday September 14, 2014 @05:49PM (#8316343)
Edited comment to change tone and clarify what I was asking
Re:Show HN: Exploring the US Budget, 1962-2019 by judk on Sunday September 14, 2014 @11:10PM (#8317107)
Sigh, another fancy site that doesn't work on mobile, but could be presented with simple divs/tables or even ASCII art.
Re:Show HN: Exploring the US Budget, 1962-2019 by nni on Monday September 15, 2014 @07:41PM (#8322230)
judk - not sure if you're checking back, but wondering what device you are using. It has some responsive design stuff that should let it be usable on an iPhone in portrait (it just shows the two main bars). Small screen landscape is another issue.