« first day (2774 days earlier)      last day (2190 days later) » 
01:00 - 20:0020:00 - 00:00

8:16 PM
Hi, my XAMPP works realllly slowly I have no idea why!
 
it's XAMPP .. complaining that it's not working properly is like complaining that your dead goldfish has stopped singing
 
Thinking about buying a .io domain for personal use.
 
@tereško Ahm, I'm disappointed with it :/ But it didn't use to be so
 
8:28 PM
@tereško Do you know of a way to replace an object's reference with another object?
I've gotten myself into a really crappy situation.
 
@Allenph I already guess that from your question
the short answer is no
 
Great. I'm fucked.
 
the longer answer is: yes, by using some kind of a proxy in combination with magic methods, but it is a shit solution
 
Teresko - do you have a personal website, well one based around coding?
 
you might need to start explaining why do think, that it is your only possible solution
@StatikStasis nope
I am too lazy for that
 
8:34 PM
If you don't mind a review @tereško...

https://pastebin.com/HTyg5Rmy
 
@FélixGagnon-Grenier as one connoisseur of insanity to another, you might enjoy: youtube.com/watch?v=CSb7ciBHaGg (you will need alcohol with this one)
 
The idea was to use a pub/sub scheme to publish changes to the read model when a write was made.
 
@tereško to be fair, how else do you expect it to sell in the US?
 
But, I might have to just settle for eventual consistency.
 
You should really consider it. You could probably make a lot of money on ads. You could provide approaches to tackling certain problems while using your own way of telling the reader why using 'X' solution is stupid. It would be funny and educational at the same time. @tereško Just a thought.
 
8:36 PM
@tereško is wine enough, or should I get the scotch?
 
@FélixGagnon-Grenier scotch
 
scotch is good
 
(it this was not a debunking video, I would have recommended vodka, because taking that lunacy undiluted can cause serious brain damage)
 
I second it
I need to try lagavulin sometime
 
8:39 PM
@StatikStasis so, basically ZeroPunctuation, but for code
 
@tereško :D
 
@Allenph if I understand what you want to do, then CartReadRestRepository::getById() is wrong
 
How so?
 
you will not be actually updating that object
 
8:41 PM
Yeah, I know. That's the problem. I'm not sure how to do that.
 
make a separate method
one that does only the "update" call from the mapper
or "repopulate"
or something similar
 
Well, I'm never actually updating the CartRead object.
 
hmm ...
 
I have a CartRead aggregate which is the entire state of the cart, but the API only allows me to write pieces.
Writing anyone of those pieces, could change multiple pieces of the CartRead aggregate.
 
can you update the entity?
or is it immutable?
 
8:44 PM
So, what I'm trying to do is trigger a re-read whenever there is a write.
I had though of that also. Perhaps some kind of "replace" method on the ReadAggregate, but that seems kind of icky.
 
what you want is not an SQL UPDATE, but a "re-fetch"
I got that part
 
Since its only purpose is to be a representation of the read data, I had designed it to be immutable.
 
awwwww crap man
 
then you should not be trying to re-fetch new data in it, @Allenph
that's the core of your problem
 
I had designed it to be immutable as to avoid people altering the state in the application layer.
 
8:47 PM
either do not pull in the newer information or do not make it immutable
you can't do both
 
Yeah, you're right. What's the least icky way to do that you think?
To manually parse the new information and add a billion setters?
Or to just have a replace method?
 
add import() and export() methods on your entity
 
Is there a simple way of repopulating it without manually parsing in those methods?
 
or make it something like Entity::mirror(Entity $other)
 
I have changes to my git repo locally, I'm trying to push to github, but it says everything's up to date, but the commits I've made yesterday are not appearing in github. What'd I do wrong?
 
