« first day (2082 days earlier)      last day (2863 days later) » 

8:00 PM
PHP muddies this quite a lot with it's "magic "constants"" (definitely deserves 2 layers of quotes :-P) but actually those are just predefined variables, in effect
 
Except the very existence of define() belies that they have always existed; global constants can be created at any time
They can be defined within if blocks, so not always available
They can be defined with different values for different requests
Yet the same options aren't available for class constants
 
true, but that's just a legacy affectation of PHP (imho) - from a clean code perspective, such behaviour is poor form
 
The advantage of a string class constant over a string is that the former gets autocompletion. From that perspective a dynamically defined class constant makes no sense.
 
actually that's also true
tl;dr my personal view is that if I ever need to use defined(), a variable/property/method should have been used instead
Also @MarkBaker I also am something of a fan of ::class for this particular job, but that does not fit with your existing API I guess
 
My personal view is that outside of single-file scripts (non-class) constants are generally a bad idea
 
8:07 PM
May 12 at 10:56, by DaveRandom
> In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.
I have no idea why I was reminded of that but I was so have it
 
Well isReaderAvailable() and/or getAvailableReaders() methods will be available to validate the constants, and test whether they can be used for factory calls
 
@DaveRandom I take offense at the implication that the universe was created!!!
 
But these are all class constants, none global
and the getAvailableReaders() is a filtered list of all the file format constant values, determined by whether or not particular PHP modules are enabled or not
 
@MarkBaker Cool, please define all of them then otherwise I have to write code like if (defined('C::thing') && $o->isReaderAvailable(C::thing)) in order to avoid "use of undefined constant" errors
 
(Old version used an array of variables)
The universe was created, it sprang from the uber-universe, the offspring of George and Winifred Higgs-Boson, of the Cheshire Higgs-Bosons
 
8:11 PM
@NikiC I'm afraid you will have to take that up with Douglas Adams.
 
sbi
Hi, I read the Dos and Don'ts and they don't say anything about it, so I have to ask to ask... Is it OK to link to a job offer here?
 
@sbi Yes
 
sbi
@NikiC Thanks!
 
Yes, people do that occasionally, not sure if it ever yields useful results though?
 
@DaveRandom tnx that was a rather painless rename \o/
 
8:13 PM
@DaveRandom Likely not, but can't hurt to try ^^
 
@PeeHaa It took me way too long to find that so I guess it's not very intuitive - although now I know it's there it seems like a sane and obvious place for it so... group stupidity I guess
@NikiC Indeed, I do not wish to discourage you @sbi
 
sbi
Friends of mine run a software business and they are looking for a PHP developer. They are doing more than building website, so this might be interesting. (I, of course, wouldn't know, as I'm a C++ developer and all I know about PHP is from hearsay.) So if you are (living in or are) willing to relocate to Berlin, have a look here.
7
In the C++ room, someone would pin ^this, so it hangs on the starboard for a while. I dunno how you run the shop, though.
 
Have a pin
 
sbi
@PeeHaa Thanks!
 
You're welcome. Somebody beat me to it though :-)
 
sbi
8:17 PM
Thanks for letting me drop this here! If you have any question, ping me here so I get notified.
 
@sbi do you normally live in the lounge?
(for ref, as you are only pingable for a period of time I have yet to figure out the logic behind when you leave a room)
 
sbi
@DaveRandom No, I rent an apartment. :)
However, yes, I'm one of the oldtimers of the C++ Lounge. Although I'm not there very often anymore.
 
@sbi :-P
 
@DaveRandom In my experience starting a room event pings you for a couple of months :P
 
8:21 PM
well yes I know that chat.stackoverflow.com/rooms/pingable/11 is a much longer list that the people who are actually here
 
sbi
@DaveRandom I know. That's why I said to ping me here, though. I think I haven't been in the lounge for weeks (ICBWT), and I don't know if I even would get notified if someone pings me there.
 
@sbi I have no idea why not
 
@Machavity Wow a -165 Meta Q?
 
sbi
In the long run, though, it's still unlikely I would miss someone dropping my name in the lounge.
 
Hmm, it's been ages since the last time the C++ lounge invaded here to tell us how much PHP sucks :)
 
