« first day (2533 days earlier)      last day (2400 days later) » 

2:01 PM
@Tiffany I actually use Application for the UI layer
1 sec, I will make a screenshot
 
brb
 
here ya go, @Tiffany
 
image not found
 
@Shafizadeh you country blocks imgur.com
 
uhum!
 
Wes
2:14 PM
@tereško i like your phpstorm theme
:P
 
@tereško hmmm
our classes/controllers/etc are all in a folder called lib
but naming it lib feels awkward
 
Call it John?
 
@tereško What happens when there is no client header?
 
2:29 PM
@Danack our organization actually starts with "John"
 
the gym name I'm going to also starts with "John" ..
 
Anonymous
@Leigh pfft defensive is for noobs. Always be on the attack
 
@Tiffany I found the problem >< thx for the help though
also call everything Wick
 
@Leigh it throws an exception from the service
which get handled in the bootstrap and turned into API response, that contains "error"
 
I wish my code was that robust
 
2:38 PM
evenings o/
 
@JayIsTooCommon I am, hence the question ;)
@JayIsTooCommon Are you a policeman yet?
 
Anonymous
No, but I promise i'll come strip for you when I am
 
:P
 
bring pudding
 
@JayIsTooCommon you should be able to become one tomorrow if that's the kind of policeman you want to be ^^
 
Anonymous
2:42 PM
there's another kind?
 
don't think so
 
!!urban kissogram
 
[ kissogram ] someone who dresses up as a character, (i.e. police officer, doctor, french maid) goes to parties, and kisses people. They don't strip, they just kiss.
 
@Saitama so we all know what you'd like to become
 
meh
 
Wes
3:16 PM
@crypticツ for some reason it's not allowed to discuss this
and if you mention stuff like goto you get yelled at, or velociraptors
just saw a for() with the condition part crammed with all sorts of assignments and everything
 
@Wes how am I supposed to use this Italian fork ??
 
Wes
lol
 
@rlemon You have to hold your hand just right
 
Wes
for() for example is very stupid. how is

for($i = 0;...;...){}

an improvement over

$i = 0;
for(;...;...){}
 
Anonymous
@rlemon that mac looks.. appetising.
 
3:22 PM
lol right?
got it from Reddit, thankfully that's not my meal.
 
Wes
seems mac and semen
 
Anonymous
you'd know
 
hahahaha
also, @rlemon, this made me so mad
 
yes, it's only funny for the person telling it
best kinda joke
 
@tereško what is Model\Contract, err.. conceptually?
 
3:30 PM
@FélixGagnon-Grenier interfaces
 
Wes
y u no prepend vendor and app/lib name?
 
it made me mad too

> As he gets closed he also notices the bow and ribbons were still on the car...

closed, CLOSED?
 
@Wes because, it doesn't really serves a purpose when code is not open sourced? ;)
 
@Leigh yea, it isn't well written.
there are probably a lot of spelling and grammar mistakes, and then ofc just wrong words.
 
Wes
yeah but you might want to install a package that happens to be named Model\Contract @FélixGagnon-Grenier
also consistency
also consistency
 
3:34 PM
if that's the case, I'll PR that package and add a name to their shit ;)
 
Wes
maybe Model is the vendor name, and Contract is the library name.
 
what the fuck are you talking about?
 
Wes
lol
 
I already told you, what is in it, @FélixGagnon-Grenier
 
yeah, I started to remember after you mentioned interfaces
I promise I won't ask a third time ;)
 
3:36 PM
Hi guys
I am having an some endpoints of webservice
from those endpoints,i have disabled 2 endpoints
 
so where do I define the root level of the namespace? the bootstrap?
I have forgotten so much
 
So now when user try to call those disabled endpoint what should be the http status code for that?
 
why do you need a root level namespace?
 
for the name of the project
 
why?
in case you forget?
it's already the name of the project's repository and folder
 
