Better HN
topnewbestaskshowjobs
Log inSign up

vectorpush

2,683 karma · joined Jun 23, 2011 (15y ago) · 778 submissions

Submissions

comment 11y ago · link · parent

> He didn't follow any pattern for what code was in which directory, and he reused class names so grep didn't work. Now where is that source file again?

http://www.php-fig.org/psr/psr-4/

comment 11y ago · link · parent

I'm not really sure there is much of a difference between the two beyond routing (which the framework handles just like in all the other popular imperative scripting languages), in fact if anything I'd say PHP is more aligned with the "web app" paradigm since the canonical run-times are all intended to be paired up with an HTTP server, as opposed to most others which were designed as general purpose scripting languages. I don't think it makes much of a difference though.

comment 11y ago · link · parent

Wow, I'm surprised this actually happened. I haven't been watching developments lately but it seemed like a pipe-dream when I first heard rumblings of the idea. Congrats to everyone involved.

comment 11y ago · link · parent

> First, in terms of raw energy, I'm pretty sure finance has bitcoin beat.

This is a painfully disingenuous response. It's obvious that the system servicing billions of people and businesses around the world would dwarf the energy tab of a system that services a relative handful of niche users. Why even bother with such a clearly flawed comparison?

> The cost of all the energy used will tend towards the price of the subsidy+fees, and the subsidy is being phased out. In a few decades the subsidy will be almost gone.

Yes, the subsidy will drop but the energy costs will continue to rise and the fees will obviously have to rise to compensate for the absence of subsidies (otherwise the miners will be losing money).

> If bitcoin completely replaced finance, would it really use more energy than saved by finance stopping?

Finance will never "stop". Demand for consumer financial services (like banks, loans, credit & debit cards, etc) would remain pretty much the same, even with bitcoin at the core of finance. The cost of "mining" dollars is negligible compared to the ancillary financial services that people actually care about, so replacing dollars with bitcoin simply adds the extra energy of bitcoin mining into the mix. If bitcoin were cheaper than the legacy system, then why is it that all bitcoin companies prefer to use "offchain transactions" (aka non-bitcoin transactions) whenever possible? The answer is that the blockchain is incredibly inefficient compared to the legacy financial system. Payment gateways like bitpay that have no choice but to interact with the blockchain have spent lots of money building trusted node networks in order to roll their own double-spend detection heuristics because relying on bitcoin's inherent security is too slow for the needs of an actual business. The only problem bitcoin solves is "decentralized" which isn't a problem for most people.

comment 11y ago · link · parent

> It seems like a waste to people who don't understand systems of incentives,

The implication that bitcoin critics are simply incapable of understanding bitcoin's "system of incentives" is laughably condescending as well as totally inaccurate.

> but it is a small and insignificant price to pay for more ideal money.

I don't think "decentralized" necessarily translates to "more ideal". Certainly, it's not ideal for most people given all the other drawbacks that come with bitcoin (difficult to spend, difficult to secure, subject to price fluctuations, subject to privacy concerns, vulnerable to critical mistakes like sending money to the wrong address or losing a wallet in a hard-drive crash). Bitcoin is only "more ideal" if you want to perform transactions outside the legacy system; a real use-case, but not a very popular one.

comment 11y ago · link · parent

Minus the cost of marketing, distribution, product engineering, customer support, security engineering and lawyers (e.g. for dealing with the legal and security implications of managing customer wallets).

Additionally, I estimate that it's much more pragmatic for 21 to build a centralized ASIC farm at a location where power is relatively cheap with predictable costs as opposed to a geographically distributed ASIC network that will be subject to regional utility price variance.

Why bother with all that when you could literally just mint money at your leisure?

comment 11y ago · link · parent

Then why wouldn't 21 just run the ASICs themselves and take 100% of the returns?

comment 11y ago · link · parent

Why would anyone agree to pay for 100% of the power consumption for an ASIC that only offers 25% of the returns? Consumers may not know anything about crypto-currencies but they understand basic math.

