|
THis is, of course, the real benefit of pair programming. My (admittedly limited) experience of how pair programming works in large orgs is that it is competition, not collaboration. Which makes it less than helpful.
|
|
|
|
|
I made up a type of pair programming, where we share the screen over zoom, and I only watch / help whenever they have a question.
Does the same thing, but I can get work done in the downtime, and we don't have to schedule stuff.
|
|
|
|
|
That sounds very sensible.
I went to an job interview once at a big gov. - supposedly 'agile' - dev place. I was given a pair programming task to write a test for a function, using tools I was already very familiar with.
As soon as I sat at the keyboard I could see a glaring error in the function I was supposedly testing (an uninitialised variable in a language that enforces initialisation), so not only would the test fail, the code wouldn't even compile. My pair stopped me correcting that error until I had written a test that showed the function failing - which of course couldn't be done because the code wouldn't compile.
I wasn't offered the job, as I wasn't a good fit for their culture...
8)
|
|
|
|
|
Mike Winiberg wrote: at a big gov...as I wasn't a good fit for their culture...
Of course. They really were looking for people that would write code that would not work. Those decade long maintenance contracts aren't needed for stuff that works.
|
|
|
|
|
You don't even need a human. I find explaining things to my cat can have the same effect.
<°}}}>«<
|
|
|
|
|
Also known as Rubber Duck Debugging. One of the most useful programming techniques I've ever learned.
I may not have gone where I intended to go, but I think I have ended up where I needed to be. - Douglas Adams
|
|
|
|
|
Ah, you don't have to trouble co workers. The rubber duck method works - buy a rubber duck and explain to it what you are doing.
OK, maybe in private.
|
|
|
|
|
Soon to be followed by: "How to update record?"
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
And then...
if(a="999")
{
MessageBox.Show("DATA DELETERATED");
MessageBox.Show("ALL YOUR BASE ARE BELONG TO US");
}
So old that I did my first coding in octal via switches on a DEC PDP 8
|
|
|
|
|
OriginalGriff wrote: I can't decide if he's unbelievably lazy, too dumb to walk and chew gum at the same time, or a troll
Someone new to programming is, well, new to programming.
Nothing is obvious when one has never programmed before.
With decades of experience with multiple languages it becomes easier to guess at solutions and also much easier to know how to write a google search string that will produce a correct answer. Or any answer.
|
|
|
|
|
Jschell, well said about "new to programming".
I can remember my early days were a grand exploration of logic.
Got hooked. When I look back at old code its like looking into my mind from the
past and thinking "what was I thinking?". Both good and bad code.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
It's hard to tell from the lack of context, but it appears as if your user is asking for feedback that the operation is over and that they should not repeatedly execute the event (such as push a button) to attempt to make your software work.
Modern software is asynchronous and with the limited context, it seems like a very reasonable request to know when your operation has completed.
I guess back in the day the UI thread would block while you were running your database update code on your UI thread and the fact that the application is now responsive again would tell you that the operation has completed and just didn't do anything.
|
|
|
|
|
Nope, this is just a "INSERT to DB" followed by a test to see if it worked. Retries haven't occurred to him yet ... and I suspect Console rather than UI given his skill level.
"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!
|
|
|
|
|
People with two years of high school classes who have done some "HTML programming" and have Google are professionals now.
So interviewing a candidate I sketch out some simple thing, usually on a white board, to write. It would take you and I less than a minute thought, take longer to write out than think out. New programmer should get it. You know, "sort three integers" or "which of three is greatest", etc. Don't worry about coding, I really want to hear how they think it out.
So I had one guy say to me "I can do this if I am hired - I don't really want to give my labor away". Then he was puzzled when I immediately stood up and thanked him for coming in and said "I'll consider you for the position" and he was OK with that... I considered him till I got him just past the front desk.
Arrogant 25 year old "professional".
No, not because we are getting old.
|
|
|
|
|
WPerkins wrote: I can do this if I am hired - I don't really want to give my labor away
This is because we all sit around writing apps to calculate factorials, or do bubble sorts on ten items and get paid for it ...
"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!
|
|
|
|
|
I have just written a utility in C (not C++, not C#, etc.). Created my own link list to build a dynamic "array", add by key, accumulate duplicates by key, sort by key, display accumulated summary.
Some of the younger guys were amazed one could do that in C from scratch... not a single "new", no framework.
Total size around 40K bytes.
|
|
|
|
|
I'll add debug logging for ELSE conditions so I explicitly know which way an IF statement resolved when I look at the logs. When messaging, not so much.
But then again, we just had a QA today that created 4 order number templates that were exact duplicates and then was wondering why a duplicate order number message was appearing when he created orders while switching back and forth between the templates.
I don't think anything beats the junior Dev that thought their Unicode issue was caused by the font being used.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
Lazy and dumb are not mutually exclusive... but given it is one of those unlikely to be a troll.
You should see what I get in my Data Structures college course. I emphasize to them it is not their fault up to now because prior professors have not required even minimal standards, but it IS their fault from this moment forward because now I have explained to them how the real world will look at their efforts.
|
|
|
|
|
Griff,
My first response was lazy, but I'd have to go with dumb. Lazy was based on it being easier to ask someone to do it for you, but dumb because posting the question takes longer than a quick search on how to write an if statement. Nothing wrong with not knowing how to do something, but asking something that would be found on your first search engine query is pathetic.
Then again, the premise of the conditional is completely wrong. "Record Exists" is not an "else" to a successful DB insert.
|
|
|
|
|
Wordle 676 3/6
⬜⬜⬜⬜🟩
🟨⬜🟨⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 676 3/6*
⬜🟨🟨⬜🟨
🟩🟨⬜🟨🟨
🟩🟩🟩🟩🟩
"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!
|
|
|
|
|
Wordle 676 4/6
⬜⬜⬜🟨⬜
🟨🟩⬜🟨🟨
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 676 4/6
⬜🟨⬜⬜🟨
⬜⬜⬜🟨🟨
🟨⬜⬜🟩🟨
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 676 5/6
⬛⬛⬛🟨🟨
⬛⬛🟨⬛🟨
⬛🟩⬛⬛🟨
⬛🟩🟩🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 676 4/6
🟨⬛🟨⬛⬛
⬛🟨⬛⬛🟨
⬛🟩🟩🟩🟩
🟩🟩🟩🟩🟩
I got *that* close to 3/6
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|