« first day (1921 days earlier)      last day (3252 days later) » 

18:09
btw I updated the list() keys RFC so that you can use arbitrary expressions as keys @bwoebi
18:28
@Charles You should probably be...
Does someone use traits? I've never faced with necessary to use them, but looks Laravel uses them. I'm a bit stuck while traits looks for me just a copy-paste, ok automated copy-paste.
@zaq178miami No, you're completely correct, that's exactly what PHP traits are.
yeah, i know (from how they are internally implemented)
but are there any practical reason to use them
it's a bit hollywar question, but I'm seriously
I used them to break up horribly designed classes into smaller, more digestable units. The classes still exist, they're just now composed by traits. This made it easier for us to get our heads around certain things about the amazingly stupid way our code works. This is not a practical or intended use of traits.
I can't find other use cases for traits, the way PHP uses them.
@zaq178miami Traits are useful to define throwing __get and __set on all classes
But that's about it
18:33
@NikiC, thanks, that's more or less how I see their usage too
just primitive stubs
anyway, i prefer stay away from magic (when it is not completely necessary)
@NikiC pretty much
traits are probably handy for generic magic method implementations and little else
Ahahaha they call their data objects "beans"
I hate SugarCRM already and haven't even used it.
Oh my gods all their properties are declared with var
Haven't you ever looked into their code prior?
Nope.
but is it good to traits for what one may call "multiple inheritance"? Maybe I'm just too conservative but it doesn't look like well-maintainable way.
18:41
I could have given you the day off :-)
I'm hoping not to. It should do what we need it to do ou of the box, we just need to get data in and out of it.
The latest version is halfway transitioned to a backbone-based frontend. Literally half the modules aren't ported yet, and this is considered stable software that we're supposed to build upon.
Yeah I imagine fun times ahead of you :P
Yeah. We get to integrate with it, and with PowerBI, and then other data sources, and then figure out how to bring allllll of the disparate data back together again.
....you ought to go to a hypnotist to try and find out what you did in a previous life to deserve this.
I'm actually looking forward to this challenge. I'll get to use modern code and third party libraries.
18:48
From what I have seen (now and previous horror stories) I'm fairly sure @Charles was Hitler or somebody equally bad in his previous life
Tackling a hard problem using skills I'm proud of > stagnating doing the same things over and over on prehistoric code and not learning anything.
True
Man, I haven't been compared to Hitler in a long time ;)
4
@Charles because JavaBeans were obviously such a good idea
18:54
Wait, didn't Stas used to work for Sugar?
I was going to make a joke about that being why he always seems so grumpy
But apparently he works for Wikimedia now
the trick is to call them "mushrooms".. at least that's what worked on my sister as a kid (she wouldn't eat beans, but loved mushrooms and couldn't tell the difference)
@Charles Yea he was/is
Are versioned filesystems... a thing? Has anyone ever git init /
Surely the initial git add -A; git commit would... take awhile.
@NorthbornDesign I accidentally git inited my desktop once if that counts
@PeeHaa Did you let it happen, or rm it?
18:59
Not doable
Why's that?
It's waaay too slow fo dat
Hmm, is there a VCS optimized for full FS?
Actually... wait, if you .gitignore'd alot of shit, it could work, no?
Yeah it's called daily backups :P
lol, that's so <=2015
19:02
!!wiki Versioning file system
A versioning file system is any computer file system which allows a computer file to exist in several versions at the same time. Thus it is a form of revision control. Most common versioning file systems keep a number of old copies of the file. Some limit the number of changes per minute or per hour to avoid storing large numbers of trivial changes. Others instead take periodic snapshots whose contents can be accessed with similar semantics to normal file access. == Similar technologies == === Backup === A versioning file system is similar to a periodic backup, with several key differen...
I'm going to .gitignore * and whitelist stuff.
19:18
I can only see it end well!
> CVE-2016-0728 is caused by a reference leak in the keyrings facility.
That sounds terribad
Pretty awesome cool
19:43
@PaulCrovella I wish they'd pull GRSec into the core Kernel. it's a pretty solid way of stopping a lot of attacks like these (although this one might not be)
[ ofc ] Used in instant messaging to represent 'Of course'
20:17
should switch that up to occasionally give the lowest-voted definition
The highest is also sometimes...
!!urban wtf
[ WTF ] The World Taekwondo Federation. WTF, holds many competitions throughout the world.
!!urban swordfighting
20:19
is that actually meaning that taekwando-ers are more aware of urban dic than wtf-ers?? wtf...
lol!
mmmmmmkay
1 message moved to bin
E_TOO_MUCH_SWORDS
!!urban peehaa
20:21
[ []() ]
well that explains that
lol. empty result fail
@PeeHaa its not an empty result. its a tie bomber
Ain't nobody got time to handle wrong responses :P
Besides the flagged calling users fucking assholes: dat name
so was just trying to get a hold of what code does and things when $response = yield from
aight cya
20:25
@FélixGagnon-Grenier That took me a while to understand
I can helpz?
I'll start by actually reading the manual, if I get problemz I'll ask
Sure. Let me know if you have a question
/me is going to attempt to integrate 3v4l
if you find the manual lacking, try the rfc
:28237071 yes... you are kinda right
about the first part
20:29
It's used in generators
In amp it is used to prevent callback hell mostly by magic
@PeeHaa make the command !!eval so it feels dirty to use
Way ahead of you! const COMMAND = 'eval';
:-)
20:45
@PeeHaa so... very hacky and stupid, but do you think that might actually do the trick?
based on the api result
I would rather do an if statement which bails out early (return 'undefined term';) when no results are available.
s/undefined term/whatchoo talkin bout willis/
So 1) check if result is available 2) return early with message if not available 3) the current code
ugh.. that makes two yields... what about message = if undefined getUndefinedMessage else getMessage yield?
Yeah. Something like:
20:54
updated anyway
    private function getMessage(array $result): string
    {
        if ($result['result_type'] === 'no_results') {
            return 'whatchoo talkin bout willis';
        }

        return sprintf(
            '[ [%s](%s) ] %s',
            $result['list'][0]['word'],
            $result['list'][0]['permalink'],
            str_replace("\r\n", ' ', $result['list'][0]['definition'])
        );
    }
