|
We have another Nintendo teardown for you U. We got our hands on the Wii U, and despite the temptation to escape into the world of Super Mario, our spudgers got the better of us. An important part of the game is getting back together again... and working.
|
|
|
|
|
As a business developer... I have been extremely disappointed in Microsoft over the past couple years as Sinofsky ‘flexed his muscles’ within the organization. Enterprises require predictability and some reasonable level of transparency. Microsoft provided neither of these over the past couple of years. The complete ‘blanket of silence’ surrounding anything to do with Windows 8 was stifling. As a result people at Microsoft were unable to talk about anything useful at all for an extremely long time. The future of .NET, Visual Studio, Blend, and many other key developer technologies became completely opaque. If there was any ray of hope over the past couple years, it was in the server and cloud space.
|
|
|
|
|
The world's oldest original working digital computer is going on display at The National Museum of Computing in Buckinghamshire. The Witch, as the machine is known, has been restored to clattering and flashing life in a three-year effort. In its heyday in the 1950s the machine was the workhorse of the UK's atomic energy research programme. A happy accident led to its discovery in a municipal storeroom where it had languished for 15 years. What makes you think she's a Wolverhampton Instrument for Teaching Computing from Harwell?
|
|
|
|
|
Kill the Password: Why a String of Characters Can't Protect Us Anymore[^]
Boy do I hate passwords, especially when I cannot use a standard password, and have to have something different from my standard passwords. Never remember, and have to get it reset each time I want to access an account I seldom use. Then there are the ones I keep in my address book so that I remember them, and of course then they are accessable.
|
|
|
|
|
|
You have been the only one that seems to find this interesting. I would have thought there would be more interest.
|
|
|
|
|
This is extremely interesting.
And, as a developer, it gives me ideas of how I want to integrate different types of security in my applications.
+5
|
|
|
|
|
Portions of the “DirectX 11.1 Runtime” are being made available on Windows 7 Service Pack 1 via the Platform Update (KB 2670838) included with the Internet Explorer 10 Release Preview for Windows 7. This includes the updated components above, but is limited to WDDM 1.1 drivers on Windows 7. KB 2670838 is installed as part of the IE10 Release Preview for Windows 7 download. It is also available as a standalone prerelease update. I can tinker with the new Direct2D and DirectWrite classes, this weekend!
|
|
|
|
|
When I tweeted about this while I was refactoring, someone told me: “Using a boolean is an antipattern”… well… now I experienced it myself. From this experience, in the future, I’ll never use a Boolean field again, and always start with an Enum, especially with a Document database where migrating data is a bit more complex than with relational databases. State management is not ideal for a boolean value, but booleans have value.
|
|
|
|
|
Have to say this is a good point. However there are times where boolean field works great. However, if you are dealing with states, then can always end up with more than 2. I have had cases in the past where that became the case. There is also the advantage of enums in that the name is more descriptive than just yes/no.
|
|
|
|
|
I disagree. The problem he described in the article is not the choice of data type to use, but rather simply a lack of requirements analysis.
If it's not broken, fix it until it is
|
|
|
|
|
Requirements always change ... and change in the one place you didn't allow for!
All round good guy.
|
|
|
|
|
Absolutely… use the right tool for the right job.
|
|
|
|
|
Oh. My. God.
He should better use a string, so he can put anything into it! Or, if he doesn't like refactoring, think abotu the problem first.
|
|
|
|
|
I think a binary field holding a .gif that describes the state of the record would allow for more flexibility. You could encode additional information in the image itself. In fact, for a single record I don't know why all the information couldn't be contained on a single piece of paper.
I think I just talked myself back into the 1950's.
|
|
|
|
|
I have seen the light. I have been wrong, all this time. From now on, all the code I write is going to contain this enumeration:
public enum LogicalStatus
{
True,
False
} Now, all my code will be beautiful. I am assured that I will be able to ascend to a higher level of consciousness now.
|
|
|
|
|
Pete O'Hanlon wrote: Now, all my code will be beautiful.
And I will know who to blame when I see this in some code sometime in the future. "Oh, I read this on the Code Project by a reputable member and have been programming like this ever since. In fact, I've extended the pattern:
public enum Integers
{
One,
Two,
Three,
Four,
}
but for some strange reason, I have to keep adding new Integers! Plz Help. Urgentz!"
Marc
|
|
|
|
|
You fool. You've prematurely optimized. Don't you know that you should be using the Visitor pattern here, possibly combined with DI to inject new numbers as and when you see fit? Of course, I expect to see a full implementation for Doubles and Floats while you are at it (and just to be on the safe side, I think you need to represent all possible combinations of strings).
|
|
|
|
|
And add a snuff of IoC, so you can switch it out at runtime with some 3rd party library providing the implementation!
Wout
|
|
|
|
|
FTFY:
[Flags]
public enum LogicalStatus : byte {
False = 0,
True = 1
}
Wout
|
|
|
|
|
Hey Pete, I was wanting to poke around CodeStash, but I'm getting: "Google Chrome could not connect to www.codestash.co.uk"
Is the site still up?
Marc
|
|
|
|
|
Hi Marc,
I've just had to ask the CodeProject team to restart the server as it's hosted on their servers.
Regards
Pete
|
|
|
|
|
Pete O'Hanlon wrote: I've just had to ask the CodeProject team to restart the server as it's hosted on their servers.
Hmmm, it's still not responding. I guess the hamsters are on vacation.
Marc
|
|
|
|
|
It's back Marc. Turns out that the server had been switched between Amazon instances and the DS settings hadn't been updated to point to the new instance. I'm putting monitoring in place to warn me if this happens again in the future.
|
|
|
|
|
Pete O'Hanlon wrote:
Thanks! One of the reasons I wanted to poke around the site was because I have another hair-brained idea that applications should consist of small, either re-usable or custom code blocks that are wired together with a tool like Visio. Ultimately I envision something that is a mix between what that website, code bubbles, does, and something like lego-building blocks where you can visually wire up the data flow and events. The actual granularity would be completely flexible, and I imagine larger scale building blocks for handling things like ORM's, etc.
I'm still looking for a decent visualization tool, similar to Visio. Sacha's rework of the WPF layout tool looks like a very good starting point.
So I wanted to see what people had contributed for snippets to 1) see if you were already doing some of this with CodeStash and 2) to see what people were contributing.
Argh. I need time!!!
Marc
|
|
|
|