|
Ron Nicholson wrote: if colleges who teach programming classes Given some of the QAs we see I am not even sure that they are teaching programming properly. I had a question from someone the other day who said he was a teacher, but had no idea how to fix, or even find, the (fairly simple to find) problem. If that is the quality of teaching it is little wonder that we see what we do.
|
|
|
|
|
Richard MacCutchan wrote: who said he was a teacher, I would like to hope that it was an excuse to try to get more help... but I would not bet anything
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I did feel a bit sorry for him when I read, "I have been staring at this all day, and feel like crying."
Instead of actually looking at the three lines of code that were the obvious root of the problem.
|
|
|
|
|
My schooling wasn't so far back, so I remember being weak on debugging while in school. I also had to train other students who were weaker than I was. I tend to view others as having different strengths and weaknesses and try to be tolerant. As an example, I am meticulous, and -fresh out of school- programmers tend to be much faster than I will ever be, but also overlook what are obvious code problems to me.
|
|
|
|
|
I think a big part of the problem is that students are taught how a language and some algorithms but not how to design robust code.
Recognizing that there will be bugs using such tools
- TDD
- SOLID design principles
- Error, and other Logging
need to be taught.
In addition, critical thinking and failure analysis are necessary too.
In most cases, you should be using the debugger to prove or disprove a hypothesis about what is causing and error.
TDD means you can verify the error is corrected and the correction hasn't caused other issues.
When I start using TDD while working for a large consulting firm, they were both impressed and horrified that while I was writing more code due to test code, I was completing assignments in 1/3 the estimated time and could prove to the client that the code completely met the agreed requirements.
The other thing they don't teach is that bugs multiply. If you don't squash them early, the patches and work arounds result in fragile code, and when the bug is fixed, many time the application crumbles due to dependencies on the error.
In short, writing code is not the most important aspect of being a good programmer.
Understanding the languages you use, the tools you use, and when and why to use them is.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
My dad used to teach programming in high school where he taught from the Programming first and second semester books. He felt it was important to teach the concept of debugging and finding mistakes in the lab portion of the class. In the class portion he taught going through your source code and tracing it manually. He felt being able to figure out what your program was doing before you compiled was important as he started programming when the University of Cincinnati go its first computer. At that time submitting just to get an error was both expensive and time consuming. I took his class and when I left I was able to get a developer job while going to school full time. Computers took a lot longer to compile than they do now, especially Windows GUI languages (as they were just coming out), so at one point a friend printed off a copy of his work before starting the compile and handed me the printout. Due to my dad's training I was able to go through, find the syntax errors before the compiler did and then produced an output and showed where it would not do what he intended and what it would do again before the computer could finish. I think it should be part of your first 101/102 classes the way my dad taught it. Both the debugging and the tracing skills are things that are critical to learn and showing how to do it with structured thought helps.
|
|
|
|
|
I generally agree with others that have posted by trouble-shooting is a way of looking at the world and breaking it down into manageable parts. However, one can't trouble-shoot what one doesn't understand at some medium to deep level. Surface understanding won't cut it. That's why universities don't teach debugging - the students are too new to really go there in any serious way.
But universities should do better.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
I've always thought about debugging in terms of tree pruning. Start at the top of the tree and eliminate branches that do not get you to the root of the problem.
In order to do that, you must have a mental picture of what the "tree" looks like. I think that is part of the problem with debugging today, the systems are so complex that no single person can put together that mental picture. Think any big software system, Windows, Linux, AEGIS, Space Station, etc.
Many moons ago on a super minicomputer I had a hardware problem that occurred once every 2-3 weeks, on a system doing millions of instructions per second.
The problem was easily to see (I was working in assembly language); the machine had word & half word instructions. If a half word instruction was followed by a full word instruction the assembler automatically generated a right hand half word NOOP so that the word instruction fell on a word boundary. If everything is working properly, the RH half word NOOP was skipped during instruction executions by the machine.
Except that every 2-3 weeks it didn't skip the RH NOOP (PSW was screwed up and pointed to the NOOP). I had a pretty good mental picture of what was going on, wrote a program to exercise I/O devices based on front panel switches and display each time the RH NOOP was executed in the front panel display (this was back in 1973-1974).
After fiddling to find the right combination of switches that would cause the counter to increment, the tech came in I ran the program & he fixed the issue in less time that it took to show him the problem.
Turned out to be a tap on a delay line that had to be moved to the next tap (5 nsecs).
|
|
|
|
|
Do you weigh a Millennial in Instagrams?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A weighty subject indeed.
Unfortunately, an instant measure of mass is impossible because of Quantum.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
and the speed of their Social Media is measured in Views/TikTok
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
I thought it was snaps. or is it TikToks which would be clocks right?
To err is human to really elephant it up you need a computer
|
|
|
|
|
"TikToks" is how you measure the age of a Millenial*
* Or cut them in half and count the rings.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You may trigger mass hysteria unless you pound some sense into their heads. Beware !
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
And once you've got that all sorted out, an update will change your email preference from Outlook to that useless Microsoft Mail... And then, if you happen to still be using Office 2010, another update will make it so it does an almost complete reinstall, taking up 2+ minutes to open up something you just wanted to glance at...
MS - doing their best to keep you on your digital toes..
|
|
|
|
|
|
I think hotmail was retired some time ago; it's outlook.com now.
|
|
|
|
|
It is still being offered when registering.
Right now I had:
outlook.de
outlook.com
hotmail.com
If they are discontinued... why the ing are they still being offered in the combobox?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
What combo box are you referring to?
|
|
|
|
|
The one in outlook site when you go "register a new address"
you have an input field to give your "nickname" before the "@" and a combobox for the part behind the "@"
And there is "hotmail.com" still offered as a possibility for new generated emails
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
But I thought that is what you wanted? When I tried it it accepted my suggested name with a hotmail.com domain.
|
|
|
|
|
Richard MacCutchan wrote: But I thought that is what you wanted? My father wants "hotmail".
Richard MacCutchan wrote: When I tried it it accepted my suggested name with a hotmail.com domain. the suggested name was accepted in all 4 tries I did. In the first sight I saw no problem while registering, but I could not use it at all, when I tried to log in it gave me weird error messages.
I will try again next week, once the desired nicknames are free again after the deletion period.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I just created sdrahcir57@hotmail.com. SA bit of a faff but it works OK.
|
|
|
|
|
Nice.
Thanks for the confirmation. I will try it again.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|