« first day (2470 days earlier)      last day (2704 days later) » 

user4244405
16:00
lol Jay
This is like people trying to parse html with regex
It's way too brittle to be useful
user4244405
Thanks @Dereleased
@argon output of your function in my test environment:
Warning: file_get_contents(/usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code): failed to open stream: No such file or directory in /usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code on line 5

Notice: Undefined offset: 0 in /usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code on line 6

Notice: Undefined offset: 0 in /usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code on line 6

Notice: Undefined offset: -1 in /usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code on line 6
user4244405
PeeHa, I agree, however, if a person writes really ugly code, so much that the simple parser there cannot read it quickly, then maybe they should write neater code?
16:03
@argon you are in no position to talk about ugly code
@argon Yes. I am not against people writing cleaner code
user4244405
@Dereleased, why are you using eval? .. I've tested this thoroughly before posting the answer though, it does work.
user4244405
hahaha Paul, right there with ya :D
Anonymous
> Sean Spicer quits
@argon Because it's an on-the-fly test framework. My point was not that this was likely, but the solution may fail
Anonymous
16:04
sheeet
It would fail on very basic things
Simple example:
/me looks at code
@Fabor I'm using it for work stuff
user4244405
hmm, interesting feedback, thanks @Dereleased, coult you perhaps suggest/edit the answer to make it more compatible?
TL;DR use an actual parser or don't bother
16:06
@argon I personally see no reason for this to exist
user4244405
okay ... ^_^
@JayIsTooCommon waaaat
But they were so good together
lolwatf
user4244405
thanks for the down-vote .. anonymous-person, a comment would've nice though
If even Sean disagrees with something drumpf does it's going to be reeeeaaally bad
@FlorianMargaine Protecting valuable config files for your containers perhaps?
Anonymous
16:09
@argon Also, don't create a 'don't look under the hood' framework please. No one needs another one.
Oh spicey...
@argon I'm not downvoting, because I have the chance to give you my feedback here. The kind of thing you are trying to do is both hard and unnecessary. If you don't care about the latter, you've got to put in a lot of work because of the former. Pick your poison, or get PHP-Parser
user4244405
@JayIsTooCommon, agreed, however controversial it may seem, a lot of folks rip out the guts of a framework when they understand a little about what's going on, but not enough, so they kill the framework and it makes the framework look bad when stuff breaks on public servers, so, I hear you though.
Anonymous
wat
Anonymous
your sentences are like your code :P
user4244405
That is why a framework should be well documented - including hat's under the hood.
16:13
Yes, please document any and all hats under the hood
user4244405
haha typo :D
@argon you've had a lot of comments in here - your solution is a brittle mess
Sometimes they're gold, tho =)
user4244405
ouch
@argon Nobody here has never written a brittle mess**, please don't take this personally. Taking it personally is a great way to not learn from this. (** In case the double negative is unclear, everyone here has written a brittle mess. Because everyone who has ever written code, at some point, has written a brittle mess)
Anonymous
16:14
This whole anti-library thing for the new bugs site is annoying
Soooo gotta test a vagrant file out that uses a bunch of other tools. Looks like we're going deeper!
@JayIsTooCommon wat?
user4244405
okay so, why do developers stomp each-other down, and not stick together? I mean, we should actually stick together; we automate so many things, soon we'll automate ourselves out of jobs.
Anonymous
@PeeHaa Someone wants to make a new bugs.php.net (or re-vamp it) and peeps are arguing that we shouldn't use any libraries because PHP
A developer makes everyone's jobs easier except their own.
16:16
@argon I'm not stomping you down, nobody here is. We're talking about code, not about you.
@JayIsTooCommon wtf
Linky?
As long as it doesn't use laravel and it works it's better than what we have now
user4244405
I get that @Dereleased; explanation on "brittle" would be informative though; as my point with that function is not to be extremely accurate - but throw if the source-code is a mess.
@argon I already gave you an example
12 mins ago, by PeeHaa
https://3v4l.org/1UCQd @argon
Anonymous
The argument for php.net was
Anonymous
> I think the most important thing is that the PHP-website keeps a VanillaPHP-approach. Every library or framework used for a rewrite of the PHP-website will be looked upon with different eyes and will therefore seem to be "PHP-approved" to people not that deep into the website (so about 99% of PHP-developers). So the PHP-website would - even though that might not be intended - recommend frameworks or libraries over others. And we would not want that!
user4244405
16:18
and I've left the door wide open to anyone for improvement, why crack it down in here? you can edit it as you wish.
Anonymous
And that argument was also brought across to bugs.php.net, moment i'll find link
sigh
@argon That's fine if you want to have that in a little library of helper functions that you, and only you, use. When you release things, though, you can't afford that kind of mess.
@argon It's FUBAR
There is no fixing it
Anonymous
16:18
@argon hfoashfuajgriacahqapojbhsoigscsvkstibsnns
Anonymous
@argon can you fix that into a sentence please ^
@argon because we're not here to complete rewrite your answer for you, which is what it would need
@JayIsTooCommon What a load of utter bullshit
user4244405
agreed @JayIsTooCommon, good point
user4244405
Peeha, then re-write it ;)
16:19
Seriously
You are now officially a troll in my book
Good day sir
user4244405
the purpose of such a function is Reflection, as explained by its use-cases in the answer
Anonymous
@PeeHaa The first thing any good developer would recommend is to utilise libraries.
hello people :D In the MVC structured should the dispatcher be placed at the routers side or controllers side?If i put it in the router my controllers will be tiny af...
user4244405
@Arslan.H, the controller
@JayIsTooCommon And another mess is born
@Arslan.H Not in the controllers
Anonymous
Maaaybe frontcontroller
car <-> carpet
@argon @PeeHaa whom should i listen to now?
Anonymous
never thought I'd say this
user4244405
PeeHaa, you seem like a very bitter/rude person though, calling me a troll, calling my code shite; really? .. if you can't do better then why bother dragging me down?
Anonymous
definitely @PeeHaa
16:22
@Arslan.H Look at the answers here stackoverflow.com/questions/22308365/… and judge for yourself
@argon I didn't call you code shite
Anonymous
o/
But now you mention it it's terrible and should be nuked from orbit
You don't listen. I told you multiple times what is wrong with it and so did several other people. I even give you an example of how brittle it is and you ignored it
user4244405
okay PeeHaa, take your opinion, wrap it in an enema, and use as prescribed ;)
And now you are accusing me of dragging you down?
Sorry room. Took long enough
As i know mixing camelCase and snake_case isn' that good
16:24
@JayIsTooCommon shit like this is why nothing will come of that push - the only way to get this sorta thing done is for a few people to do it off list, ignoring the list really, and present it later
Anonymous
And I said absolute shite, not shite.
Anonymous
@PaulCrovella like R11 ..
but yea @PeeHaa so the dispatcher should be at my routers site.But my controllers will be kind of tiny to tiny to be honest..... Is that okay?
@PaulCrovella Yes. I am agree. Build it. Get a box. Deploy it. Everybody happy
Anonymous
Mar 13 at 17:56, by JayIsTooCommon
I think R11 could do something pretty significant one day..
16:25
Nobody is going to look at the code anyway because why bother
@Arslan.H Tiny controller are what you want
@PeeHaa thats it thanks man :D
@Arslan.H dispatcher would called in a bootstrap phase (sometimes referred to as "front controller" .. though, the term means different things for different people). It something, that you would call right after routing a request. And one of dispatcher's responsibilities would be to execute code in chosen controller
thus .. it really can't be part of a controller
that ^
Although I would rewrite that last part as "And one of dispatcher's responsibilities would be to execute a method in chosen controller"
@argon why?
@tereško he ded
Anonymous
16:26
-1
A: Get string representation of anonymous function