3:39 PM
I thought I was supposed to in order to group my shit together
 
@Learning probably 503. more info: w3.org/Protocols/rfc2616/rfc2616-sec10.html
 
yes, you should group things together, but only when you have more than one group
otherwise it's somewhat pointless
 
yeah, that line makes no sense
 
why?
 
3:41 PM
what are the other group(s)?
 
no, that would be a sub group
 
what is your point?
 
it seems awkward to me to not include it. Granted, I don't know what effect it has on PHP, but it seems like the code wouldn't function in a namespace ecosystem if the project is not formally defined somewhere.
 
3:46 PM
@Learning 410 would be better. It indicates that the resource is gone, and trying to call it again is not the right thing to do.
 
But resource is not gone
 
Wes
@Tiffany don't listen to him. it's good practice to have namespace Vendor\AppName\...;
 
it is just temporary disabled
 
Anonymous
@Wes hide.
 
@Wes the question is if I should have like namespace ProjectName; in my bootstrap
 
3:47 PM
and what would you gain?
 
Wes
how does the bootstrap look like?
 
I don't know how PHP handles it
@Wes you don't want to know
lol
 
it's kinda like making Bootstrap::run() instead of just having a bootstrap.php script
 
@Learning then 503 as Leigh said.
 
@Danack @Leigh looks like @pmmaga?
 
3:49 PM
you are just adding more padding, that has no actual benefit
 
Wes
if you use variables you won't pollute the global scope though @tereško
 
@Danack What about 423?
Do you think it make sense
 
Wes
but i do:

(function(){

....

})();
 
so namespace only my classes defined in the lib
 
?
 
3:50 PM
> 423 Locked (WebDAV; RFC 4918)
The resource that is being accessed is locked.
 
@Danack wat?
I said nothing!
 
@Wes to what end? What is the benefit? It is not JS, because in JS you use closure to isolate your code from stupid
 
So no - it makes very little sense....
 
@Wes I love the js equiv tho, (() => {})();
 