8:50 PM
the import-export thing would be accessing the internal variables directly
the mirror approach would be a lot cleaner (and you don't actually need to update all the fields)
 
yeah well. it seems irresponsible just got redefined in my life.
 
@FélixGagnon-Grenier wat?
 
her driving the car, filming a video, and car crash thing, iiuc? it somehow pains me almost as much as the bs of the maths
 
did you get broken?
 
possibly
actually, so far, I'm not quite yet understanding wth did just happen
maybe I just don't want to think she just said zero doesn't exist and conspiracy theory everything about maths
.... actually, I just don't want to think she just said zero doesn't exist
 
8:58 PM
@tereško Yeah. That would be better than an import/export.
So just set everything internally on the mirror or import or whatever.
Is there a way to automatically do that?
 
but you would use that in the import not in mirroring
 
@PeeHaa @DaveRandom please review
 
@tereško Well, on the import you could just call the getters on the incoming object and you'd have access to the internal properties of your current instance.
I was just wondering if there's an automatic way to say...

`$this = $incommingObject`
 
no, there is no way
 
Thought not. Good to ask though. Thanks.
 
9:05 PM
nn
 
o/
 
9:19 PM
\o
 
Time to head home. See you guys.
 
> If you aren't part of the solution, then you obviously weren't properly dissolved.
 
Wes
\o
 
fucking hell. I switch my VPS to debian, trying to set it up so I can ssh into it from git bash, fucking keeps bitching about my publickey... I've moved my .ssh folder so it shouldn't even be checking it. This is annoying
 
@Tiffany something about it not being pass-phrased?
 
9:32 PM
no, "Permission denied (publickey)"
I'm guessing I need to change a flag in the sshd_config file
I thought I did
 
Well, if you remove the public key I would guess it would throw the same error, no?
 
trying to disable sshing by rsa key temporarily until I can ssh in via git bash
so I don't have to use the damn browser console which is a bitch to use
 
@Tiffany which .ssh folder?
also hi
by that I mean, you've moved your .ssh folder on your local machine or the remote machine?
 
I removed the authorized_keys file from root's .ssh, and I've renamed my .ssh folder on my host machine to ssh, to hopefully keep them from trying to shake hands
 
"Permission denied (publickey)" means "you send a public key that I won't accept and there are no other auth methods I can try"
 
9:37 PM
Password auth should be enabled though
yes, it is
/etc/ssh/sshd_config is what I'm editing
 
what's PermitRootLogin set to on the server?
in fact, screw that, stop trying to ssh as root :-P
 
trying to set up a new user from the browser console is...not happening
and I can't ssh via git bash yet
I'm just trying to get it to where I can ssh in as root through git bash, and then I can make all the require configuration changes from there. Using the browser console that digital ocean provides is painful.
 
what do you mean by "not happening"?
 
it's slow as fucking shit
and it doesn't allow copy/paste
@DaveRandom set to yes
yes, it took me that long to scroll up the sshd_config file to get that...
 
OK can you show the output of ssh -vvvv <server address>?
 
Wes
9:42 PM
i hate apache
 
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
well... that explains that
seems like it's insistent on RSA auth
 
did you modify the server's ssh conf?
 
/etc/ssh/sshd_config?
 
and if so did you restart sshd?
 
god dammit, that's what it is
 
9:44 PM
:-P
 
thanks
I'm a dumbass
 
@Wes ftr I am avoiding responding to this in case you ask me for help :-P
 
Wes
solved. and cursed
 
@DaveRandom have you traveled across the severn bridge?
\o/ logged into vps through git bash
now I can do things correctly
 
both of them at one point or another, neither for a long time though
 
9:48 PM
how long of a drive across it, is it?
 
like a minute, maybe? not that big (relatively)
 
watching a TV show, and one of the main characters made a comment to her husband that I interpreted that the severn bridge takes fucking forever to travel across
 
I forget tbh
there may be a ridiculous speed limit
 
I'll find the scene
"Oh, my god. Severn Bridge! I'm going into England. Farewell forever."
"Have you got currency?"
"Yes, and I've had my injections."
 
Wes
thanks tho dave ¬__¬
 
9:52 PM
can't see any speed limit signs on street view and it's motorway, although the M4 one is waaaaay bigger than I remember
 
Wes
i still have no idea how the apache configuration files syntax works
i hate it
 
@Wes IIS uses XML
 
but still it's a 70mph limit, and it's <2km so a little over a minute if it's clear
 
so then it's probably a Welsh joke about going into England then
or a bit of both
 
what are you watching?
 
9:54 PM
Torchwood
 
oh right :-P
 
I started watching it a long time ago, but didn't really get sucked into it. I decided to try it again, and by the middle of season one, it gets a lot better. Season three is fucking intense.
but Ianto dies :<
 
Wes
i am watching it's always sunny in philadelphia. i remember why i stopped watching it
i hate danny devito just as much i hate apache
4
 
@Wes I got up to around season three or four, and couldn't really watch it anymore.
 
I've never really been a fan of Who so I didn't really bother with it, plus I find John Barrowman generally quite annoying
 
9:56 PM
@DaveRandom !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
we can't be friends anymore
 
sorry to disappoint :-P
 
John Barrowman is love, John Barrowman is life
 
Wes
dr who is so boring
i could only barely like it with david tennant in it
 
I get why people like it, somehow it just isn't for me
 
Wes
then the guy that came after that was all hair no substance
 
9:59 PM
Matt Smith took getting used to, for me
After it switched to the eleventh, I couldn't watch the show for like a year
 
Wes
the guy without eyebrows yeah
 
but someone I knew brought up how good one of the later seasons was with the twelfth doctor, so I forced myself through it
he grew on me after a while, just took...awhile...
 
is that capaldi?
 
yeah
 
Wes
are bill nye and capaldi the same person
i always get them confused
 
10:02 PM
The Thick Of It is supposed to be good but I haven't actually seen any of it, but he is in one of my favourite films ever which I am willing to be that almost everyone in here would hate :-P
 
I'll have to see if I can find it
 
fair warning: 1) it's really slow (but IMO worth the effort) 2) you need to pay attention
it's also incredibly 1980s
 
