|
I taught Computer Science for two years. I had students regularly turn on code that they got off the internet somewhere.
As soon as I saw it I would hold a Code Review in front of the whole class and have the student come up in front and explain their code.
They only every did that once.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
I'm not convinced this is going to happen in this case.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
The instructor's probably just as clueless as the student
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
F-ES Sitecore wrote: You missed out the "b" in "Numbnuts"
A bit of toy code I wrote about five years ago in response to some question or another on here is called NumNuts -- one of many classes that "converts between numbers and words".
|
|
|
|
|
Extra points awarded for such clever pseudo-Indian names. Reetard, Dumass, Numnuts... I think I went to college with these guys.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
I once worked with a guy named Atul...
|
|
|
|
|
Come on, don't leave us hanging. Finish your limerick.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
|
It sounds like you have been graced by being touched by the noodly appendages of the Flying Spaghetti Monster and at last seen the light, ramen!
Maybe what they wanted was abuse and you dissappointed them by being helpful.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 14-Feb-18 14:02pm.
|
|
|
|
|
Thanks to everyone's favorite Turk, Olive Branch has taken on a whole new meaning. Perhaps you are referring to that and not the old-school ideas?
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 are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Even when you do their homework they still don't appreciate it.
BTW Could you give me the solution files so I don't have to cut and paste...it's due today!
Don't let your mind wander too far.
It's too small to be let out alone.
|
|
|
|
|
John Simmons / outlaw programmer wrote: I gave him exactly what he asked for (a 4x6 array of players),
Actually, his example is an array of 6 players with four properties.
Which of course makes it even more desirable to be there when the instructor sees it.
|
|
|
|
|
/ravi
|
|
|
|
|
My first job out of school was at Hewlet Packard Data Systems Division in Cupertino CA. Where I repaired 21MX computers. That machine was user micro programmable, you could add your own instructions on the fly. I met a guy going to Foothill College that had a homework assignment to add a string operation instruction to the 21MX and didn't have a clue. So I told him I would write the microcode but I would only give it to him if he could explain to me, after I tutored him, how it worked - each and every line of code. I wrote "professional quality code" that would take an interrupt in the middle of running and continue where it left off when the interrupt handler completed. The guy learned it well. He later told me he got an A+ with extra credit on the assignment. The instructor did ask him to explain it to the class and gave him the A+ for the code and extra credit for finding "the only guy in silicon valley who could have written that code". I think there were a few others who could have done it. But I got to tech more than one guy a dying art. In my career, I designed more than one micro coded machines, I even help with the processors that flew on the Galileo. It is sad that very few get to experience writing micro code.
|
|
|
|
|
Top
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have been doing ASP.Net Web Forms for many years and have just recently started looking into Angular. I've been through a few good tutorials but all I see so far reminds me of VBScript and ASP pages where you essentially put tags in your html that then get filled in.
I know I have not gotten too deep into Angular yet so maybe there is a good reason for it but so far it seems more work than it is worth.
What benefits do you all find from using Angular?
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
The idea of such frameworks is that the html is built for you to reflect your data. In traditional ajax if you called a method that returned ajax and you wanted to show that as a table you'd have to make the table tag and inject it into the page somewhere, you would then loop through each item in the json and make a tr tag and inject that into your table. You'd then go through the properties of the json item and create a td tag per property and attach that. Or let's say you have a shopping basket, each row may well comprise quite intricate and complex html as you might have descriptions, image carousels, add\remove buttons, quantity spinners etc and if your basket is ajax enabled you need to create all that html via js.
With angular you effectively "template" your objects\json. So you say that each item in your json array is a tr, each property is a td, and where on the screen your data is shown. Bind your json array and the table appears. Now in code if you add a new item to your array a new row will magically appear in your table. Delete an object and the row disappears, change a property and the cell changes, re-order your objects and your rows also re-order. So you only need to concerns yourself with making sure the data is up-to-date, and angular ensures the html always reflects that data, you don't have to make the html yourself.
For a basket for example if you want to change the quantity you just find the relevant item in your basket array and update the quantity and the screen reflects that change, even updating totals etc if you're clever (or stupid).
This obviously assumes you handle your data state via objects in javascript and use ajax to amend those objects. If your data is all server-side and your handling of data all server-side then there is little point in using these frameworks.
|
|
|
|
|
Interesting. Thanks.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Terrific answer!
"Go forth into the source" - Neal Morse
|
|
|
|
|
Easy binding DOM to your apps Models via declarative code (versus writing imperative code).
Meaning you can easily bind your Models to the View (DOM) and then the DOM is updated almost magically.
You don't have to write specialized code (imperative programming) that goes through DOM updating view(s).
Of course, there are other supporting features for this functionality.
|
|
|
|
|
I have tried and gave up on it due to amount of ceremony involved to create Angular application. It might be easier to summon a demon then use that pile of **** . It may have improved since I was banging my head with Angular 2 or was it 4 ?
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
|
|
|
|
|
virang_21 wrote: due to amount of ceremony involved to create Angular application. Like I said, I've only been through a few tutorials and I agree with your statement. I don't see the benefit of it just yet.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Hi All,
Had a funny moment, someone in the C++ pen was looking at Code Project. I must admit this concerns me a little, like not making any work place comments ( X is a knob etc.) mind you he wasn't looking at the lounge!..
|
|
|
|
|
Never have I ever.
Of course, most of the programmers I've worked with don't code as a hobby, either.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
He was probably trying to spell "SND CODZZZZZ URGNTZZZZZ!"
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|