Skip to main content
Tweeted twitter.com/StackSoftEng/status/1275307625689886720
added 39 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8

I have previously employed the following follow up questions, which have rarely workedand I am looking for better, or at least more, follow questions:

I have previously employed the following follow up questions, which have rarely worked:

I have previously employed the following follow up questions, and I am looking for better, or at least more, follow questions:

edited title
Link
yeerk
  • 500
  • 4
  • 8

Ways to explain my code when told it doesn't make sense

Question Protected by gnat
added 87 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
  • What part specifically seems to be confusing?
    • Sometimes this works, but often the answer is "the whole thing". I have been in meetings with 5 other programmers, where all of the programmers agreed they didn't understand my code, but none of them could give any specifics parts which were confusing.
  • Are you familiar with conceptpattern "X"?
    • I have tried to learn the names of the coding patterns I tend to use. I will bring up these names, such as "the visitor pattern", and ask them if they are familiar with this pattern. If they are familiar with it I try to show them how my code is an implementation of that pattern. This seems to stop them from immediately asking more questions, but invariably we seem to come back to the same code, and so I am afraid while they fully understand the pattern, the connection between the pattern and my code is not obvious.
  • What are some solutions to problem "X"?
    • Sometimes I try to get them to actively engage with solving the general problem, hoping that if they explain how they would solve it, I can show them the parallels between their solution and mine. This works, however often times the problem is a bit too complicated to just solve in your head, and so they can't quickly describe how they would solve it.

An example of existing code can be found here: hereoriginal code

I am opposed to this style, as although it is clear, it meant adding a new property requiredrequires changing 4 pieces of code, (spread across 3 different files) to add a variable. The steps to adding a new variables are: update the state definition, addingadd a new action, addingadd to the actions union, and addingadd a reducer handler.

A recreation of my proposed code can be found: herechanged code

  • What part specifically seems to be confusing?
    • Sometimes this works, but often the answer is "the whole thing". I have been in meetings with 5 other programmers, where all of the programmers agreed they didn't understand my code, but none of them could give any specifics parts which were confusing.
  • Are you familiar with concept "X"?
    • I have tried to learn the names of the coding patterns I tend to use. I will bring up these names, such as "the visitor pattern", and ask them if they are familiar with this pattern. If they are familiar with it I try to show them how my code is an implementation of that pattern. This seems to stop them from immediately asking more questions, but invariably we seem to come back to the same code, and so I am afraid while they fully understand the pattern, the connection between the pattern and my code is not obvious.
  • What are some solutions to problem "X"?
    • Sometimes I try to get them to actively engage with solving the general problem, hoping that if they explain how they would solve it, I can show them the parallels between their solution and mine. This works, however often times the problem is a bit too complicated to just solve in your head, and so they can't quickly describe how they would solve it.

An example of existing code can be found here

I am opposed to this style, as although it is clear, it meant adding a new property required changing 4 pieces of code, the state definition, adding a new action, adding to the actions union, and adding a reducer handler.

A recreation of my proposed code can be found here

  • What part specifically seems to be confusing?
    • Sometimes this works, but often the answer is "the whole thing". I have been in meetings with 5 other programmers, where all of the programmers agreed they didn't understand my code, but none of them could give any specifics parts which were confusing.
  • Are you familiar with pattern "X"?
    • I have tried to learn the names of the coding patterns I tend to use. I will bring up these names, such as "the visitor pattern", and ask them if they are familiar with this pattern. If they are familiar with it I try to show them how my code is an implementation of that pattern. This seems to stop them from immediately asking more questions, but invariably we seem to come back to the same code, and so I am afraid while they fully understand the pattern, the connection between the pattern and my code is not obvious.
  • What are some solutions to problem "X"?
    • Sometimes I try to get them to actively engage with solving the general problem, hoping that if they explain how they would solve it, I can show them the parallels between their solution and mine. This works, however often times the problem is a bit too complicated to just solve in your head, and so they can't quickly describe how they would solve it.

An example of existing code can be found here: original code

I am opposed to this style, as although it is clear, it requires changing 4 pieces of code (spread across 3 different files) to add a variable. The steps to adding a new variables are: update the state definition, add a new action, add to the actions union, and add a reducer handler.

A recreation of my proposed code can be found: changed code

Removed from Network Questions by Thomas Owens
Hid massive URLs behind links
Source Link
anaximander
  • 2.3k
  • 3
  • 20
  • 21
Loading
Code formatting
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
added 497 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Code samples
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
added 18 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
added 119 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Repeated self less, removed less useful information for brevity
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
deleted 12 characters in body
Source Link
Robert Harvey
  • 200.7k
  • 55
  • 470
  • 683
Loading
Became Hot Network Question
added 466 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
added 17 characters in body
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Added additional information
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Added some bolding to make the wall of text easier to read, as well as adding a note about the language and field I use.
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Added some bolding to make the wall of text easier to read
Source Link
yeerk
  • 500
  • 4
  • 8
Loading
Source Link
yeerk
  • 500
  • 4
  • 8
Loading