Office Hours — Today, July 12

Saturday, July 9

Mark M.
has entered the room
Mark M.
turned on guest access
Jul 12
9:05 AM
ndrocchietto_ivano
has entered the room
Mark M.
hello, Ivano!
how can I help you today?
ndrocchietto_ivano
hello world!
please let me recap one sec my thoughts(loading)
the small question of today is over android architecture
my class is growing, a friend of mine say in the lingo is called kinda class of god, because does everything. so I thought after I extracted the method with sub methods to put them into another class, that looks fine, but still is too big. So my question is
9:10 AM
ndrocchietto_ivano
as i have still a lot of @override methods there is a tecnique to separate them from the class?
Mark M.
not really
ndrocchietto_ivano
:( thanks!
Mark M.
I suppose it depends on what they are
there are two reasons to use @Override annotations:
1. You are overriding a method that you are inheriting from a superclass
2. You are implementing a method on an interface that the class implements
ndrocchietto_ivano
clear. Thanks!
Mark M.
in case #1, you have no choice but to have the @Override method
though there may be cases where you can move more of the "heavy lifting" of that method out to some other class
in case #2, you might elect to not have that class implement that interface
but instead move that interface to some other class
ndrocchietto_ivano
I did it, as it is a fragment with callback to the main, i moved the three interfaces to other three dedicated classes.But for the rest is all case #1
thank you Mark
Mark M.
happy to help!
ndrocchietto_ivano
:)
9:55 AM
ndrocchietto_ivano
ps. Mark I know you are busy and I would beglad to participate often to the chat.(have some weirdo questions cannot put on SO without taking downvotes) Please no need to say good bye if you go out.
after all we are coders, efficiency comes first :)
Mark M.
I had a connectivity problem earlier
ndrocchietto_ivano
whatever!
Mark M.
the last message I saw in the chat from you was ":)", somewhere around 9:13am
I apologize if I missed any other messages
10:00 AM
ndrocchietto_ivano
is correct the that was the last POST from my client:)
Mark M.
OK
ndrocchietto_ivano
I do not want to abuse of your patience, small questions but one per chat
Mark M.
you are welcome to ask as many questions as you want in a chat
ndrocchietto_ivano
do not want to abuse really
Mark M.
if others are in the chat, I rotate between participants
ndrocchietto_ivano
one is enough
Mark M.
whatever makes you feel comfortable
ndrocchietto_ivano
:)
Mark M.
that being said, this does end today's chat (before I lose WiFi again...)
the next chat is tomorrow at 4pm US Eastern
ndrocchietto_ivano
so please do not need to say goodbye:)
I will be with my weirdo question
Mark M.
the transcript for this chat will be posted to https://commonsware.com/office-hours/ shortly
ndrocchietto_ivano
great
Mark M.
have a pleasant day!
ndrocchietto_ivano
same 4 you
ndrocchietto_ivano
has left the room
Mark M.
turned off guest access

Saturday, July 9

 

Office Hours

People in this transcript

  • Mark Murphy
  • ndrocchietto_ivano