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...
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.