« first day (2191 days earlier)      last day (2773 days later) » 

12:03 AM
Is it just the nginx config that is gone?
Because that would be totally weird
 
yes all the /etc/nginx/conf.d
ugh journalctl is useless on this
\o/ I got one site back
two more left...
I'm literally redoing all what I did in the last few hours -_-
 
time to put those files under source control....
 
yep indeed
 
Which reminds me..... @peehaa how are you DB backups?
 
@Danack I was recently allowed to test one of them \o/
 
Wes
12:14 AM
am i misusing the term "mapper" if it refers to a set of functions for grabbing stuff from a source (not necessarily a database, could even be a php array) that builds DOs or aggregates through factories and offers functions to save back to that source?
cc @Gordon ^ - gordon knows this stuff :B
 
@Wes that would be accurate, assuming a) this is most of the times used in an oop context, so these functions would be methods that belong to b) one object grouping sets of method to build a specific DO
hence there would not be a global mapper building stuff.
 
Wes
i don't get b)
 
\Model\Mappers\Chat\Room would be responsible for mapping data from various sources into a Room instance, and \Model\Mappers\Chat\Message would be responsbile for mapping data from various sources, that are not necessarily the same as the ones from the Room, into Message instances
You wouldn't have a \Model\Mappers\Chat responsible for mapping towards both these instances
 
Wes
why? regardless of the example
 
@Danack no
 
Wes
12:26 AM
data mappers are usually 1:1 with aggregates, which means they cover several kind of objects
 
what do you mean by aggregate?
an object that have other objects as properties?
 
Wes
aggregate in oop/domain driven design terms
an isolated hierarchy of objects, yes
 
Ok. I maintain my view: a mapper can call other mappers to build parts, then group these in one aggregate. For reusability's sake I would have two different mappers, for when I need to do only one part of the aggregate
 
Wes
how do you write a SQL query with a JOIN then. you don't, it's my guess :B
 
hmmmwat?
I wasn't really thinking sql context, tbh
 
Wes
12:32 AM
well, how can you avoid thinking of sql
 
data can and does come from various sources, be it an external api, a local database, or a file
 
Wes
so?
 
so I believe I shouldn't take one type of data source into account more than the others
I think I'm getting what you are saying tho
like, if data to build one aggregate comes from multiple tables, I should have one mapper doing the whole query then mapping all at the same place, instead of querying multiple times for each different type. something like that?
thinking out oud: in that case I think I might create a method in a service, that would query the database one time, then send this returned data to different mappers responsible of building different types, then aggregate all of this
 
Wes
@FélixGagnon-Grenier it's not really the reason, if with that you mean performance
 
please explain further
 
Wes
12:40 AM
the reason is maintaining domain validity among the objects in the aggregate, while you are using them to apply changes and stuff
if you have very small aggregates, composed of one object only, your services will contain way too much logic, as you will need to check keys match and kinda things
with proper sized aggregates, the logic must stay within the objects in the aggregate
which means that you want to download them all as a single unit from the data source, not just "some pieces" of them
ergo, the data mapper reads and saves the aggregate, not the single domain object
 
@kelunik because that is the only way to tell DOM what charset to use when parsing the document :-/
 
Wes
and the repository also, it's indexed by the aggregate root (the object "entry point" giving access to all objects in the single aggregate) so also that is 1:1 with the aggregate
is what i've written even minimally clear? :B
 
... I undertand some of these things :D others I even agree with, but I think my domain driven design foo is not in the same league as yours
 
Wes
i'm not making this up though, i was confused about this stuff too, you should read domain driven design. it's not really new stuff, but it has a point about this kind of stuff
 
12:45 AM
New rule: find out what @_DaveRandom does and do the exact opposite
 
:D
 
Wes
it's not really hard @FélixGagnon-Grenier :B what isn't clear?
(apart my english)
 
@Wes I think the data mapper being responsible to read and save the aggregate is not contrary to using other mappers to save parts of the aggregate
when and if it makes sense, eg when your aggregate uses multiple types
 
Wes
it's not really necessary
 
12:50 AM
so.. you are assuming that each part of this aggregate will never be mapped by itself?
think of an aggregate representing a movie producer. would there really be only one mapper, that maps all there is to map (movies, person, home, address)? Or multiple ones, (one for movie, for when you want to map a list of movies for instance) grouped by the Producer mapper?
 
Wes
of course not, aggregates must be small, but not too small, unless you want to have monumentally big services
 
Anonymous
@DaveRandom ping
 
@Wes lol. so we are saying the same thing, from the start :D
 