argonIf the knife fails - use the hammer This can be done easily; the following function works as expected, see below for a longer (commented) version and usage + explanation. short version function closure_to_str($f) { $r=(new \ReflectionFunction($f)); $w='function'; $p=$r->getFileName()...

@tereško I kinda kicked him
hahahahah
@PeeHaa I have seen people using "executable classes" as "actions" .. it was popularized around the Symfony 1.x
@tereško thanks!!
@tereško What does that look like an executable class?
class Home.exe
@PeeHaa __invoke()
I am not sure what is the proper name for those
@Dereleased heheheh
16:29
anyway .. back to work :/
@tereško Weird magic would do :P
Matthew Mcconaughey was an oscar though
@Fabor I have enjoyed some of his most recent work
Yeah he really turned a corner
True Detective was amazing, didn't hate Interstellar in the slightest
Wolf of Wall Street, his role was small, but still
16:30
Interstellar <3
Interstellar was the one with the clock right?
s/clock/watch
aye sir
yeah I actually liked that one
Expected it to be terrible
Interstellar was messy at the end lol
actually, anything directed by Nolan is <3
just as Dunkirk
16:31
He was crazy handsome in his younger days. Would've given Daniel a run for his money.
uncleeeeee!!!!!!!!!!!!!!!!
@PatrickSimard You didn't love the 3-D representation of 4-D time? The only thing I thought was weird was that he actually left when she said to. Would you have left? No way. No effin' way.
Anonymous
@Fabor aw, you spelt Jay wrong.
:P
No need for expensive PHP parsing; if the source-code is too messy then it should be neatened up for readability. — argon 3 mins ago
16:32
True Detective was the point when I decided I really like his acting.
wow. He really cannot comprehend English. Or read code.
@Fabor wtf are you talking about
Nothing competes with daniel
Oh heh
@PeeHaa dcraig?
dradcliffe?
ddlewis?
16:33
lowrey :P
@PeeHaa says the author of the "short version"...
105 in rep gain today :-) Giving back to the comunity feels good. SO helped me so much in the last few years!
Dallas Buyers Club too
@PaulCrovella "You dumb motherfuckers are on fire!" -Argon, standing in pompeii, probably
@PatrickSimard Now go convert it to cash before inflation hits you :)
@Dereleased hehehehe
16:34
Did you guys watch GoT season 7?
Can't whait for sunday!
Paging @WesStark
"Shall we begin"
OMG that was awsome!
what the fucking fuck is this
Jul 17 at 5:02, by Paul Crovella
no spoilers until @bwoebi's seen it
$r=(new \ReflectionFunction($f));  $w='function';
    $p=$r->getFileName();  $b=($r->getStartLine()-1);  $e=$r->getEndLine();
    $l=array_slice(explode("\n",file_get_contents($p)),$b,($e-$b)); $z=(count($l)-1);
    if((substr_count($l[0],$w)>1)||(substr_count($l[0],'{')>1)||(substr_count($l[$z],'}')>1))
    { $b++;  throw (new \Exception("Too complex context definition in: `$p`. Check lines: $b & $e.")); }
    $l[0]=($w.explode($w,$l[0])[1]);  $l[$z]=(explode('}',$l[$z])[0].'}');  return implode($l,"\n");
