Error: Twitter did not respond. Please wait a few minutes and refresh this page.
- 10,267 hits
cultivate passion for everything else that goes on around programming
One simple quote from the movie No Strings Attached got stuck in my head:
I’m warning you, if you take one step closer, I’m never letting you go.
And I wondered how this quote would find its way into the software world. And there are indeed some analogies you can make to this quote. It often happened to me to find out that I’m really fond of some application. Or that I use some sites regularly, just because they make fun, their a pleasure to use. That’s also true with, for instance, programming languages. Or even development methods or patterns.
If you find something to be that compelling, that you can’t stop using it, than you get into addiction. And you might not want to let it go anymore. It’s like me with Google Chrome. Or with Total Commander Ultima Prima. Or maybe like the first time I ever used Google. It instantly felt that this is something useful, and so cleverly implemented, that I will continue using it, that I will not let it go. Like maybe Mikogo.
WPF and MVVM: I’m thinking, yes there are some small improvements that could be added to the WPF framework to better allow the implementation of MVVM, but overall, I’m just a step away of sticking with it for a long time from now for developing desktop applications.
So there are situations in a developers life when you just want to stick to something. There are so many possibilities out there (languages, frameworks, tools, methodologies, …) that personally I often wish I could say: this is what I need, I’ll stick with it forever. But then some missing command or some missing functionality, or just bad performance make me say: Hmm, I’ll have to look for other options too. And then I continue investigating and testing other stuff, and sometimes I find something better, sometimes I don’t. This search for something better is frustrating and exhausting. I just wish, software in generally would be even more perfect.
But that makes me think: what does it take for something to be so great, that it’s actually not a step away from what you wish for, but a step further than what you might expect.
One step away from my expectations would make me say: Yeah, it’s ok. One step closer, and I’m never letting you go.
Meeting my expectations would make me say: YES, this is for me! I’ll keep using it.
One step further than my expectations would make me say: WOW!
We lived on farms, then we lived in cities, and now we’re going to live on the internet!
Actually, there’s much truth behind this quote. I mean I work in front of the computer 6+ hours per day. With peaks of around 12 hours per day. That’s between a quarter and a half of day. And that everyday (except maybe weekends, but sometimes, like right now, I spend time using the computer in weekends too)! Of course, this is because my job is IT oriented and it involves intensive computer-based activities. At times when I used to write code at my job, I worked with the computer a lot more. But the activities were not that much “socially” oriented. Now my activity is more oriented to communication. On an average day, I receive about 70 emails and send out about 35. I actively chat with my colleagues via different IM tools (mainly Office Communicator, Yahoo Messenger and Skype). In my Outlook Conversation History folder I have about 50 conversations daily (and that’s only what the Office Communicator is saving).
My point is that my daily activity is very much based on, relies on and is influenced by the Internet. It’s probably the same for my fellow programmers and co-workers. So, yes, we’re going to live on the Internet – and actually living right now.
I watched “The Rite” the other day. Unfortunately I was quite tired and fell asleep at about half time. But I remember this quote:
Be careful, choosing not to believe in the devil doesn’t protect you from him.
As in my previous posts, I want to try to identify some correlation between a movie quote and the software development world.
Is there a devil in software development? Is there something we must protect ourselves from when writing code? And if yes, how can we protect ourselves?
When I write code or when I’m reviewing code, I noticed some things that could stand for the “devil of coding”. Some are simpler, some are more complex, but all of them could be considered as pitfalls, which sooner or later will come back and haunt you. Let’s analyze some of them:
The conclusion is: not being aware or ignoring these things won’t help you in your career. Sooner or later, the devil will catch you! You have to protect yourself by learning and reading about these topics. Acknowledge them as part of your life as a software developer. Be vigilant and pragmatic! It’s all up to you to become a better programmer. Don’t rely on exorcists to fight out the devil in your own code.
Because my last post was related to a quote from a movie (Remember Me), I thought it would be fun to use quotes from movies for my blog posts and correlate them to Software Development.
Recently I only saw The Tourist, which unfortunately doesn’t have really interesting quotes, but I said, “what the hell, just pick one quote from the Memorable quotes for The Tourist”. Actually all quotes are memorable, because they are (very) short and use simple words, which even my little daughter would understand. (But of course, even if they are memorable, I don’t recommend anyone to memorize them).
So let’s take this quote:
This is exactly why (s)he chose him. To distract us.
What if we would replace him with it and think that us stands for us, our software development team and (s)he stand for the project manager or a colleague. I think it’s pretty interesting to see what connotations derive from the transformed quote “This is exactly why he chose it. To distract us.” when we give “it” several meanings.
There is us on one side and (s)he on the other side. How often did you, as a member of a software development team, thought like this? The project manager (or the product manager or the client) is on one side and you, the poor fellow who has to implement something on the other side. All decisions made by others for you will make you think about why they made that decision. And mostly, you won’t get a satisfying answer to this question. But since this is a question, and you as a software developer always have to get an answer to your questions, you often invent an answer. Not every time the answer is the best one, but you are pragmatic and don’t need the perfect answer, you need an answer that will get you going. One of these answers is seldom (I hope) this one: “To distract us”. This would mean that the decision-making party would have intentionally made a decision to distract you, which I honestly don’t think anyone does. Only perhaps to hide some lacking knowledge of him or to let you think he knows something better, when he in fact doesn’t.
But nonetheless, this would mean that you are living in a black box, where decisions are being made without your implication and everything seems to be done just to distract you.
To distract you from what?
I think that software developers are always distracted from being inventive, from being creative or being motivated when you make a decision without involving them properly. If they do not have a word to say related to a decision, if they don’t have the time to think about possible solutions to a problem or if they aren’t allowed to test and prove their own ideas, they will feel distracted and unmotivated. Let them be analytic and pragmatic. If you, as a project manager, team leader, leading developer or every other title you may have, take each developers decisional role away, they will feel unnecessary and after a time they will only do what they are told to. They won’t be creative any more and they will not search for solutions on their own. This is definitely not something you would like in your team! If you always choose the frameworks to be used, if you always choose your preferred coding style, if you always choose the design patterns to be used or if you always have to impose your class diagrams, your team will slowly, but surely, become unproductive.
My goal is to let each developer come with ideas. Let every developer search for solutions and let them present their findings. If we would always use what is being imposed to us (like for instance standard patterns and frameworks) there would be no more really ingenious ideas coming out. We would start getting to think only inside the box, rather than outside the box. If every programmer has the chance to come up with solutions and to present them, the team will make the final decision. Thus there won’t be a person to blame for an unfortunate solution, instead the whole team would stand responsible for every decision.
Let each programmer think and let the team be his jury. Don’t choose something that your team can choose. Don’t distract them from thinking. Don’t distract them from being open-minded! Let them Find the Box.
I recently heard an interesting quote from Ghandi:
Whatever you do will be insignificant, but it is very important that you do it.
Of course on a micro-scale, your actions might seem important and may have an influence on the near future. But on a macro-scale, your actions and everything you do as an individual, will not change a lot in the universe and will be just lost in time.
But then why should it be important to do something? Why should we even begin doing something, if we know for sure it will not be something that will change the world?
I will try to explain why by describing how this applies to software development. An average programmer doesn’t write that much code. Most of his time he is debugging, testing or reading. Writing new code might take about 10% of his time. Altering existing code might take even more than 10% of his time.
When a developer changes existing code, he has a goal: make the code do what it’s supposed to do. But this could be done in a quick & dirty way: just fix the code with a minimum amount of effort (because it will be just an insignificant change after all, isn’t it?). Even if a quick fix does the job and the developer might even get appreciation from his not-so-clever-looking-into-code manager, this simply isn’t enough.
You, as a professional developer, should do the following additional tasks when fixing a bug or every time you look over existing code:
Everyone of this actions are insignificant compared to the whole project. But it’s important that you Do Them Anyway!
I have developed software applications for about 14 years. I have written code in Pascal, PHP, C++, C#. I used VCL, MFC, ASP.NET, WinForms.
I always wanted to do a little bit more than just writing code. My goal was to manage projects and to be in charge of the whole aspects of a software’s life cycle. Fortunately, my current employer offered me the chance to advance from being just a developer to being team leader, then project manager and then site manager. This all happened in a relatively short time: about 4 years. Now I can proudly say I have reached my goal!
But my professional life changed a lot in this time. I have a lot of different tasks to do now. Talk to customers, talk to clients, talk to employees. Take part on meetings, do interviews, coordinate activities of different departments, go on business trips. Have an overview on all active projects of the site. Coordinate and manage difficult projects. Be informed on latest technologies and development methodologies.
Compared to my activities I had 4 years ago, what I do now can be seen as a complete turn-around (although I still have days when I spend 8-9 hours in front of my computer). Thinking about my new activities, I can say I really enjoy them all. I like doing all those new things. I like talking to people, I like managing projects, I like having administrative meetings or development meetings. I like meeting new people at hiring interviews. I like knowing and understanding the problems of running a business in the software branch.
But I also like writing code!
Writing code has been always something I enjoy. Although I’m most certainly not the best programmer, I find a lot of pleasure writing code. Having had some time to look at other people’s code, I think I also found out how to be a better programmer. Now I definitely understand topics like Scrum, TDD, Dependency Injection, Inversion of Control, Refactoring, Design Patterns, Unit Testing a lot better. I’m pretty sure that I became a better programmer by not programming. By reading about this topics, by implementing them in the projects I manage, by seeing the benefits of them, the urge to write code is even bigger now. Doing a code review always makes me want to just check the file out and start refactoring code! But I have to force myself not to write code, and instead suggest to other developers how they should write better code.
So how will my job look like in 10-20 years? Will the CodingPleasure go away? Will I still have the desire to write code?
To remind myself about the coding pleasure, I named my blog CodingPleasure. The name of the blog is also a word-play to Jeff Atwood’s CodingHorror. Many thanks, CodingHorror, for your truly inspiring blog!
This blog post from CodingHorror proved to be true so many times!
It still helps when I forward the link to junior developers, who always think the framework, the IDE, the libraries, etc. have some bugs in them :)
When I wrote my previous post (Cracking Password-Protected ZIP Files – The Smart Way) I realized that “I HAD TO download WinZip”. Something I wouldn’t have normally done.
This is because I stopped using WinZip a while ago. Because of several reasons, but mainly because it became a really commercial app. It was not difficult to replace it: the alternative 7-Zip is all you could ever need from an archive manager, I think! Its fast, small, understands a lot of compression formats, integrates into Windows explorer, etc. And it is free! Really free:
You can use 7-Zip on any computer, including a computer in a commercial organization. You don't need to register or pay for 7-Zip.
But WinZip isn’t the only program I replaced during time:
and probably much more. But all have something in common: they became commercial and now came bundled with a lot of features and other programs I really don’t need. WinZip has a 19 MB download package!!! 7-zip is just 1MB!
Another program which I replaced 2 month ago was Firefox. I replaced it with Google Chrome because Google Chrome is insanely fast on my notebook. It starts faster than any other program I have, even Notepad++ :) Firefox might have been of course altered with all my installed add-ons (which I actually miss in Chrome), but nonetheless, Chrome seems faster in any aspect of web browsing.
So I have at least two reasons for replacing an app:
1. the application and its setup should only serve the application’s initial purpose and
2. speed in all its aspects (download time, installation time, start-up time, functionality speed).
Are there any other reasons why an application would FAIL and be replaced with another?
I’m struggling for some years now to crack a password protected ZIP files that I created 8 years ago. I have tried different brute force programs found on the net, but even though the CPUs are getting faster, it still would still have required probably a lot of years to crack it.
Today I found out that you can decrypt a password protected file if you happen to have an original file, or at least a part of it. These technique is called “Known plain-text attack”. So I realized that I had a file unencrypted and started investigating how I could crack my archive using this file.
But: I spent a lot of time figuring out how to prepare the input for Elcomsoft ARCHPR. I needed to compress the unencrypted file using the same compression level (and program I guess) which I used when I encrypted the files. After struggling with 7-zip and other archive managers, I had to download WinZip. These seemed to have done the trick!
Additionally, my files were inside folders in the archive. I prepared the archives to contain only the files, without the folders. It seems that WinZip can rearrange files in an archive, even if they are encrypted, 7-zip not.
And then the expected happened: using Elcomsoft ARCHPR I had decompressed and decrypted all files in the archive. They have been sitting there for 8 years and probably they would have remained there until the CPUs (or GPUs) would manage to brute-force my archive in a reasonable time.
Now I can enjoy my super-secret-highly-classified encrypted pictures again!