Wes
@FélixGagnon-Grenier yes, because the aggregate is designed to be the minimum set of data that you are allowed to change within a single transaction, which means that you don't want one object in the aggregate to come from postgresql, while another coming mysql. because, transaction can't span multiple drivers
 
Yeah, I agree. At some point, I was convinced you thought mappers would be some kind of huge objects containing the logic to save huge complex entities
 
Wes
12:56 AM
no :B actually designing small aggregates is one of the hardest things in DDD
 
so... back to your original question, the mapper would be a set of like minded functions that are used to build a specific type (aggregate) to and from different sources
If that is really what you meant :)
 
Wes
yes and save it back to it
til, you can throw anything in js twitter.com/WesNetmo/status/787097311654600704
 
yeah, js is awesome :D
 
:D that's such a cute panda
 
Wes
i love that photo
made it straight to the second position
first position is this
 
1:10 AM
heh that's a nice one too
 
perspective :)
 
Wes
lol
do you requirejs @FélixGagnon-Grenier ?
 
and this and this made my day pretty much
 
1:14 AM
@Wes do you mean, do I use require?
 
Wes
can i set an arbitrary require('anything.js') to return something i define myself, rather than have it look up for the file?
 
Wes
oh nice. SOMETHING NICE IN JS. no way
 
var MyModule = require('./my_module.js')
be sure to have a module.exports MyModule in that file
 
Wes
no :'(
 
1:15 AM
or export default if you're with es6
 
Wes
i mean
 
@Ekin lol the second one. guy just throws the poor cyclist to the ground... :/
 
Wes
var myShit = {};
require.setFor('./whatever.js', myShit);
var AAA = require('./whatever.js');
console.assert(AAA === myShit);
i want to override the file-require with something i define myself
because unit testing
 
oooohhh.
I have no idea. you do have crazy thoughts, you know that?
 
Wes
indeed :B
 
1:18 AM
I think you're one of those that produce the highest ratio of "What the hell is that even for" per message in this room :D
no offense meant
 
Wes
:'(
 
dude, I just gave you a compliment :)
 
Wes
i do tell that to myself, myself
 
like, you think out of the box
 
Anonymous
@PeeHaa pringy
 
Wes
1:20 AM
i'm alone outside that box
 
Wes
:B
 
@FélixGagnon-Grenier yeah, like, he had one job...
 
I wonder if that's material for "Objection we begin again"!
 
1:27 AM
heh
if it survives the first five minutes I think it might just get an answer
... and actually... I also want to know if it is possible. tempted to upvote
this is some knid of perverted dependency injection container thingy
not sure why you tagged webpack tho @Wes
 
Wes
me neither :B
 
lol omg. such classical drama. we just received the seatings for a concert (that is, the order in which violonists are seated. y'know) and one guy was too far away. threw whining mails and got the order changed. lol what a loser.
like "omg, I can't be seated so far from the conductor, people will think I am so bad"
 
pfft indeed unnecessary drama
 
1:43 AM
tbh, I was thinking a bit like that, until one girl playing saxophone said such a remarkable thing in university. "I'll play whatever part's in front of me", in response to the teacher asking students about the seating. life changing
 
how many violinists/sections?
I feel like it's all about stage and how the conductor wants to balance the sections so... unnecessary to feel you were left behind etc
 
14 violins, 6 violas, 5 cellos, 3 double basses. and winds and brasses, two of flutes, oboes, clarinets, basson, horn, trumpets.
timpanist
we're playing mendelsohn's italian symphony
 
aww that sounds interesting
how nice
 
can't wait :)
 
will it be recorded?
I hope it will be recorded and made public somewhere :P
 
1:54 AM
it will :) we have very few recordings on the internets tho
 
great
 
I made a point of this before summer and everyone went to their respective countries
we will be talking about this more as the season begins
 
: )
 
@Ekin here an excerpt of a concert we did two years ago.
the conductor is seated because he fell in the stairs in the pause
breaking his hips
*hip?
but he would not have it that we'd postpone the concert
so he conducted, seating
by heart
 
wow
that's the spirit
 
2:01 AM
he's an amazing person. super inspiring
 
Wes
i watched a concert once. chairs weren't comfortable enough to sleep on. i bet on purpose
:B
 
morning
 
Wes
yo linus
 
2:02 AM
o/
 
Wes
i know nothing of classic music, and it's a shame for an italian
classic or classical? i hate english :D
 
you should at least learn of Paganini, and listen to some of his concertos
that would be classical :p
 
this is really nice
 
like, paganini's second concerto for violin, could be an ok entry point for someone who's not sure if they're into it
@Ekin yeah, paganini is (was) amazing
 
Wes
i know paganini, but if i heard his music i couldn't tell he wrote it
 
2:05 AM
:p
 
that kinda comes after years I guess
 