I love simplification of code
when a class has a single resposibility and it just does what it is supposed to and is easy to follow
its like poetry
whats funy is it took 10* as many lines before and still didn’t work
now it works fine
^ My coworker when he finally tried what I've been teaching him. #Success
 
Wes
single responsibility is a made up rule
 
literally all rules are made up
 
10:06 PM
You're a made up rule.
Exactly.
 
Wes
:B
the rule should be, the smaller the better (but not too small)
 
Wes: Let me spend a year pounding into your head all these rules...its much better.
Me: Okay. It worked!
Wes: The rules are made up.
 
Wes
i never said i agree with single responsibility
i dislike rules that apply loosely
i call them hints :B
 
I see them as strict, and occasionally needing to be bent to fit the domain. (Or the API you have to use that was built by monkeys.)
 
Wes
good luck trying to determine what your "single reason to change" is
it's an impossible to answer question
 
10:10 PM
There are plenty of good answers.
DDD seems like a more solid set of answers to those kind of questions.
 
pun intended?
 
Indeed.
 
Wes
i didn't get the pun
but it's ok i'm tired
also i am dumb
 
I agree that I don't like the "one reason to change" thing though, it's really vague and unhelpful. All my code only has one reason to change - it doesn't do what I want it to.
"single responsibility", on the other hand, conveys something I do find useful if you can't complete sum up what the class does in a short sentence, it does too much
@Wes solid
 
Wes
nice :B
 
10:14 PM
anyway, /me sleeps
nn
 
Wes
\o gn
 
10:25 PM
I really think it's just there to say "don't make God objects".
To be fair though, you have to learn that through examples. You can't just tell someone "a class should only have one responsibility" and expect them to understand.
Because you could reply "the insert god object name only does one thing. It controls the app."
 
10:55 PM
except, that would be false
it also queries the database, updates data, creates views, launches cron jobs, and emails the owner
 
The point is that it's all subjective @FélixGagnon-Grenier.
You can break down anything, though.
If something has more than one method it does multiple things.
 
I believe that after a certain "level" of object oriented programming awareness, being told "a class should only have one responsibility" should have some kind of meaning :)
 
> Gather together the things that change for the same reasons. Separate those things that change for different reasons.
 
@FélixGagnon-Grenier That's exactly what I said earlier.
@Danack If you think about it, that has the same problem. It's just something you learn from example and practice.
 
Wes
11:24 PM
just because
 
01:00 - 20:0020:00 - 00:00

« first day (2774 days earlier)      last day (2190 days later) »