oksd[sof[sdf - it's friday
 
3:51 PM
If the endpoint exists and the user is specifically not allowed to access it, 401
 
if all of your classes exist in a single folder, then there is no point in namespacing them
 
I get to leave early today... scheduled a doctor's appointment at the end of the day... yes it was intentional
 
Anonymous
that rash has come back?
 
the random violent thoughts in my brain that I seem to have no control over? yes, they have
 
Anonymous
3:52 PM
O.o took a turn..
 
probably going to switch medications again
 
that's ok.
 
@Tiffany The solution is pretty simple, you need to remove your brain and replace it with a less violent model
 
Anonymous
To be fair, it does sound like a common symptom of a PHP developer.
 
@JayIsTooCommon :P I was being facetious, but yeah... mental health is weird.
 
Anonymous
3:54 PM
(:
 
@JayIsTooCommon it's more like I see a picture of say.. an injured animal... then when I see my cats, I start imagining my cats look like the injured animal
 
it's not pleasant
 
Anonymous
Huh, I haven't heard of that before. Any idea what it is?
 
Sometimes I imagine Jay all injured
 
Anonymous
3:56 PM
standard
 
I've determined that I want to reach a point where I don't need this type of medication because the side effects are just shit. Almost all of them cause weight gain. I've mostly got that under control now, but most of my old clothes don't fit :/
 
Anonymous
@JoeWatkins why are you not active. Turn yourself in, now
 
@Tiffany When I stopped taking my anti-depressants I started drinking heavily, unfortunately the side-effects were mostly the same there, except the anti-depressants didn't make me feel any better
 
@Leigh The medication I'm on, when I first started it, it worked great. After about six months I started having random violent thoughts... not like stuff that I was thinking about doing... just scaring myself with stuff and it was affecting my dreams. It was reaching a point where I was afraid to go to sleep some nights because I didn't want to have nightmares.
Psychiatrist lowered the dose to see if that would have any benefit. I've noticed my motivation has suffered a bit, but I still have the random thoughts, just not as frequently/as bad.
She said that she's tried this medication with some other patients, and like three other patients were fine with the medication when they first started, then six months later (like me) just started having problems with it. I'm not sure if they had the same symptoms.
shrug, this appointment should be interesting, to say the least
 
Best of luck, keep on trying to find what works for you :)
 
4:08 PM
thanks
@tereško so you prefer to use the "qualified name" rather than "fully qualified name"? I'm not opposed to the way you're doing it, I'm just trying to see what changes for me if I go that route.
nevermind, I figured out what I was doing wrong.
 
evening
 
4:23 PM
@Tiffany if this coincided with you picking up php, then it might not be the medication causing the violent thoughts ;)
 
@Gordon :P
Okay, so if I use the qualified method, where I don't have a global namespace, how do I add the project to composer?
 
I was wrong. It only took one day for me to like vim better.
 
@Allenph haha :P
 
Anonymous
 
@Tiffany hmmm... you mean, like, composer require the-actual-current-project?
that's some kind of recursion, you don't normally do that
 
4:30 PM
not requiring it
 
@JayIsTooCommon some people have real work to do :P
 
more of a question for @tereško but he's either busy or I pissed him off :<
 
yeah, I'm still at work
 
was hoping I didn't piss you off
 
4:38 PM
@Tiffany you can't. @tereško is always pissed off. that's his base mood.
 
Could there be any security issue(s) if one of my input boxes is disabled in the browser using disabled option, but that particular input field is not processed by PHP?
PHP does not even check if the user has removed disabled or submitted that specific field empty.
 
@Tiffany oh you mean for the autoloading, the "Example\\": "src/" at the end?
 
@FélixGagnon-Grenier yes
granted, there's already an autoloader in the bootstrap, but I would like to replace it with composer's
 
@Gordon Even if I do absolutely nothing with it?
 
4:46 PM
ok, you can either specify each group of namespace (like \Controller (Controller\)) to their specific directory, or set the autoloader to start in the src directory
 
@hello well no. but if you do nothing with it, you can just as well remove it from the form
 
"psr-4": {
  "": "src/"
}
 
@Gordon Okay. I needed someone to tell me that.
Thanks.
 
So, \Controller will look in src/Controller, \Model in src/Model, etc. etc
 
@FélixGagnon-Grenier use empty quotations if the project has no name?
 
4:48 PM
this is unrelated to the project's name
That part contains namespaces, the empty string is to tell composer to look there when other rules are not found
 
The user can supply arbitrary fields, which don't exist in your application. So a login form have 2 fields, but I can submit it with 100 fields. Now do I need to validate all 100? Depends. Do I have some sort of code that just so happens to log all supplied _GET or _POST fields? If so, then definitely validate all input because that could be a potential entry point for tainted data.
When it doubt, validate all?
 
@FélixGagnon-Grenier I'll have to mess with it when I get everything namespaced. To be clear, the namespace has to be exactly like the directory structure? e.g. folder is named controllers, do I need to use Controllers\?
I think that's an obvious yes.
 
yes, it's a one for one mapping. Also, DO respect the casing, from the start
 
nevermind, I remembered how PSR-4 works
frak
 
4:52 PM
deployment on unix systems will fail if there are discrepencies between namespace and folder casing
 
everything is lower case :(
alright
 
looks like you'll have to use that stupid git trick to change the casing
 
I can refactor it from phpstorm
copy text -> right-click -> refactor -> find usages
 
yes, but if you just change the casing git will lie to you and not really commit the change
ie committing controller to Controller will seem to have an effect, but the files will not be changed when/if checkout-ing on production
 
unless there's some imperative reason that I use title casing in my namespaces, I'm going to make my namespaces lower case.
 
4:53 PM
unless this has been fixed in newer versions of git...
@Tiffany not really an imperative reason, more like some kind of standard
 
future goal then
because every folder is lower case and I don't want to go through all of that right now
 
that's ok
it might be more work later, but one step at a time is totally ok, in my book
 
my priority is getting it loaded into composer
then I can start looking at converting mysql_* functions to PDO
 
5:13 PM
@FélixGagnon-Grenier That's a windows issue not a git issue
 
Yes. Windows is case insensitive (although ntfs is case sensitive)
So Controller.php is the same as controller.php
 
yeah, I know
the git issue I speak of, is changing the casing of a file
 
Yes. Which does nothing on windows because of above
 
hmmmmm
right.
why is it that, when I get told something like that, I instantly find evidence to support it, stackoverflow.com/questions/10523849/…, even if for months before I was sure I had found evidence of something else
 
5:23 PM
:D
o/
 
@FélixGagnon-Grenier never share that stuff
 
Sigh, one star for @salathe
 
:P
 
Dig deeper and find something that supports your case (pun not intended)
:p
create a sockpuppet account and write in on the web. Once on th web you are right @FélixGagnon-Grenier and can link it :D
 
5:25 PM
@PeeHaa s/th/the
 
I know but didn't want to double ping for a single letter
 
:B '
 
@PeeHaa bah quadrupleping is ok
 
lool
 
5:27 PM
You are forgiven :P
 
I have my tests tomorrow, and I literally don't know shit about an entire topic of maths
 
@PeeHaa omg. just got the pun
I believe you know where the door is, you can show yourself out.
 
hehehe
 
Ɛ>
also, I found a very interesting thingy in my notebook
 
!!xkcd citogenesis
 
5:34 PM
 
there you go, that's all you gotta do :P
I got my second monitor up at home :D
it's working nicely
 
:D
 
I somehow calculated -3/200 to be -1/100
@Tiffany for streaming to twitch?
 
Yup
 
5:37 PM
On lunch right now, transported the monitors from work to home and set up one of them
@Gordon god I wish... if my boyfriend was far away from me currently
 
5:50 PM
@Gordon It's a flight away, about 1 hour.
 
Just earned the priviledge to join a chat room! Yey ;)
 
\o/
 
tried discussing PHP with my girlfriend, won't do that again
 
there's a when and how ;)
 
Hasn't SE any room for just talking? (not about any specific field, just free topics)
 
5:58 PM
@Fabor :)
 