16:35
@PaulCrovella resticky
@JoeWatkins Aneurysm fuel
no spoilers until @‌bwoebi's seen it
9
I will keep repinning message #38254961 until someone tells me to stop
You can watch it here
@JoeWatkins How goes, Warborg?
evenin hodor room
16:38
acceptably
@PatrickSimard would be more likely to prank people if Starks were not all dead already
also, I haven't seen se0701 yet. plox no spoilz
@PatrickSimard let's not post pirated links to media in the chat ... k thnx ...
this is php room or game of thron room !!!
16:39
@Thamerbelfkih Depends on whether @WesStark is here
Jul 17 at 18:21, by Paul Crovella
even pretend spoilers are gonna score a kick-mute
meh. all chatrooms are having such discussions
it's really Game of Overflow right now
@PeeHaa using php-parser is the only option, but I think you missed the most important part of the question ...
> I don't really need this in my code, I just thought it might be useful for logging purposes if something goes wrong.
@JoeWatkins WHY THE FUCK
@PatrickSimard your best bet to avoid getting kicked is to not discuss the show at all. "fake" spoilers are also spoilers, and they're not funny to begin with
16:40
I know
Stack of Thrones™
no, they don't need it ... the function name will suffice ...
user4244405
ah so it's not enough to down-vote my answer without any comments, but now teaming up to destroy my reputation; it's so nice to be here with such friendly people who do not even have any real skill.
I had to add an answer after that ^ troll didnt listen @JoeWatkins
@JoeWatkins anonymous function
16:41
@FélixGagnon-Grenier hahahah gameoverflow is very good so
Ah cmon was just kidding arround -> Sensative topic... got it hehe
@Dereleased you still get location details in stack trace
is_real($skill) // false
@JoeWatkins Just don't use complex anonymous functions? If it's prone to failure, maybe name the bitch
Anonymous
I knew you didn't have any real skill @JoeWatkins
16:41
> who do not even have any real skill.
What's cockney rhyming slang for bitch? @JoeWatkins
@PatrickSimard Games of Thornes is the one with the eye and the mountain and the little people right?
@JayIsTooCommon my cover is blown ...
lol @PeeHaa
:-)
Anonymous
16:42
:p
Lol
@argon oh great developer, please teach me
yes, please, we can't wait to be enlightened
he has been kicked again
you'll have to wait a bit on that
Not sure why they just don't make that public in the room
it's pretty much against the general SE's idea of managing bans and/or "punishment". we don't keep tracks
@Dereleased not sure actually
@argon why did you tell me than that the dispatcher goes to the controller?
:D
16:45
@FélixGagnon-Grenier yeah true. Yet mod bans show up on profile
And we all know mods suck. All of them.
cc @MadaraUchiha
I have been working on a website project lately. I was asked to make structural modifications to the template and add new custom modules. The website was created with an old home made CMS "Spegattie" style. I was talking to my wife earlier about how hard it is to find myself in there. To encourage me, she made spaghetti meatballs for super lol Not sure I feel better but it was a good try lol

