Office Hours — Today, November 22

Yesterday, November 21

Nov 22
3:55 PM
Mark M.
has entered the room
Mark M.
turned on guest access
4:10 PM
Kai H.
has entered the room
Mark M.
hello, Kai!
Kai H.
Hello Mark
Mark M.
how can I help you today?
Kai H.
Have you read "Clean Code" by any chance? Or similar books?
Mark M.
not in a couple of decades
Kai H.
So I guess you can't recommend any?
Mark M.
no, sorry
Kai H.
How did you come to your way of structuring code?
4:15 PM
Mark M.
if you are referring to book examples, mostly those tend to follow the general patterns set forth by Google and other Android experts, that I have learned from documentation, blog posts, presentations, etc.
Kai H.
I was more wondering about your personal style
Mark M.
and where there are multiple choices, I tend to pick ones that I think will be popular longer and/or are ones that I think that I can explain better
I guess I'm not certain what is covered by that, sorry
can you give me some examples?
Kai H.
Hm
It's hard :)
4:20 PM
Kai H.
I have no specific example right now.
Mark M.
¯\_(ツ)_/¯
Kai H.
The reason for that question is that I started reading "Clean Code" and didn't understand one of the examples for good code. And after some time I decided that that example maybe isn't as good as the author thinks.
And that I might have to find different books with additional ideas
To eventually find my own "style" of programming, how to structure code, how to make it readable and maintainable and so on.
Mark M.
well, for that, it's a bit like riding a bicycle: you learn by lots of early failures
eventually, you will learn what sorts of patterns and structures do and do not work well for the way that you tend to think about programming
blending those tendencies in with those of others -- whether they are teammates or experts -- gives you practical approaches that you will feel work and work well with others
as you migrate to new environments (say, switching from Android to iOS), you start over, though with more experience to more rapidly get to a good spot
4:25 PM
Kai H.
I guess that there is often an underlying "theme" to ones programming.
Which you try to take over when you learn a new environment.
Like "I like readable variable names" :D
Mark M.
right, and some elements will carry over nicely, and others less so
Kai H.
Instead of "prioFct" or idEl
Mark M.
I sincerely hope those were random key sequences and not real variable names that you have encountered :-)
Kai H.
The second one was
The first I encountered, the second one I invented.
prioFct is especially nice as it describes a feature that neither the original programmer nor the team that probably requested it remembers about. So it exists but no one knows why really.
(As there is neither a specification nor explaining comments or anything of the sorts).
Mark M.
yeah, I would not recommend that as a variable name, and that's where code reviews can help, to try to prevent that sort of thing from getting into the code base in the first place
4:35 PM
Kai H.
I think I'm out of questions for the time being :D
Mark M.
OK
5:00 PM
Mark M.
and, that's a wrap for today's chat
the next one is tomorrow(!) at 8:30am US Eastern
Kai H.
Three in a row
Have a good time.
Mark M.
and it will be four on Tuesday
have a pleasant day!
Kai H.
has left the room
Mark M.
turned off guest access

Yesterday, November 21

 

Office Hours

People in this transcript

  • Kai H.
  • Mark Murphy