« first day (4 days earlier)    last day (14 days later) » 

Tek
1:45 AM
I'm home at the moment
 
 
2 hours later…
Tek
4:04 AM
@Bas Just looked at your new code and it's a lot better. The only improvement I see is that $vehicleOwner already has vehicle inside. So just passing $vehicleOwner to parse($vehicleOwner) should be enough.
Inside parse() you can get the $vehicle object from $vehicleOwner
 
Tek
4:48 AM
There's another issue
DeliveryVanDataParser depends on DataPropertyResolver. The point of Dependency Injection is to inject dependencies to objects that need it. It's not immediately obvious that DeliveryVanDataParser needs another class until you want to use it then the developer would have to include DataPropertyResolver. It's a pain, I shouldn't have to delve deep into a class just to use it only to find out I need something else.
class DataPropertyResolver
{
public function __construct(DataPropertyResolver $resolver)
{
}
}

Would make it obvious what it needs in order to work.
class DeliveryVanDataParser
{
public function __construct(DataPropertyResolver $resolver)
{
}
}
Whoops, I meant this one ^
Then if you don't want to specify the dependencies. Just use a factory to manage and inject the dependencies and return the built class with minimal effort.
That being said, I would get rid of PropertyResolver::resolveWeightClass() and move it to $vehicle->resolveWeightClass($data). $vehicle already knows or rather it should know it's own weight (property). So it should be able to resolve it's own weight class if you pass the $data into the function's argument. Then the code would be refactored better, one less dependency and it would make more sense IMO.
Basically $vehicle should know everything about itself. If it knows it's own weight, it should also know it's own weight class too I think :)
 
 
4 hours later…
Bas
8:53 AM
Alright, so in all of my abstract method's i can actually remove the VehicleType dependency?
Because i can just call that from VehicleOwner
 
Bas
9:39 AM
Is it possible to add you on Skype? I think it's not really handy to go to this page all the time haha :P
 
Bas
10:18 AM
@Tek What do you mean with the PropertyResolver btw? That i have thee resolveWeightClass method in every vehicle parser class that needs itt?
Because now, DataPropertyResolver contains all of the utility methods.
Or is gonna contain actually
 
 
4 hours later…
Tek
1:58 PM
@Bas Good day, just came in to work.
 
Bas
Oh hey man :) Good, morning i guess?^^
It's noon here though.
 
Tek
Oh? Where are you from?
 
Bas
2:20 PM
Holland, you?
 
Tek
2:39 PM
Texas, US. I did mention it yesterday : )
 
Bas
Yeah but i didnt know if you really lived in Texas haha :)
That's pretty cool
 
Tek
Lucky, my favorite artist is from there :(
 
Bas
Who is it?^^
It reminds me of Upon a burning body so much though.
 
Tek
A group called Noisia
 
Bas
Never heard of em, is it metal?
 
Tek
2:42 PM
Nah, but their sounds are pretty mental ;)
 
Bas
I'm listening it right now, sounds great :o
 
Tek
oh? which?
 
Bas
Dubstep-ish
youtube.com/watch?v=b-xFLkZtBHk I'm listening that right now
Which sounds like drum and bass, which i find awesome too
 
Tek
They are drum & bass
: D!!!!!
 
Bas
Love it :p
 
Tek
2:45 PM
\m/
Europe knows where it's at. Metal and Drum & Bass
\m/
 
Bas
Everytime i go to a D&B gig, i hear this awesome music.
 
Tek
damn this hippie pop music
 
Bas
But when i try to listen it at home, when using soundcloud or something
 
Tek
in the US
ya?
 
Bas
I dont like it anymor e
 
Tek
2:45 PM
LOL
Yeah, it's really club music
 
Bas
Yeah you know why
Because at a gig, it's much heavier and dirtier
and i cant seem to find those tracks...
 
Tek
Right?!
Noisia has all the heavy stuff fo sho
 
Bas
Yeahh\
Yeah, what i'm listening right now is the heavy shit
What i hear at gigs
But its seriously the first i've found
 
Tek
Try their track Shell Shock
and or Friendly Intentions
 
Bas
My pc boxes are tripping shit.
Holy shit
Do you have more of this music?
 
Tek
2:48 PM
LOL of course
: D
 
Bas
When i search up "drum & bass" on youtube, i always get this really soft music
Sort of a chill out kind i guess
 
Tek
nod
you want to try searching for neurofunk or darkstep
 
Bas
Ah okay, yeah, that are some different names indeed
 
Tek
hehe
 
Bas
I like trap music aswell btw :o
The hard stuff
The dirty stuff*
 
Tek
2:52 PM
What about soft heavy? youtube.com/watch?v=jyYYMmWj4RU :O
 
Bas
Sounds nice to, chill music.
The intro then.
not anymore, lololol
 
Tek
haha k
 
Bas
But can you add me on skype?^^ It's alot easier for me
 
Tek
hmm sure why not, make sure you write it down quick so I can delete and keep it from it being crawled by google :p
 
Bas
true, it's basvandriel94
Is it really how it goes? :P Google stealing all your search terms?
 
Tek
2:56 PM
eh, well there's also spam crawlers
they search for emails or user names
I added you btw
 
Bas
ah thank you.
Nevermind can't :) Ohwell.
 
Tek
LOL
I warned ya
You're the owner of the room. You can delete this room I think. No need for it anymore, yes?
 
Bas
Aye' i'll check skype, one second
 

« first day (4 days earlier)    last day (14 days later) »