When consumers are offered 5 dollars worth of bitcoin as compensation for a 20 dollar increase on their power bill they'll simply conclude "i guess that bitcoin thing really is a scam"

comment 11y ago · link · parent

I think we see so much churn in JavaScript because we've forced the weight of the entire client side web onto the back of a single language. JavaScript must satiate the technical needs of all organizations across every consumer facing device and operating system. Like all languages, JavaScript has its weaknesses, so its not surprising that we find JavaScript to be a less than optimal solution for certain types of problems, but since JavaScript is generally the only option available for scripting logic in the browser, it's pretty natural that we see an explosion of libraries and frameworks to compensate for the fact that the JavaScript hammer is the only tool that exists in the client web universe.

comment 11y ago · link · parent

The findings of this study have been formally retracted by the author.

http://www.eis.mdx.ac.uk/staffpages/r_bornat/papers/camel_hu...

comment 11y ago · link · parent

> Setting the threshold sufficiently high (e.g. 3/4 or 4/5) preserves the implicit intention that the bar not show up every time some schmuck we've heard about kicks the bucket...

When you frame it like that it makes me think the black bar should be done away with altogether.

comment 11y ago · link · parent

Unlike most other drugs, alcohol intoxication greatly increases the likelihood that you will consume more alcohol, thus leading to a compounding cycle that can very quickly lead to an unintentional "massive loss of control". Unintentionally consuming more than a "normal dose" is perhaps the quintessential regret of habitual alcohol users.

comment 11y ago · link · parent

pragmatic and in the hacker spirit, but I'm guessing that the message is more important to the GP than actually using the software.

comment 11y ago · link · parent

I feel like it's tough to transpose the mindset of 1995 into the zeitgeist of 2015. The average citizen of 1995 was a lot less sensitive to the every day minutia of disparate civil rights flashpoints that culminate to create the picture we have of civil rights today. There is also a lot more deliberately controversial political content produced by today's media which sets up an environment where there's something of an implicit expectation that everyone will or should have a "stance" on every political issue. The world of 2015 is one where every average citizen has their own set of pet grievances that are wont to implicate the government in a violation of civil rights.

Can you imagine how the citizens of 1995 would have reacted to a Snowden of the time? It'd be a complete non-event.

comment 11y ago · link · parent

> we are frogs who think the water is just fine.

And just like actual frogs that are slowly heated, we will almost certainly jump out of the water if the pot approaches a boil. The apathy stems from the fact that the water is just fine for most citizens; the frogs who are subject to this abuse reside in a completely different pot than the one that most citizens enjoy. I'm not saying I condone surveillance abuse or drug war policies, but the reality is that while your average citizen may be alarmed by the presence of a hot stove, they just can't be bothered to revolt for the sake of an adjacent pot full of drug dealers.

comment 11y ago · link · parent

I'm with you on Dr.Taylor and the PyCon guy, but IMO, Brad Wardell is clearly an example of someone who created a hostile work environment for women, even if he doesn't fit the dictionary definition of sexist. The sexual harassment lawsuit and his counter-suit were both settled out of court, but reading the e-mail exchanges between himself and his employee shows that Wardell was nothing short of a creep.

comment 11y ago · link · parent

Agreed. The tech community is rabidly hypercritical and even those considered part of the "typical" programmer demographic are often met with biting vitriol when publishing code or projects that the community views as bad, poor form, too ambitious or reinventing the wheel. That type of hostility will really intimidate novices, especially if they already feel like an outsider. I think it's a positive step to encourage the less represented demographics because it says "we see you, and there is a place for you, even if you're just taking baby steps"

comment 11y ago · link · parent

> I'm not embroiled in the PHP-world, so I don't know how many alternate PHP runtimes exist, but I presume that the default PHP runtime itself was being referenced.

So are you talking about the default PHP 4 runtime or the default PHP 5.3 runtime or the default PHP 5.4 runtime etc? These versions are very different beasts, so levying a vague "memory leak" criticism at PHP without substantiating it via code or even a version makes the criticism pretty meaningless.