Wes
probably because all classical music is numbered rather than named
sesta sinfonia in fa maggiore carpiato
not really a name
 
I totally can recognize those tho :d
smiley licking it's nose ------------^
 
:D
 
Wes
help me felix, canon rock's author is? and jack black meeting his buddy for the first time in tenacious-d? :B
 
2:08 AM
youtube.com/watch?v=oYlJ1wVLPPo this is one of my faves
 
the canon is pachelbel's
this tenacious d's stuff is bach's
not sure the name a few seconds
 
Wes
it's one of the most famous, unable to remember the name
 
Bouree in E Minor
 
Wes
incredible..
 
2:09 AM
that
 
Wes
jack black completely deleted bach
 
Oh, I've listened to Bach.
 
heh. it would be hard not to. so much of his themes are used everywhere :)
 
Wes
but i can recognize some singers, i do know bocelli (because he's blind) and pavarotti (rip) (because he is(was) fat)
:B
 
also one of the greatest tenors of all times
:D
and italian, no?
 
Wes
2:12 AM
youtube.com/watch?v=2SZsxTBCzoA . yeah italian, both of them
 
here's another thing we did with an other orchestra. less classical. more tango like. from piazzolla. youtube.com/watch?v=fh2ot8WLdv0
damn, this network slowdown again
 
makes me freak out when messages appear before one of mine that has already been posted
 
Wes
ahhhh damnit
 
2:17 AM
@Ekin yeah. totally
 
Wes
@FélixGagnon-Grenier i need your help
wait
 
halp!
no wait :P
 
Wes
onlinesequencer.net/199119 @FélixGagnon-Grenier i fucked up the notes. i'm desperately trying to remember the name of this in like years
 
edvard grieg
hall of the mountain king
 
Wes
yeeeeeeeeees
 
2:20 AM
and yeah... you fucked up the notes, but gj nonetheless :D
the whole suite is nice. it's called peer gynt
 
isn't that a play
ya
 
Wes
man that brings up good memories, because as i kid i've set windows98 to play that song on boot :B the midi version of it
 
Wes
switches to motley crue
 
2:27 AM
dem hairy hipsters
 
Wes
they must be like 60 now :B
hence, no hair left, probably
 
/me is listening apocalyptica's hall of mountain king
 
eeef double posted? nope
 
Wes
lol
 
2:28 AM
yeah got someting that seemed like that too
 
Wes
not bad
 
happy to know that it's not only me. relieves me from destroying my router with a hammer for this much more time
 
lol the guy is literally abusing the cello
 
yeah
they are crazy
> We are looking for another full stack web developer to join our team remotely. This is a long term relationship and you will work alongside our existing team to get projects over the line.
LOL
 
:D
 
Wes
2:32 AM
lol
 
yeah I'll rework that line
 
btw do you have any tattoos?
 
lol just bumped into this
 
Wes
I reached JS LEVEL 2: I don't give a fuck anymore as long it works.
 
2:37 AM
that is level -1
level 2 is it works, I know why and I can do it again
 
Wes
shut up!
:B
 
Oct 11 at 23:22, by Félix Gagnon-Grenier
If it wouldn't be creepy as fuck for anybody seeing me without clothes for the rest of my life, I'd tatoo Bach's face on my heart.
 
:D
I've got a few... and been years since the last one
 
I hear it hurts.
 
Wes
that's not creepy, it's just nerdy @FélixGagnon-Grenier sorry :B
youtube.com/watch?v=t1RTgznup5c how is this not classical music
or chamber music
 
2:41 AM
@FélixGagnon-Grenier near the bones/joints or thin skin
 
@Wes it is :)
@Ekin aie aie aie :D.
on that note, good night dear random internet friends
 
g'night
 
Wes
gn :D
 
some old irl friend called me out of the blue, hence beer is gonna be my goal from now on
 
nn
 
2:45 AM
I'll play some cs go and sleep too
laters o/
 
Wes
 
lol :D that looks so much like ace
 
Wes
twitter.com/Uber_Pix probably worth a follow :P
 
 
1 hour later…
3:51 AM
good morning guys
 
moin
 
back here aftr a long time
 
Wes
\o
 
/o\
 
moin Joe
 
Wes
3:57 AM
hey joe, do you have a php tattoo or my brain invented it? :B
 
I do
 
Wes
ha, awesome
 
how long should I wait for vagrant to bring up a machine before admitting to myself that it's not happening ?
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-16.04'
    default: URL: atlas.hashicorp.com/bento/ubuntu-16.04
==> default: Adding box 'bento/ubuntu-16.04' (v2.3.0) for provider: virtualbox
    default: Downloading: atlas.hashicorp.com/bento/boxes/ubuntu-16.04/versions/2.3.0/…
