|
Terrence Dorsey wrote: Using a boolean is an antipattern
It's only an anti-pattern if you cocked up the design stage and didn't think it through properly.
Terrence Dorsey wrote: From this experience, in the future, I’ll never use a Boolean field again, and always start with an Enum
Seriously? You committed that statement to a blog post that will haunt you for the rest of your career?
Using a boolean is not an anti-pattern unless it was the wrong choice in the first place.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
The problem here is with this:
I needed to keep track of whether someone has paid or not, so I started modeling that field as a simple boolean value, HasPaid.
He should have realized from the get-go, by simply thinking of use-cases in his head, that a boolean would not be appropriate. But so often, I find that people don't think of use-cases as their coding, and then they blame someone / something else for the eventual problem that they get into. And hence we have refactoring, which is another word for "Doh!"
The problem isn't with booleans, it's with the programmer!
Marc
|
|
|
|
|
What we are going to do in this post is take a whistle stop tour of getting MonoGame up and running along with a simple demo in F#. Over the last few days I have been building an F# project template for MonoDevelop, this post will also how to get that installed too. An interesting series of posts to follow if you're interested in cross-platform functional programming.
|
|
|
|
|
In this post I will demonstrate how to parse and calculate an arithmetic expression a general-purpose parser. When we’re done, we’ll be able to handle expressions such as 1 + 2 * -(-3+2)/5.6 + 3, and hopefully you’ll have gained the tools to handle much more. My motivation is to provide a simple and fun lesson in parsing and formal grammars, as well as to show-case PlyPlus, a parser interface I’ve been working on-and-off on for the past few years. Can you subtract a few lines more?
|
|
|
|
|
This particular post is about getting everyone up to speed about what Hadoop is at a high level. Big data is a technology that manages voluminous amount of unstructured and semi-structured data. Due to its size and semi-structured nature, it is inappropriate for relational databases for analysis. Big data is generally in the petabytes and exabytes of data. However, it is not just about the total size of data (volume). It is also about the velocity (how rapidly is the data arriving). What is the structure? Does it have variations? Map, shuffle, reduce... repeat.
|
|
|
|
|
The command pattern is a behavioral design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time. I adore this pattern. If this pattern had a paypal account, I would donate it money on a regular basis. Learn it. Know it. Live it.
|
|
|
|
|
A language for both the beginner and the experienced programmer, Turbo Basic's integrated design permits quick program turnaround without sacrificing the powerful features professional programmers demand. It is compatible with IBM's Advanced BASIC (commonly referred to as BASICA) interpreter version 3.00 and Microsoft's GW BASIC TN (with minor exceptions because these are interpreters), and contains many extensions. Some assembly required.
|
|
|
|
|
When you are an experienced computer user and use a mouse you don’t notice the mouse. Rather you just think about moving the cursor on the screen. The mouse withdraws. However if your cable comes lose you suddenly see the mouse as the mouse. It’s operational failure lets you encounter it anew. Good design shouldn’t call attention to itself but should withdraw the way a mouse does. It becomes an extension of yourself. If it isn’t withdrawing then probably there’s something wrong with the design. (It may turn out to be a calculated tradeoff, of course). 3 books and a tumblr on UI design.
|
|
|
|
|
Unfortunately, it looks like his site host is down at the moment. Link above doesn't work; neither does the top-level link from Google. Too bad, I'd love to check out the books. I like UI/UX design, heh.
Flynn
If we can't corrupt the youth of today, the adults of tomorrow will be no fun...
|
|
|
|
|
A maternal nag familiar to the ears of many young gamers usually follows the lines of "you're wasting your life in front of a console." Browbeaten controller wielders rejoice—a new study from the University of Texas Medical Branch (UTMB) has proven the superior hand-eye coordination skills honed from hours of joystick-based gaming are the same talents required to master the world's most advanced robotic surgery tools. Patient survives: achievement unlocked!
|
|
|
|
|
I can't help but wonder how many "lifes" you can lose before the game is over xD
|
|
|
|
|
In what will hopefully be the first of many “Metro++” blog posts on improving the Metro experience, I wanted to focus on discoverability of functionality. One of the weaknesses in Metro as it now exists is that the emphasis on typography instead of chrome means that it isn’t always clear when any particular piece of text is meant to be clickable and do something, and when it is meant to simply be read. Hover as a touch effect.
|
|
|
|
|
Fail! You can't implement "hover" on a touch screen, because moving your finger around is already used to pan the screen.
|
|
|
|
|
It's not about moving your finger around on a touchscreen, it's about giving visual feedback if your finger is in the vicinity of an interactive object; without touching the screen.
The technology isn't implemented on mobile -and home- devices today, but it will be over the next couple of years.
.
|
|
|
|
|
so, you're right. I missed that ... but they need new touch technology before that will work
|
|
|
|
|
The Karaoke Channel boasts that the app's advantage over other singing games is that you don't have to download the tracks. Each song simply streams from the game's servers, which is great until the internet goes down. You can favourite songs, tweak their keys and listen to an optional vocal track. You'll also be able to acquire Achievements. Songs in the key of CREDIT EXPIRED.
|
|
|
|
|
|
I bet you're loving your Apple right now.
|
|
|
|
|
Another reason not to use Apple products and services.
But that's why I send certain attachments compressed into a .7z file, most email virus scanners don't know to how look inside so they don't complain when you try to send an .exe to someone, I assume it could be of similar usefulness here.
|
|
|
|
|
SkyDrive apparently did something similar with images. I wonder if someone from the FBI found something genuinely nasty, which scared Microsoft and Apple enough to be overly aggressive in getting rid of some files.
|
|
|
|
|
Its always a good idea to do encryption on your files while using online services like SkyDrive. They can't scan it if it's encrypted
|
|
|
|
|
Welcome to the cloud, where service providers can do whatever they please and you can do nothing, not even complain. By the way, the big brother may be watching you...
|
|
|
|
|
Big brother isn't the problem.
It's all the little brothers, little sisters, and all the nephews and nieces.
Big brother has an extended family.
_____________________________
A logician deducts the truth.
A detective inducts the truth.
A journalist abducts the truth.
Give a man a mug, he drinks for a day. Teach a man to mug...
|
|
|
|
|
smcnulty2000 wrote: It's all the little brothers, little sisters, and all the nephews and nieces Careful, you're implying porn there. (How did you get all those things?)
|
|
|
|
|
I have a project I am working on for the client that targets Azure. I wanted to move up to .NET 4.5 to take advantage on async/await keywords and other improvements. It is a an MVC 4 project. Of course in order to run .NET 4.5 on Azure, you have to update your project configuration. Here's how you do it... Tricks of the (cloud) trade...
|
|
|
|