We've all been there. Look at some code written by someone else and start thinking what is this guy doing? Long runs of code with no comments, code that is sometimes in procedures but also repeated outside procedures. On the plus side, wouldn't this be an ideal candidate for code obfuscation or security? You can't even understand it with the source code with comments: how about without source code or comments? If the obfuscator, also followed the same disorganized behaviour of a bad programmer, reverse engineering would be really difficult. I wonder if any obfuscation companies ask people to send in samples of bad code. The problem with security is that it is written by "good" programmers - it all lives in one routine which is called from everywhere. Clobber that routine and you've cracked the security. It would be better if the routine was inlined. Also it should not always follow the same sequence, which is what a bad programmer would typically do. CUP
Member 4608898
Posts
-
How can we use badly written code -
Now I finally know where 42 is coming from!Isn't it just the ASCII/Unicode/UTF-8 code for the asterisk?
-
Microsoft updates... how many of you just allow them?I'm on 1 & 3. I'm normally on 1 until I need to install a SP. As I'm not normally connected to the internet on dev machines, it doesn't really matter. It is not a security problem if it doesn't have an external network. I do 3 before I install the SP. Once that is done, the machine is off the network until it needs another SP.
-
Mental cryptography and good passwordsIt should be a passphrase: not a password. I don't entirely agree that a memorable pattern is vulnerable to attack. What is easy to remember for one person may be difficult for another. I can't remember chess moves, football scores or bridge hands but I can remember routes. Everyone is different. The old Data General root password was DE2LA6. Took me ages to remember that: then I was told, it was a football score: Detroit 2, LA 6. Is it a memorable pattern? Yes to someone interested in football scores from a game that was played 40 years ago. Anyone else, I don't think so. Another example of something memorable is words of a nursery rhyme where you and your siblings changed all the words and syntax and had a laugh about it. Nobody else knows these words except you and your siblings: is that vulnerable to attack? I don't think so (except from your siblings).
-
secret emoticonsvegemite? must be Aussie. Don't they have one for :Marmite?
-
Virtual machine for home useNothing to do with your query. Virtual Box does not play at all when HyperV or VMWare are running. In fact, you will get BSOD. VMWare and HyperV don't play together either. VMWare and Virtual PC play together. What peripherals do you need to share? Some VM engines want exclusive access to perihperals; others are willing to share.
-
Desktop Search? Why So Terrible? Or Is It? What do you do?Use findstr /s /i ...
-
Loop exitBut if you had for (...) { for (...) { I want to exitfor from the outer loop from a condition in the inner loop } } How would you do it? goto was invented for a reason and this is it!!! :-D
-
Forgotten skills...Talking at the dinner table or at the pub. Nowadays you can see a load of people sitting in a circle messing with their phones. They just sit together but nobody talks anymore. I've seen a family of 4 go out for a meal. They are messing with their phones before the meal, during the meal and after the meal. They've actually forgotten the skill of verbal communication.
-
I am Software Developer ? -
Is there Online Visual Studio IDEYes - they still do in microsurgery http://www.pbs.org/wnet/nature/bloodysuckers/leech.html[^]
-
Is there Online Visual Studio IDEIf you can get VS2008 - it runs a lot faster than VS2010. On a netbook, VS2008 starts in 5 seconds, VS2010 takes about 2 minutes. You could always use mono instead of C#. It is more or less the same thing.
-
What are the worst programming habits?Normally happens if you write the comments before you write the code. It is just forgetting to remove the obvious comments after the code has been written.
-
Upgrading an old VC applicationIf it was passed by reference instead of by value, the code works seamlessly. What I find is a lot of the VC6 code normally pass CStrings by value.
-
Is "programming" a dirty word, suddenly?In some circles, they say scripting, in others hacking. Sometimes it is so that they can ask you to do anything and you can't say "it is not my job because my job title is programmer". For instance designing - is that part of programming? Maybe yes, maybe no. Developer or Engineer - that doesn't say whether you are an analyst, programmer, designer, architect etc. It is a title I've been using for the past 20 years. It is one title that fits everything, including moving chairs to get rooms ready for presentations, washing up after the guests have left, filling in shipping orders, packaging, cabling and even mentoring. It is anything required to train the staff, sell the product and get it out of the door. Sometimes you get asked when you apply for a job - do you mind opening up machines and hacking together several non-working machines to make a working one if the job requires it? Some programmers will say no - their job is just programming or software development: such things are below them (yes there are snobs in this industry). Some will gladly do it because it is something different. Even hacking ice out of the fridge or working out why the toilet doesn't flush is fun for these guys.
-
Why most people here dislike Facebook?Nothing against facebook or twitter or linkedin any other social networking website. It is just not the way I communicate. I'll visit, write a letter (do people still do such things?), phone or send an email. That way, there is more to talk about. If your whole life has been published and everyone already knows everything and has seen all the pictures, what do you talk about when you meet up with friends?
-
8 years of college and can't program?I know of people who have a 1st or a 2:1 in Computer Science and can't program. It really makes you wonder at the range of topics covered in Computer Science degrees. I would have thought that programming was one of the fundamental topics but apparently it isn't.
-
VSO (Visual Studio Online) m loving itSo what do you guys do when the internet is not working? I work on sites which are phone dead zones and where there is no internet access. Guess I'll never know what it is like in a work environment. What happens if you have super-slow broadband or an uppy-downy connection - how do you use that time productively?
-
For those of you who work for yourself - contractor or business owner - vacation questionThat is the great thing about contracting: you are not restricted to 25 or 30 days: you can take as many or as few as you like. You charge extra so that you can pay yourself on the days when you aren't working.
-
Learning C++/QtDepends on which version of Qt you want to use. The principles are the same but the locations of the header files are completely different between Qt3, Qt4 and Qt5.