The best remedy for spaghetti code is lots of coffee and a few extra hours to get it done in time. Than, beer to forget about it!
I know, let's elect @PeeHaa as a mod without his consent
The best things in life are without consent
2
16:47
lol
Not sure what to think, you argue that @Jimbo's mom is the best thing in the world, and that she consents.
17:48 friday - deploy started - aaaand to the pub...
o/
\o
@PatrickSimard Basically that. It's super hard to convince them unless you let them feel it in their wallet
@Leigh o/
@PatrickSimard you just start charging per hour.
16:49
Yeah thats why i charge 4 times the price ... covers my headack ...
@PeeHaa That's like $response !== 'no' :D
bye
@argon why goad us to comment and then delete the answer ... if you want to actually talk, then ask reasonable questions and listen to the answers ... nobody is ganging up on you, there just happens to be more than one person that thinks your code/approach is crap ...
3
also you asked for votes, don't complain when you get them
@PatrickSimard Yeap. Worked time and booze payment
user4244405
dear booter - thank you for your thoughtful extortion; i shall keep that in mind when I report you.
16:53
@argon ... lol
I think you need to chill out more. You've been given 2 kicks and spent 6 minutes locked out already. First thing you do when you come back is make a mild threat.
@argon are you this combative all the time ?
user4244405
keep it up and you'll see ;)
what the fuck, are you broken ?
16:54
it's not how learning works
here we go
you went like: 1) ask feedback from experts 2) reject said feedback because it's not what you expected 3) insult everybody in the process
"notice me sempai"
@argon I review code all day long, if you wrote that code and I had to review it, it would be rejected, if you behaved like an asshole about it, I'd have you fired ... something to think about ...
lol
16:55
@tereško you noticed me!
@argon you're kinda new here, so let me give you a small bit of advice. Normally, this kind of reaction only comes from 1, maybe 2 sources. And those sources have been rather quiet toward you, to be honest. You're getting this from some very nice, helpful people. Reflect on that.
@Tiffany you are not a jerk. that's noticeable
user4244405
... and i was kicked, apparently it's okay to curse in here but you can't be correct as the ego is more important ..
Also note it was two different people who kicked you.
And, if you continue, I'll make it a third.
@argon I really hope you don't assume that the "correct" part is you?
16:56
@argon you're coming into our personal space, which we are willing to share with you, with anyone, if they are reasonable ...
user4244405
go ahead, show everyone what a "big man" you are .. i'm sure they ill respect you for it ;)
@argon The people you're saying "have no skill" created the interpreter and specification for the language you're coding in, dude. (not me)
I don't think they understand that php is interpreted
3
16:57
A good portion of the people in this room help fucking build PHP. Take that into consideration.
@Dereleased not everyone. I'm mostly here to insult people
6
@tereško lol
@tereško And yet you've been quiet! You're not even one of the riled ones!
lack of beer, probably
16:58
@tereško lol Lol
I'd say @tereško got up less than half an hour ago
@argon chill man.... why don't you learn from them just like use this opportunity
no hate
user4244405
@Dereleased, and I've created my own programming language compiled C "dude", it's not rocket science, and not a pissing contest either, relax.
I kindly ask that everyone please chill out.
16:58
!!wiki brainfuck
Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism. The language consists of only eight simple commands and an instruction pointer. While it is fully Turing-complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps. The language's name is a reference to the slang term brainfuck, which refers to things so complicated or unusual that they exceed the limits of one's understanding. == History == In 1992, Urban Müller, a Swiss physics...
Anonymous
@WesStark I thought you said Rhino 3d was opensource :\ did you pay for that?
Sorry sorry. It's friday
@argon I'm just saying that your assertion that they have no skill is baseless and without merit
@FélixGagnon-Grenier I am still at work, an I have no beer handy this friday (yes, at work)
16:59
@argon kindly, is your own programming language used by millions of people, powering half the world's website?
tbf PHP is a shitty language
3
So I blame all of you
Especially @JoeWatkins
oh damn
16:59
@argon Link?
hookers and cocaine!!! im out take care guys
@tereško Oh shit. I missed that part, glad for you

« first day (2470 days earlier)      last day (2704 days later) »