6:41 PM
@FélixGagnon-Grenier so, the stash tabs are on sale for PoE
 
runs home, fuck work
... I am really tempted to do so, on a friday afternoon
 
I have a little over an hour left of work
:D
 
wait maybe I can buy the tabs on poe.com
(as if they'd run away)
omg yes I can
@tereško is that it for the currency tab, or is there sometimes a "super bundle" with normal tabs and currency?
 
super bundle are normal tabs, which can be renamed and recolored
currency tab is a separate thing (also on sale)
 
yep. I'm wondering if I should choose a "quad" more expansive tab, or six normal ones
 
6:53 PM
Both
 
ScreenToGif is magical
Updated a ticket with a gif explaining the behavior I'm seeing.
@tereško premium tabs
premium tabs <3
 
yes, sorry, "premium tabs"
@FélixGagnon-Grenier I would go with 6
one pack of 6 would be enough for some time
+ currencies
 
@tereško yes, I think too. 60 for currency, 110 for 6 tabs, 10 for one premium = my 200 points
 
divination and essence tabs are also nice
 
he can do without those
 
6:56 PM
I don't really have enough of those yet to warrent a tab :)
 
divinations are rare
 
he's a little bit past act six, cards start dropping at that point
not really...
pre-act four, sure, they're practically non-existent
 
lol I can't fucking count
60 + 110 + 10 = 180
 
but sometime in act four or act five they start dropping and the divination card tab is a nice interface
you can sort by all cards, full stacks, etc
premium stash tab bundle is 165
 

« first day (2533 days earlier)      last day (2400 days later) »