> I think that equating bugs in the runtime with bugs in the language is something that happens even if technically they are separate things.

I asked for clarification because I was unsure what you were referring to. For example, about a month ago I was tasked with debugging a memory leak in a legacy Ruby application where I eventually discovered that the developer had used a proc in such a way that it prevented the GC from freeing variables that had been referenced in the closure. It was an issue somewhat similar to the examples described in this blog post:

http://victorarias.com.br/2013/08/13/leaky-ruby.html

I wouldn't attribute this memory leak to the Ruby langauge but more to a Ruby idiom that developers should take care to avoid. That's the type of clarification I'm looking for, but it appears that you don't really have anything to offer the discussion in this regard.

> And your comment seems needlessly defensive. I made a comment about general sentiment that I've gotten from people that have actual working knowledge of large-scale PHP deployments. I'm sorry that in the middle of the conversation I didn't start immediately interrogating these people asking why they haven't filed bug reports if there are memory leaks.

I have no emotions tied up in this discussion, I'm trying to make a point that your criticism is just anecdotal hearsay without any way for someone to verify if what you're saying is actually true. I didn't suggest that you ask your colleagues to file bug reports, I was simply pressing you for more details since your vague anecdote runs counter to my own experiences with PHP as I relate it to the rest of the imperative scripting landscape.

> Also, is it devoid of substance if I'm basically stating that I've talked to people "in the trenches" (and presumably know what they are talking about) who don't have the opinion that PHP is some beautiful, but misunderstood language that gets a bad rap

Yes, that is pretty much the definition of "devoid of substance". "In the trenches" is a subjective description that doesn't mean anything. You presume they know what they're talking about, but maybe they actually don't, but we'll never know either way because all you've done is recount nebulous secondhand generalizations. You're not even asking me to take your word for it, you're asking me to take your word for their word. Can't you see why that's a little dubious?

comment 11y ago · link · parent

> I've talked to people doing large-scale deployments in PHP that complain about things like memory-leaks, etc in the language

What does it mean for a language to have memory leaks? Are you talking about a problem specific to the PHP runtime or common PHP idioms that lead to leaky code? A specific example would be helpful as I've never known PHP to be particularly vulnerable to memory-leak bugs (at least not any more than any of the other popular imperative scripting languages).

Also, what's the substance behind the "etc" in your comment? I'm not really sure what naturally follows in the sequence of "memory-leaks and so on...."

Your comment seems to simply cast doubt without much substance.

comment 11y ago · link · parent

> I do think a digital currency will be the eventual dominant payment system.

Government issued money already falls under the category of "digital currency" as far as most people are concerned. I doubt that blockchain based currencies will ever see mainstream adoption because the only thing they bring to the table is decentralization; a feature that the overwhelming majority of people will never need.

I'll concede that decentralization is probably a desirable trait, and if decentralization came free with the switch to bitcoin, I think there would be a compelling reason to expect that bitcoin would eventually see wide adoption, but decentralization is not free, it's extremely expensive, and once miner subsidies disappear and the true price of securing the network becomes an upfront cost to general users, nobody will even consider using bitcoin except in situations where decentralization provides tangible benefits (i.e. for incognito transactions).

There will always be individuals who want to perform digital transactions outside of the traditional system, so cryptomoney will probably always be with us, but barring the unforeseeable, there just isn't any reason for its usage to grow much beyond the current niche.

comment 11y ago · link · parent

And unique to HN is the constant need to chide reddit in a condescending effort to appear superior, as if to suggest that the quality of discussion on this site is substantially superior to reddit. Unfortunately, short of the front-page subreddits, it's really not much different. Hell, on any given day, the discussions in /r/programming are much more in the spirit of "hacker news" than half of the stuff that gets voted to the top of HN.

comment 11y ago · link · parent

> Then how would you explain this irrational aggression in every Bitcoin thread?