?
oh. kay I thought you meant return as early as possible, eg in getResult. that's cool
so it's really just the shorthand if you dislike :p
Neh. Just in the message method return early
:-)
requested @PeeHaa
\o/
21:00
so now, back to the actual work I'm supposed to be doing...
:-)
!!urban peehaa
whatchoo talkin bout willis
Thanks!
21:25
!!urban dan ackroyd
[ dan ackroyd ] a bottle of dan ackroyd wine, used to be covert about alcohol intake, possibly also to simultaneously suggest you have a social life
well...half right then.
hehehe
@bwoebi ping
21:38
43 commits in a row.
...maybe teach him --amend?
Wes
Wes
isnt dan ackroyd the guy from myth busters
Wes
Wes
evening \o :D
21:43
\o
👋
Wes
Wes
adjust your volume, sponsored by...
lolwut
Wes
Wes
the future
that's a LG smart tv or something
The fuck people want their tvs connected to the web idunno
21:52
hum... movies?
I use my pi for that
@PeeHaa tv guides?
@Wes pretty sure he was in the Dam Busters
@Danack You can't have that without a full blown internet connection on it?
Wes
Wes
wait does that movie actually exist?
lol. looked like a bad joke
21:58
I always thought EPGs were a separate thing
It is a real film and has a lot of inspiration for star wars......as that mash up shows.
Wes
Wes
must be shit then :D
it's... just not the same thing without the orange
22:53
@JoeWatkins initial tests show no improvement re: global fci for user sorting. Maybe offset by passing the info and cache around as args?
 
1 hour later…
23:57
I need help friends.

I need code that when a button is clicked in HTML (in a php file) a php code is activated, it then shows a counter on how many people clicked the button.

I just want it to simply add +1 to a number in a text file and load it into the webpage.
Sorry. English is my bad language.

« first day (1921 days earlier)      last day (3252 days later) »