« first day (648 days earlier)      last day (4300 days later) » 

11:00 PM
e.g. forum_component to encompass forum, topic, and post classes
 
at a blind guess (no code shown) i would actually tell that the question is pointless because you should restructure your code
any time you create a class just to "encompass other classes" , it is a pretty safe bet that you are doing it wrong
 
I'm well aware that I do need to restructure my code (this is just a for-fun project), but that was just an arbitrary example of something I haven't coded yet
 
user895378
I find it's good to avoid "meaningless" verbs in method names and meaningless nouns in interface/class names. For example, don't name a method "processSomething" because a verb like "process" doesn't impart any specific clue as to what's happening in the method. Same goes for interface/class names ... if there really is some sort of ForumComponent-ness it might be okay, but "component" is another one of those vague, catch-all words that don't really mean anything.
 
user895378
Try to capture the essence of what things do/are in their nomenclature.
 
hmm .. @rdlowrey , another "what's you opinion" question: should Authentication service be responsible for creating users
something feels a bit off
 
user895378
11:09 PM
Right off it seems like an odd place to create users.
 
Yeah , which leaves me with need to think of a name for service which would deal with user accounts
AccountManager would be a really bad choice
 
user895378
hehe, agreed.
 
user895378
Jun 18 at 17:17, by ircmaxell
There are only 2 hard problems in computer science: 1. Cache Invalidation and 2. Naming Things
 
user895378
@orourkek ^
 
pretty much :}
 
user895378
11:12 PM
@tereško Everything that comes to mind has some variation of "Register" or "Registry" which is a bad choice for obvious reasons
 
yeah
i bet , a some point i will just end up naming class TheThing and making a TODO item "think of a better name later"
 
user895378
lol. Is it just me or are thesauruses completely unhelpful when trying to name code elements?
 
user895378
I don't think I've ever actually derived a useful class/method name from checking an online thesaurus.
 
just pull a cakePHP and name it something completely random.
 
@rdlowrey , but i always end up there
 
user895378
11:15 PM
The BetYouCantTellWhatThisClassDoes class + @todo ALL OF THE THINGS
 
@rdlowrey beyond worthless, because I was just browsing one 10min ago
@todo: naming. ... meanwhile: class nameA implements nameF {
 
how about Collective , Mob, Community, Crowd or Demographic ?
@orourkek , interface should be an adjective or a noun that is derived from adjective
 
user895378
I like Community and Demographic with a very slight preference for the former.
 
yeah , they are the most neutral ones
 
community has a lot of connotations :/
 
11:23 PM
@orourkek i think you are confusing it with Committee
aslo .. you both should not be bitching about naming things
it's your native language
 
true enough ^^
 
user895378
true.
 
also , what is the connotation of "down-going of the man" or simply "down-going man" ( in context of Zarathustra ) ?
 
Nietzsche's zarathustra?
 
11:28 PM
yes
 
iirc from uni, that whole part was about rebirth, or passing "trials" to be "reborn"
 
as you might suspect , google is not really all that helpful in this case
 
though as I re-read the passage, I'm not so sure I'm remembering it correctly
 
anyway , i will go with Community ( the Demographic would be better suited for a for some government/statistics site )
 
my initial thought is that he went down [the mountain] to overcome himself and his past thoughts
 
11:33 PM
no , there is repeated reference to sun going down
 
and by spreading the word, he was being (somewhat) selfless
 
Yo
 
then again , i am not finished the book yet
 
> Therefore must I descend into the deep: as thou doest in the evening, when thou goest behind the sea, and givest light also to the nether-world, thou exuberant star!
> Like thee must I go down, as men say, to whom I shall descend.
 
user895378
DISCLAIMER: I've only read it in translation but ... I've heard different interpretations -- I tend to think of it in terms of bearing the weight of some deep knowledge in the midst of the every-day mundane life. Like it doesn't matter what you know or what you've accomplished in the past, you must still see to the boring details. In a more existential way, no matter what your mental achievements, you're still tied to your frail human nature. You have to fulfill your animal needs.
 
11:35 PM
maybe i should just give up on english version on dig up the german one
 
formatting fail
 
@tereško define error state
 
"something went tits up and user should be informed"
 
@tereško class DontChangeThisNameOrElse {
@tereško an expected failure (invalid email address?) or unexpected (database decided to throw random errors)?
 
@rdlowrey My interpretation is more about being selfless, like he realized the sun has always been
but what you say is interesting
 
11:37 PM
@ircmaxell , kinda both , because i was thinking on whether to deal with errors at instance level (domain objects and mappers) or service level
 
user895378
@orourkek It appeals to me ... It's a bit more fatalistic, but at the same time I think it kind of celebrates the fact that we can achieve great abstract successes (if fleeting) but we're always bounded by the limits of our physical bodies.
 
@rdlowrey , so basically it is referring to slumming ?
 
@tereško unexpected errors should be thrown as exceptions and handled at the appropriate place (likely the controller or view)
expected errors on the other hand are a bit more trickey. Perhaps have an error state on the domain object that's checked for by the controller/view... But not so sure there
 
@ircmaxell , the part of the problem is that errors would be rarely caused by GET calls .. the rest of requests require a redirect
which means that i have to temporary store the error somewhere
also , i would hope to avoid any data flow from model layer to controller
@rdlowrey , seems to fit well with tone of the book
 
user895378
@tereško I don't know if I'd use slumming ... I think it's more about the natural state of man -- that it's where man is all the time and that we temporarily climb the mountain to a higher functioning state.
 
11:42 PM
@tereško Some of them would be caused by GET errors. And those would be exceptional...
@tereško Why would you want to redirect? That's exactly what you don't want to do
 
user895378
In this week's issue of the Metaphysical PHP Newsletter ... :)
 
@rdlowrey , well , you cannot only read about development-related stuff
@ircmaxell , ok .. redirect is a conditional thing , ir kinda depends on whether you are making a simple http request , or you are doing XHR
@ircmaxell , oh , its from that guy again
 
therefore, the redirect would be done in the view ;-)
 
i completely agree
but where it actually is done does not change, that you need to save this error state and then be able to restore it if needs be
 
Yes, but the storing it and restoring it wiring should be in the view
if it's actually stored by a model's service provider, that's fine
 
11:50 PM
damn ., english is failing me
 
Did I really fail that bad with the latest post? reddit.com/r/PHP/comments/x4s4u/daos_and_mysql_a_response
 
@ircmaxell , now with this i cannot agree or disagree without some thinking about
as for article : that title sucks , if you want to attract information
it has to be a bit more inflammatory
 
@tereško the wiring only, not the logic (meaning the decision to store it or not)
If you don't do that, then you're leaking view related responsibilities (or to put it another way, logic that depends on information about the view) into the model
 

« first day (648 days earlier)      last day (4300 days later) »