sbi
8:23 PM
@Machavity Before you draw any conclusions regarding me and that incident, you might want to look at (what's left of) my participation in that "discussion".
@NikiC PHP just isn't worth the trouble. :)
 
@sbi Wasn't a slam at you. Was just saying I don't blame you for not hanging out there
 
sbi
@Machavity And I was referring to exact that implication when I warned you.
 
@NikiC * finger hovers over "move messages" button*
 
@sbi Yeah, you know it's really bad when people even stop complaining... :P
4
 
@sbi worst case scenario will tweet @ you if you get a hit and don't seem to have got the message
 
sbi
8:27 PM
@Machavity I just saw that only two or so are left (they keep wiping comments there) and the relevant is to a deleted answer, so might not be visible to some people.
@DaveRandom That would certainly work. :)
 
Or maybe people will take the initiative to email the address on the page you linked, that might be optimistic but maybe you are interested in hiring people with two brain cells to rub together so...
 
sbi
@DaveRandom Oh, I definitely am, but I have nothing to do with that company except that for a while I lived next door to the people who run it. :) (Nah, I offered to ping me in case someone wants to ask me something before they officially apply.)
 
@sbi It collapsed a lot of them but it looks like most are still there
 
sbi
@Machavity I was referring to this one. Let's see if that one oneboxes... Nope.
> "Naming a chat room after genitalia is not professional." But naming a chat room The Tavern is? Or Stack Overflow Super Bowl Party? Or Trash? (Because those currently are among the most active rooms for the SE site.) That's a very warped view on professionalism, IYAM. In fact, from the idea that any reference to sex is awkward, while binging or sports (or violence) is totally "professional", I can conclude that you are A Merkin.
 
@sbi Yeah, gotta be 10k to even see that
 
sbi
8:33 PM
Damn Murkdown!
> Of course, I won't be able to change the prejudices with which you were raised. That does not, however, mean they're justified and logical.
 
> Ivanka Trump
omg that is someone's actual name
 
sbi
The lounge is pretty European, and we have learned (the hard way) that some Americans have a rather hard time to stand our relaxed attitude towards sex, while we are rather surprised about the relaxed American attitude toward violence.
Hilarity ensue.
 
@DaveRandom Donald's wife
 
daughter, apparently
 
Can never keep them straight
 
8:36 PM
That seriously sounds like an Austin Powers name
 
@DaveRandom Heh. It actually does now that you mention it
 
sbi
What's so bad about Ivanka? From what little I know about Mr. Dumb, he's probably married an eastern European woman. Ivanka strikes me as Slavic.
Anyway, it's past 10:30pm here, and given that there's no EuroCup game tonight, I should probably attempt to sneak in an additional hour of sleep or two, before the alarm goes off at 5:45 tomorrow morning.
 
Somewhat odd as a slavic name as well, because it's a diminutive form
 
@DaveRandom That was it. His first wife was Ivana. Which is even worse when you think about it
 
@sbi Well, given that stereotypically people with eastern european/russian accents pronounce "w" as "v", combined with the existence of the word "wanker" and the fact that "trump" is already a mild slang for fart... take your pick really
 
8:39 PM
@sbi His first wife was a Czech
 
sbi
@DaveRandom Oh. Not being a native, I failed to notice these... :)
@Machavity Why am I not surprised...
Anyway, good night!
 
night @sbi
 
Same
 
ugh I bought my ticket and same day I hear there was an explosion at the airport I will land, at least mine is next month :( but it's terrible news
 
8:47 PM
@tereško having multiple cookies for multiple devices also has its own problem
 
@Ekin depressingly, that probably makes you safer than most people flying, because they will be on uber security alert
 
i don't think so @DaveRandom
 
yeah I really hope they do...but it's impossible to trust any security measure they take in that country... I still hope so because before me, my brother (18) is going there in about a week, alone :(
 
9:07 PM
modern website are shite - part 37 of an ongoing series: branded.me
 
Wes
9:23 PM
!!should i beer or coffee
evenings
 
You should beer.
 
@Danack wow that really is awful
 
9:46 PM
@Shafizadeh do you remember the link I gave you some time ago
it had solved that problem
 
Wes
9:57 PM
@Shafizadeh i noticed your english is getting better. soon it'll be better than mine (not a huge achievement, so don't stop)... :P
 
you are lucky @Shafizadeh. you took credit by @wes
 
Wes
it's a huge honor
 
certainly
 
11:03 PM
@sbi please let your friends know s/creates ... since more than 6 years./creating ...for more than 6 years/ - continuous present tense ftw.
 
11:17 PM
Howdy!
 
Wes
11:31 PM
\o
 

« first day (2082 days earlier)      last day (2863 days later) »