oh
the thing is running but I can't get a shell ... it's too early in the morning for this shit ...
stuff needs to work ...
ssh_exchange_identification: read: Connection reset by peer
 
Wes
lol
 
it's not obvious why that's not working, right ? I'm not missing some important piece of information, am I ?
 
Wes
4:13 AM
you aren't asking me, right? :D i don't even know what vagrant is
 
I'm not very familiar either actually
 
Wes
is it a blue pill? :B
 
programmers used to know how to install and configure operating systems, it was like a pre-requisite of programming, but whatever, apparently it doesn't matter if you can't do that anymore and need some software, or another person and some software, to do it for you ...
I just want to see a ruddy segfault that I can't reproduce
 
Wes
indeed
i literally know nothing about operating systems
 
I'm not in a very good mood this morning ... but this morning, I think you should feel as ashamed as lay people who say things like "I'm not very good at numbers" ... a normal person that is really "not good at numbers" is as useless as a programmer that doesn't know how to install and configure an operating system for themselves, normal people need numbers like we need operating systems ...
I don't think you really mean that, do you ?
 
Wes
4:18 AM
:D i am very ashamed about that
i can install windows and linux, obviously but i can't really say i'm an expert
for instance if i had to configure a web server i'm pretty sure it would be hacked within minutes
 
you might mean something like "I know nothing about how kernels work", but I'm sure you do know how to install and configure an operating system ... I'm not expecting anyone to know about the intricate details of how a kernel works ...
@Wes I think we all think that, don't we ?
that's why we have sysadmins
what's required of you is being able to set one up to run your own code, that's all ...
 
Wes
which not necessarily are better than us, but they get the blame if something goes wrong :B
 
some of us might be brave enough to identify as sysadmins ... not me either ... the only software I will build myself on production machines is php ...
(or stuff I wrote, obviously)
anyway, none of this brings up the fucking vagrant box ... so I give up ...
 
Wes
lol
i don't get what is vagrant. what's wrong with the good old vmware or virtualbox?
 
it's like a high level virtualbox
well it's like a package manager thing, you can provide prepared images ... but as you said, you can do that anyway ... it has it's place, automation ...
 
4:26 AM
It's basically a command line vbox manager that sets up port forwarding and shared folders for you
 
Wes
i see
 
@littlepootis do you know much about vagrant ?
is there a way to just show the box normal with vb ?
ah, a thing happened
 
You should be able to just start it with the VB default GUI.
 
it is provisioning I think ...
@littlepootis thanks, that'll be the next thing I try
 
4:42 AM
nope, I can't sleep at all
better poke Jeeves code instead
 
morning @Ekin
 
morning @Joe
ugh, I have 12 days left in south america
 
5:00 AM
/o
 
crap, I broke apcu
 
real world?
 
Wes
@Archer where you goin
 
I saw a guy with a DP similar to @Archer's with the name "Archer-Hunter"
 
Wes
5:07 AM
> !!urban DP
 
@Wes some random places
!!urban DP
 
[ dp ] Double Penetration
 
Ikr
 
Wes
rofl
 
posted on October 15, 2016

New Cyanide and Happiness Comic

 
 
1 hour later…
6:28 AM
when does it make sense to use static elements in a method? I don't think it does here, but here?
that 2nd one could be a const of class too I guess
 
Wes
6:42 AM
3v4l.org/G6V3h 3v4l.org/Aa1FA @Ekin string seems interned in php7, so using static is probably worse, as it stays forever in memory even when all Foo instances are destroyed
nope that's bullshit, it stays in memory anyway. so there's no difference except few bytes
it seems the non static version uses fewer bytes, tho
 
I see
 
Wes
!!wiki string interning
 
In computer science, string interning is a method of storing only one copy of each distinct string value, which must be immutable. Interning strings makes some string processing tasks more time- or space-efficient at the cost of requiring more time when the string is created or interned. The distinct values are stored in a string intern pool. The single copy of each string is called its 'intern' and is typically looked up by a method of the string class, for example String.intern-- in Java. All compile-time constant strings in Java are automatically interned using this method. String interning...
 
thank you @Wes, good to know
I was reading this as well, but was kinda confused how it applies in the 2nd method I mentioned above
 
Wes
also arrays are interned though, all scalars are
the second method you mean the string one?
 
6:55 AM
yeah, so it was on point
 
Wes
in 7.1 also the array one is fully interned 3v4l.org/AhT9N so i'd say to not use it at all
i like that this kind of optimizations happen in a minor version :D
sure niki or bob did that :P
 
: )
 

« first day (2191 days earlier)      last day (2773 days later) »