I agree that this is a good technique, especially because it allows you to easily add validation functions later, if needed.
Another technique that I have been using is contracts. Contracts can be a great way to get the same functionality as assertions but with less boilerplate. You apply...
I used to work on a retail-based ERP system that had to support discounts based on promotion codes at checkout. The problem was that the business logic for these promo codes were constantly changing (e.g. if the customer checks out with a Coogi item on the 3rd Wednesday of the month, give them a...
England? Are you Fing kidding me? Yeah, maybe they don't have something like the NSA but they want to filter the Internet at the ISP in the name of the 'children'... As for the other countries on your list, they are all nanny states as well.
If you don't consent to a voluntary search, they will probably bring in a K9 unit and have a dog sniff your car. Then, they pretend the dog made a signal indicating something is inside, giving them probable cause to do the search anyways.
Sounds like an EPIC fail on the part of law enforcement. How the hell does a guy who has exhibited bizarre and threatening behavior such as beating a dog with a pipe and shooting at the neighbors and their kids not end up in custody immediately??
Oh excuse me sir, you shot at this family over...
No, issues with generics do not just come up for people writing an PhD. I was working on a project at my previous job where we had to use Java and an issue with generics came up very quickly.
How popular a language is has nothing to do with whether or not it is a good language. In fact, I...
If we are talking about devops/system administration, it looks like Ruby may be winning over Python, at least according to this: http://devopsanywhere.blogspot.com/2011/09/how-ruby-is-beating-python-in-battle.html
Scripting: Perl and Python (I put both for scripting. Python has clean syntax and it is easier to get up and running with it, but Perl can be extremely powerful if used properly and Modern Perl with things like Moose have cleared up a lot of things missing from Perl 5).
Compiled: C# or Go
Java...
Why hasn't Silk Road succumbed to this 'deflationary spiral'? According to your theory, people won't buy weed on Silk Road because next week the weed will be cheaper. Yet Silk Road is still doing millions in business a month.
BTW, Bitcoin is open source. You can fork it anytime and make your...
It may not be worth it for every business. But some businesses believe that it was worth it for them to start using bit-pay. In fact, bit-pay's client base is growing. However, as I admitted above, Bitcoin is not really a 'currency' yet because of the hassle and fees for consumers to acquire...
True, there could be fraudulent sellers but I don't think chargebacks are a solution. They leave the merchant at the whim of the credit card companies that can close their merchant account if they get too many chargebacks that are out of their control. Also, for virtual services and goods like...
Ever heard of http://bit-pay.com? It's a site that has merchant accounts that allow you to accept Bitcoin and sell them instantly for USD. The USD then gets deposited into your bank account. Therefore, there is no risk for the merchant. Of course there is a fee for this, but it's less than the...
http://arstechnica.com/tech-policy/2012/07/bitcoin-price-soars-above-9-for-the-first-time-in-almost-a-year/
'Official' bitcoin site: http://bitcoin.org
It looks like Bitcoin is back stronger than ever. The price is now even higher than when this article was posted, going between the low...
I've seen some motorcyclists go the speed limit, but it is quite rare. All the other ones I've seen are going at least 10+ MPH over the speed limit on the freeway, and 10-20+ MPH over the speed limit on surface streets. I know this is anecdotal but anyone else notice this?
Marriage laws are insane. Anyone watch John Cleese's Alimony Tour?
Two of my uncles got divorced. Not only did their ex-wives get half their assets (plus the house), but they got alimony. One of my (ex?) aunts is on lifetime alimony I believe. My uncles ended up living in apartments. Who knows...
To some extent I agree with what you are saying. That's why I think it is best to combine programming skills with some other discipline like business or biology (bioinformatics).
I called 911 recently because I saw a man falling down in the street. Everyone else just drove by without a care in the world. A lot of people realize that being a 'good sumaritan' has potential liability with 0 reward. I didn't get anything for calling 911 for that guy in the street, but I...
Can someone give a single good reason why religious faith and claims of being in contact with supernatural beings are not considered to be mental illnesses?
The best that can be done now is a shutdown and dismantling of the federal government. Sell off everything. Furniture stores do it all the time, it's not a big deal.
So this must apply to the filthy rich members of Congress and the Senate. And the conclusion of the article (if it is to be consistent) is that we must take money from people who don't care about other people and give it to other people who also don't care about other people. Brilliant.
Where did I say anything about default? I agree 100% with Greenspan. The government & Fed will just print the money, just like Germany did Post World War II.
Bump in light of recent news. Greenspan now says the U.S. can't default because it can print money: http://www.cnbc.com/id/44051683. No, that's not The Onion!
+1 on that. The patent system is a complete joke. It never helped the little guy protect himself from the big guys, it was always about the big guys suing the little guys who were innovating.
Moody's is independent when they have sustained the AAA rating in spite of trillions of unfunded liabilities being known about for decades? BWAHAHAHA. That's like giving a deadbeat crackwhore an 800 credit score.
Floating homes sound like a good place to be when the shit hits the fan after...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.