|
Quote: Software Engineering Candies[^]
This article describes how to write unmaintainable code and have an excellent paid job for the rest of your life. The key skill to unmaintainable code is the obfuscation of the code - besides poor design, no test cases and overly complex algorithms. [...] If you really like to write well maintainable code, feel use this as input for things you shouldn't do in your next project.
This may sound as a pure joke, but it should help to write better code.
|
|
|
|
|
I always prefer to read direct suggestions on how to make something better rather than read one of a million examples on how to make something worse.
Stating obvious pitfalls is certainly a good way to create a checklist of things to look out for, especially if they are easy traps to fall into, but I always find I'm left with the "OK, so what's the right way to do this, and when, if ever, is there a reason not to do it the standard way? (ie even the "rules" have their exceptions - and it's these exceptions that show the value of a rule)
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I think you are absolutely right - that it's better to say the correct way of doing things and not to tell anti-pattern and/or wrong solutions.
After working more than 20 years in software development it's still mysterious for me, why people don't listen when you tell them the right way. But tell a story in an humorously and/or even ironic way let the people start to listen (in the best case to discuss). This is the goal of this small article.
The most important part is: Share this tutorial with your colleagues and discuss how to improve your current project. A good starting point is static code analysis and unit testing. The best is - to do code reviews within the team to find out what can be improved."
Markus Sprunck
|
|
|
|
|
My name is Ariya Hidayat. I live in Mountain View, California.... Right now I’m working for Sencha, a company focusing on web frameworks and tools. My recent responsibility is to architect and build the hybrid web runtime to allow our tools (written in HTML, JavaScript, CSS) run as desktop apps and enjoy native desktop integrations. We talk to Ariya Hidayat, developer, tech blogger, and “software provocateur”.
|
|
|
|
|
Let’s suppose you built an application which loads records in a Grid in a paginated manner. But when you loaded thousands of records, you noticed that, it is taking more time to load than the expected time and your boss was not happy with that. So, what to do? Are there any kind of proper solutions or workarounds to reduce this load time? If so, what are those? Let’s began with our post with a problem statement. Sorry, it won't do the work while you nap, but it will get done eventually.
|
|
|
|
|
This post explains the flow of data within the Visual C++ compiler – starting with our C++ source program, and ending with a corresponding binary program. This post is an easy one – dipping our toes into the shallow end of ocean. Let's examine what happens when we compile a single-file program, stored in App.cpp, from the command-line. (If you were to launch the compilation from within Visual Studio, the diagram below would have to include higher layers of software; however, these end up emitting the very commands I'm about to describe). The latest post from the Visual C++ team in a series on compilation and code optimization.
|
|
|
|
|
|
SQL is hard. Who's to say whether it's harder for the person that has no technical background or the one that is comfortable with object oriented, procedural, or functional styles and has to cross the great divide to set-based, declarative queries. In either case, there's a journey ahead of you. Some good tips for learning SQL.
|
|
|
|
|
Nifty site. I'll send that to a friend who is learning SQL.
|
|
|
|
|
Sony’s Open SmartWatch Project will make it possible for developers to create and install alternative software on the Sony SmartWatch.... Developers can already create apps for the SmartWatch, but with the Open SmartWatch project Sony is expanding the possibilities, according to a blog post on Thursday. Developers can take control of SmartWatch in new ways by creating and flashing their own alternative firmware. The project comes with a number of caveats. Consumers are strongly advised to keep the official tested and verified firmware, according to the blog post. Only developers completely sure of what they are doing should take part, it said. Since when has "know what they're doing" ever stopped a programmer?
|
|
|
|
|
The first time I heard mention of the GIL, it had nothing to do with how it worked, what it did, or why it existed. I only heard about that it was silly because it restricted parallelism or that it was great because it made my code thread-safe. In time, I've gotten more comfortable with multi-threaded programming, and realized that the world is more complicated than that. I wanted to know, at a deep technical level, how the GIL worked. Only, there's no specification for the GIL, and no documentation. It's essentially unspecified behaviour; an MRI implementation detail. The Ruby core team makes no promises about how it will work or what it guarantees. Every programmer's nightmare: code that works, but nobody knows why.
|
|
|
|
|
The word “visualization” once more readily described the act of creating a mental image in one’s mind, whereas today it’s far more likely to mean the graphical representation of information. We are living in an increasingly visual world, peering into screens of different sizes with incrementally superior resolutions at every device upgrade. We are also living in a world with more data available to us than ever before. IBM says that 90% of the world’s data was produced only in the last two years and that we produce 2.5 quintillion bytes of data daily. A look at how journalists are using and explaining data in the news.
|
|
|
|
|
Found it interesting that on one of the visualizations had a hard time reading the state names because they were in gray. Think they need to also think about human factors.
|
|
|
|
|
The core issue might be that both Xbox One and Windows 8 represent bets on bigger, longer-term visions than today’s users aren't interested in hearing about, let alone dealing with day-to-day. But unlike with Windows 8, which is being retroactively “improved” with features that should have been there from the get-go, Microsoft still has a chance to “fix” Xbox One before it’s released. These fixes are easy to implement and should include... Should Xbox One respawn, or keep playing?
|
|
|
|
|
I think XBox One is heading toward disaster. Once again, it seems that a bunch of egghead MBAs decided what a console should be in the ideal world rather than the real world. I think they've convinced themselves that their game exclusives will make potential customers overlook the faster, less costly, less intrusive PS4. I think they're fools.
(Anecdotal evidence: of my work colleagues and my kids' friends, the PS3 is the most used by far with most stating that they regret buying the XBox.)
|
|
|
|
|
Seems like MS is making a lot of misteps, just as Apple is. I definately would not want to have to be online with a gaming console. I can understand internet games, so why should you need a gaming console to play internet games, just use your computer. Still hear people thinking Windows 8 is not bad, but it appears that Microsoft is not selling the PC users on it. I also love that they are killing XP support when there are so many people using it. It means that developers have to develop for the XP, so Visual Studio 2012 and Framework 4.5 should support it. There are many more users of XP than Vista, and they are generally happy with it. Sort of like when MS went from Office 98 to office 2000 (think that is right)
|
|
|
|
|
Clifford Nelson wrote: Seems like MS is making a lot of misteps
A vast understatement, I'm not planning my future with Microsoft anymore, seems they're sailing straight into an iceberg, the only way to change course would be to shed Ballmer.
|
|
|
|
|
Definately appears that you are right. Maybe the only way to actually fix the problem is to get Gates involved again. He has the power to get things fixed. Any one else has to deal with politics, and unless things look really bleak, and if that becomes the case, it will be difficult for Microsoft to recover.
|
|
|
|
|
Twitter has quietly opened up its various analytics tools to the public, giving everyone access to in-depth data about the people and brands who follow them, as well as the performance of their most recent tweets.... The Timeline activity displays a graph for the user based on the number of mentions, follows and unfollows that they’ve received over the last month. A detailed list underneath shows all of the user’s most recent tweets, including the number of times someone has favorited, retweeted or replied to it. Just in case you need documented proof that nobody reads your tweets.
|
|
|
|
|
“Most people make the mistake of thinking design is what it looks like. That’s not what we think design is. It’s not just what it looks like and feels like. Design is how it works.” — Steve Jobs This quote was hauled out for the video presentation of this redesign, and I'm afraid I'm going to have to go ahead and wield it as a bit of a club. Because quite frankly it's talking the talk, but not quite walking the walk. It forgot the corollary to the quote, which is 'how it looks and feels informs the user how it works'. iOS 7 is fundamentally broken? Quick, someone add a Start menu...
|
|
|
|
|
This past October the state of the art seemed to move things a bit closer to toddler performance. A system which used deep learning and convolutional neural networks easily beat out more traditional approaches in the ImageNet computer vision competition designed to test image understanding.... We built and trained models similar to those from the winning team using software infrastructure for training large-scale neural networks developed at Google in a group started by Jeff Dean and Andrew Ng. When we evaluated these models, we were impressed; on our test set we saw double the average precision when compared to other approaches we had tried. We knew we had found what we needed to make photo searching easier for people using Google. A picture is worth a thousand words... and probably an order of magnitude more code.
|
|
|
|
|
If You Don't Start You Won't Finish
The honest truth of the matter is though, if I don’t start, it won’t get done – unlike the story about the Shoemaker and the Elves, they are not coming to clean my house each day!
This of course is a very simple example, but I find this reminder useful even at work.
The article goes on to discuss some great techniques to help you get started - a nice reminder.
|
|
|
|
|
|
So in a role-reversal from last gen, it's looking increasingly as though Sony are the champion of indie game development. We don't yet know the process for sign-up, but the current rumor (according to neogaf) is that PSM (playstation mobile) games will be compatible with the indie games platform on PS4. Adding some weight to that argument is the recent announcement that dualshock 3 support has been added to PSM. Also keep in mind that both Transistor (Super Giant Games) and Mercenary Kings - two games announced as part of PS4's initial indie offering - were written in C# and use Monogame (the open source version of XNA) for their Steam/PC releases. MonoGame may be the way forward for indie XNA game devs.
|
|
|
|
|
In this post I want to talk about my port of Notch’s beautiful Minecraft JavaScript demo to ClojureScript. When I say beautiful I’m not referring to the code - frankly it’s ugly. And being a faithful port the ClojureScript version ain’t much prettier. But this post isn’t about writing beautiful code, it’s about ClojureScript’s suitability for computationally intensive interactive applications. Fun and games with Google's Closure Compiler and ClojureScript.
|
|
|
|