I don't consider downvotes aggression. I don't consider skepticism or even a general dislike of bitcoin to be aggression either. As far as the the discussion goes, bitcoin discourse is no more aggressive than any other technical topic on this forum.

> Neither waterlesscloud nor me wrote or implied anything like that.

A direct quote from waterlesscloud: >There's some truly transformative tech at the core of Bitcoin.

waterlesscloud is only one example: ctr+f "revolutionary" or "early internet" in this thread for others. It's not a strawman because I'm not making an argument, I'm giving you examples of enthusiast rhetoric that turns people off; it's not "something stupid that someone else once said", it's a category of condescending platitudes commonly laid out by bitcoin enthusiasts.

> presenting an actual argument versus my "intellectually insulting" idea that Bitcoin might touch on some mammalian "fear of change"

My point is that painting bitcoin skeptics as irrational people who can't help but lash out due to a subconscious fear of what bitcoin might mean for world economics is insulting and also subtly pushes the narrative that bitcoin is such a clearly amazing technology that it would be reasonable to ascribe fear of bitcoin's success as a motivator for negative reactions to bitcoin. It's absurd.

comment 11y ago · link · parent

Ugh. This kind of arrogance is a significant contributing factor to the contentiousness of bitcoin discussion. Nobody is fearful of bitcoin, especially not with regard to the idea that bitcoin will somehow replace fiat money and "devalue my pension fund". It's intellectually insulting and it goads skeptics into sarcastic and unproductive debate.

When enthusiastic bitcoin supporters parade around this kind of nonsense while simultaneously heaping on volumes of nebulous praise like "transformative", "revolutionary", "world-changing", likening bitcoin to the early internet, claiming it will stop wars, stop corruption, free the people and all the rest, it really puts up red flags for a lot of people.

comment 11y ago · link · parent

> Securing Bitcoin is a solved problem.

Trezor has solved Bitcoin's security problems in the same way that PGP has solved internet messaging security; that is, amazing technology exists that addresses real problems, but in practice the problems are still prominent. Security is a major problem for the internet, and a much bigger problem for bitcoin since the incumbent system provides nearly identical services with a substantially smaller risk of losing real money.

comment 11y ago · link · parent

> All systems that require adoption are, initially, impractical.

I agree with that. It seems we agree that bitcoin is currently impractical, which is the crux of my argument. Bitcoin is not a practical way to send money unless the recipient already has a bank account and a bitcoin exchange account.

comment 11y ago · link · parent

> The KYC system is the exchange's, not bitcoin's

This is obvious. What is your point? Nobody is arguing that KYC is a requirement of bitcoin. Let me break down exactly what I'm saying:

1. For the vast majority of people, bitcoin is impractical as a method of payment for every day needs.

2. As a result of this, most people don't want bitcoins, and instead prefer legal tender that is usable wherever they might need to spend it.

3. The most practical and least stressful method for converting bitcoins into legal tender is through an exchange.

4. Exchanges have KYC procedures.

Very simple.

comment 11y ago · link · parent

> One can deduce from the context that a passport is required to use bitcoin.

You deduced incorrectly. I'm saying that if the KYC system flags the recipient, for whatever reason, then they will likely be required to produce a passport.

comment 11y ago · link · parent

What you call "FUD", the rest of the world calls "reality". Bitcoin is currently impractical as money, that's just a fact. The few businesses that accept bitcoin aren't even close to enough to make bitcoin practical for every day needs.

comment 11y ago · link · parent

> You brought up having to present a passport as if it were a requirement to using bitcoin

I'm not sure how you read, "a passport is required to use bitcoin" from "I've never had a bank ask me for a passport when opening a bank account". My point, which I substantiated with those /r/bitcoin posts, is that it's not unusual for a bitcoin exchange to ask for a copy of a customer's passport as part of their KYC procedures.

comment 11y ago · link · parent

Fair enough. Credit cards offer decent but limited consumer protections; bitcoins offer none.
1
91011
26