« first day (1665 days earlier)      last day (3298 days later) » 

12:02 PM
more beast than laptop for sure ...
 
Anonymous
@JoeWatkins what do you think of this digitec.ch/en/s1/product/…
 
@Fabor What do you need all this power for?
 
Anonymous
aside from being 13" I think, it suits a need of a php developer
 
@samaYo pretty terrible
 
@bwoebi Just speedy VMs for local dev environment
I got what I could for the budget I had.
 
12:07 PM
Currently all what I need my perf for is mostly things like compiling… where it is really useful.
 
I have a 13" laptop and I think the display is not big enough for coding
 
Anonymous
@JoeWatkins define "pretty terrible"
 
@Fabor that's about SSD, not about the CPU…
 
The CPU was part of a bundle.
 
550 W PSU… wat?
 
12:09 PM
@samaYo it's basically a dual core machine, with a tiny cache, low clock speed, and a tiny screen
also, afk, walking dog ...
 
@samaYo it's like high end from 5 years ago or more.
 
Anonymous
@bwoebi 13" and dual core is a turnoff, but aside from that .. it looks good to me.
 
Well… I'd rather buy an apple for the same price with better hardware…
 
@bwoebi A apple computer?
 
@Epodax no… the fruit ~.~
 
Anonymous
12:16 PM
@bwoebi give me a suggestion for a better one around the same price range
 
@bwoebi Apple = Most expensive for the least hardware
 
Anonymous
max $1600
 
Anonymous
that goes for @JoeWatkins as well, after you are done walking the dog :)
 
but why laptops?
 
Anonymous
portability
 
12:19 PM
Meh, Just get a cart or something
 
@samaYo store.apple.com/us/buy-mac/macbook-pro?product=MF840LL/… … use second option for processor … Then you already have a bit better specs than this Dell [the built-in graphics processor, screen resolution, PCIe SSD instead of SATA]
 
Anonymous
i hate the mac
 
50% more Wh in battery^^
@samaYo hehe … with that attitude… then the mac is the wrong choice for you :-P
@samaYo just tell me why
 
Anonymous
I don't know really, it seems difficult to me, it'll take more time to learn (never touched a mac before) second, they are overpriced. I don't like people selling something 20% than it should be. It makes me feel like an idiot :)
 
@samaYo Sometimes as much as 30% :P
 
Anonymous
12:29 PM
let me know if you have a pc alternative, @bwoebi
 
@samaYo The laptops overpriced is a myth… The Desktops, maybe, but not a lot… you maybe pay 5% more. But surely not more than these 5%.
@samaYo resistant to change :-)
 
I forget who posted this link earlier but it hold true
 
Anonymous
@Machavity that was me :)
 
lol cool
 
@Machavity sucks to be that guy then - bbc.co.uk/news/technology-32607618
 
12:31 PM
@Machavity know the difference between an apple and a low-end model? The apple is rather high-end [and hence appropriately priced]
 
@Danack Very true. But that was lenovo being stupid. Loading crapware on PCs you sell for a living is a terrible idea anyways. That it introduced a massive security hole was just a bankshot
 
^ They're selling their laptop so cheaply that they need to add adware to make any profit :-D
 
Wow, BBC was slow on that uptake. ArsTechnica covered that months ago
 
At least part of the price difference is because of that adware - without it being installed, they would have to increase the price of the laptop.
@Machavity That was a separate investigation.
Or rather the full results of the investigation were only just released.
 
Ah
 
12:35 PM
Either your hardware is expensive or something's fishy^^
 
I found it comical that the company that made that crap was defending the software after it had been proven to be insecure
 
Anonymous
if that laptop was only quand core, I would scrap it in a second
 
@samaYo search for ASUS X550JX-DM089H (proshop.dk/Baerbar/…) danish site, but specs still understanable and it's roughly $1000
 
@samaYo quadcore has its price… about an additional 300$
 
12:38 PM
@bwoebi It's not a myth... Compared to what you can build yourself (Desktop that is) the Apple's are 1000 times more expensive.
 
@Epodax yes, I'm agreeing with you on desktops. But I was talking laptops.
 
@bwoebi It's more than %5
 
@Epodax Also, even when you assemble it yourself, it's a 20%, yes.
@Epodax take the components and calculate it yourself.
 
@bwoebi If you are patient you can really save a lot, and even among laptops you can save quiet a lot compared to a mac if you are willing to take a more bulky one.
 
@Epodax there are some reasons why they end up more bulky… e.g. they use SATA SSD instead of PCIe… that makes quite a big difference
there are tiny differences which sometimes make a big difference in price.
or batteries not that efficient…
sometimes laptops are a monster of power, but absolutely inefficient and need to be recharged after two hours
 
12:44 PM
So, just for kicks, the Macbook (not Air or Pro) is $1300. A comparable Dell XPS 13 ultrabook (same RAM, SSD, larger screen, full size USB ports, faster processor) is $1100
 
...
oh
the normal macbook.
 
@bwoebi Well yes of course there's a lot of factors that play in for the price, but it doesn't change that fact that if you are willing to sacrifice sleek design a "ultra fast bootup" you'll get a lot more hardware for the price.
but again, it depends what you need to use it for.
 
@Epodax yes.
 
says it's a 12" screen. Dell's is 13.3"
 
And Apple's main point is the design and OS
 
12:46 PM
it's the closest I can get apples to apples
 
Hey, I forgot to wish y'all a happy weekend! ocrami.us
8
 
Nice domain name
 
@Machavity the normal macbook. I have no idea what to do with that thing. It's extremely reduced, has no fans, macroscopic battery… But one single USB-C port where you need an 80$ adapter?!?! some efficient, low-heat, but slow CPU… huh?
 
Yeah, Ars panned it for having one USB-C for EVERYTHING
 
12:49 PM
The thing is nice, but it's too early. And two USB-C ports wouldn't have been bad…
I give it three years, then it's maybe okayish.
 
@Fabor quit
 
^ that one applies to me, actually
 
The "Beware" part at least.
 
Beware of computer programmers that carry @tereško?
3
 
1:01 PM
well, a screwdriver is one of the default items in my backpack
 
^^ (not a Friday link)
 
psr-4 is not a latest version?
 
lol
 
@tereško not sure a flick knife really counts as a screwdriver
 
no, the flick-knife is a separate item there
 
1:07 PM
@salathe tories, psr-7, not a good week for votes for me.
 
@DaveRandom :-s
 
@tereško cause you never know when you'd like to someone with it?
 
naah, that's what the 1m bicycle chain is for
 
haha
 
@DaveRandom Uhhhmm yeah it does...
:)
 
1:24 PM
Good morning
 
@PeeHaa Fun fact: the CCA banned the use of the word "flick" for fear that the L and I would run together in print and someone would end up brandishing a fuck knife.
 
lol murica
hehe it's comics! it's TV! It's computer games!
Same shit different day
 
Anonymous
talk about murica again amazon goes gender neutral
 
Anonymous
there is no end to the insanity
 
1:58 PM
What was the reason that if you have a trait with a property, and the same property is in a class that uses the trait but is assigned a default value != 0, then it throws an error, but if you assign it as a 0 it is fine. What's the logic here?
 
@samaYo Can't search for your girls toys anymore? :P
 
ba-dum-tish
 
all toys are for girls and all toys are for boys
 
@ziGi Could be a bug ?
@ziGi It depends......if there's a reason for them all being together then maybe it's okay. If they're together because people just add them without thinking if it's the right place to add stuff, then maybe not.
 
Gender neutrality has screwed up my search filters! I only wanted blue dildos! Not pink ones!
8
 
2:05 PM
@Danack example: a User can be read or stored/removed/updated. I make a UserReadController and a UserCommandController. I guess if you have to be even more explicit then you can split the Command into 3 controllers, but since there are usually 3 actions in the controller, I keep them there.
If you use event sourcing it's all inserting so I guess it's reasonable to keep them in the same place
 
posted on May 08, 2015 by kbironneau

/* by Raoul René Melcer */

 
@ziGi One for you to watch then:
If having them together makes it easier to think about your code, then it's fine.
 
I guess so
 
I'm a pretty strong believer in not allowing 'coding style guides' to be more important than tailoring some code to be a good fit for a project.
 
Can anyone help with this? Fatal error: Call to a member function connect() on null in C:\xampp\htdocs\classes\class.core.php on line 27
here is my code, pastebin.com/Uear0ivc
 
user895378
2:12 PM
^^ "A foolish consistency is the hobgoblin of small minds"
 
@Danack The tricky part is to know exactly whether your code is a "good fit"
 
user895378
I try to keep my OCD tendencies in perspective and not let them overrun what's really important (working code)
 
@rdlowrey And Java devs.
 
user895378
;)
 
Can anyone help?
 
user895378
2:13 PM
@DanLugg lol I got a good chuckle out of this.
 
@AshSimpson do a var_dump($db) on the line before the error.......but basically you need to learn how to debug your code.
This is a video of how to debug stuff with PHPStorm. Please watch it.
 
will do
 
@Danack what is the video you gave me all about. I am at work at the moment so I can't watch it
 
@ziGi It's about figuring out how to make something be a good fit.
Kind of.
 
@Danack just outputs NULL
 
2:16 PM
So now you need to step through the code with a debugger to find out what your code is actually doing, as opposed to what you think it's doing.
 
Well its being defined by a function, so the function must be dodgy.
$db = $core->GetDatabase($conf); // in index.php
 
39 secs ago, by Danack
So now you need to step through the code with a debugger to find out what your code is actually doing, as opposed to what you think it's doing.
 
Can anyone notice what is wrong with this?
public function GetDatabase($config)
{
switch (strtolower($config->GetConfigValue("database.driver")))
{
// Handles multiple database drivers

case "pdo":
return new pdo();
break;
case "mysqli":
return new mysqli();
break;
case "mysql":
return new mysql();
break;
}
}
 
@AshSimpson .......what is wrong with you? Why don't you want to learn how to debug your code so that you can solve problems yourself, rather than just being stuck?
 
@Danack when I write code, I usually also try to write it in such a way, that if someone who doesn't know the project comes, he's able to understand what happens without having to go through the code and check what is happening, but just by reading the class and method names
 
2:21 PM
@Ash , you started using SO chat 3 month ago ... and you still don't know how to post code here ?
seriously ?!
if chat has too steep learning curve for you, I'm not too optimistic about that "programming thing" you are attempting to learn
 
Can anyone give me a good simple article/tutorial explaining how to setup your env with Vagrant?
@tereško conforming to the chat rules is too conformist. Maybe he's a goth or hipster or something
 
@ziGi since he's in my ignore list, that chances are slim .. I tend to trust my past assessments
 
teresko must be in my ignore list
I do remember her being pretty annoying
 
teresko is a guy, why her?
 
@ziGi Unless you want to learn lots of things at once, I'd suggest using puphpet.com to get started.
 
2:24 PM
what do you think about this github.com/php/php-src/pull/1264 ?
 
@Danack thanks
 
why the fuck so many people think that I'm a chick ?
 
@marcio I think we need to do a big cleanup of callables, not just poke at the edges.
 
@Danack I don't like it :( creates consistency by introducing another language corner.
hope it requires RFC
 
@tereško must be all the swearing you do ...
 
2:26 PM
it must
 
@samaYo The interesting thing to me is that our little boy only plays with girls. Sure, he plays with the dolls but when they aren't around he doesn't. When they aren't around he plays with trains and tractors.
 
smart kid
 
Honestly I can understand removing "girls" and "boys" search targets.
 
Maybe get your hair cut you freak
then maybe you wont be mistaken for a girl..
 
What makes something a "girls" toy vs a "boys" toy? Which does a toy horse fall under?
Is a disney prince a boys toy or a girls toy?
 
2:31 PM
I have a young girl who self-identifies as a "girly girl", for her, this is just going to make it difficult to find the latest princess things ...
 
@JoeWatkins Just search "princess"?
 
but why shouldn't princess stuff be under a girls section, I don't get it ?
 
1 min ago, by Ash Simpson
Maybe get your hair cut you freak
lol
 
not every princess toy has princess in the title ya know, they have all kinds of weird names ...
 
user895378
@marcio Is this even necessary? In PHP7 we can just wrap the callable expression in parentheses, right?
 
2:33 PM
As long as nobody is forcing a child of either gender to play with a particular kind of toy I'm okay with that.
 
@LeviMorrison s/child/anyone ?
 
Sure, why not.
I generally identify "toy" with "children" so I guess I'm age discriminating :)
 
I'm sure nobody is, you can't really force a child to play with anything, or I don't know of a way to do that ...
 
@LeviMorrison I buy GI-Joes for my grandfather, every single birthday, you ageist.
 
@JoeWatkins Very easy: Take it away from them :P
 
2:35 PM
@rdlowrey this is not necessary at all
 
Why is my auto loader only including 7 of my files :O
7/11 that is weird
 
Vote early, vote often.
 
and so is [$obj, 'func']() IMMO
 
user895378
@marcio I mean, I've encountered the same issue before. It's odd that something can pass the callable typehint but fail if you try to invoke it directly
 
user895378
@marcio I disagree here.
 
user895378
2:37 PM
The array form sucks but how else would you indicate an instance method as a callable? This is exceedingly useful.
 
@rdlowrey that boils down to what @Danack said chat.stackoverflow.com/transcript/message/23180209#23180209
 
@NikiC that will either work perfectly or induce screaming :)
 
@rdlowrey It'd be nice if we could dereference methods as members
 
@marcio wat.
 
@marcio delete that requires RFC comment. Please, please, PLEASE.
 
user895378
2:38 PM
@marcio not sure how that's related.
 
user895378
Instance method callables are something I have to use heavily. They won't be removed ... ever.
 
@rdlowrey :D I'm the only one that hates [$obj, 'func']()
shit, wrong link
 
@marcio oh, I don't like it. But I can't think of a better way
 
Yeah...I think mr Lowrey knows how to use a debugger....OR DOES HE?!
 
@Danack no, he doesn't.
 
user895378
2:39 PM
The array callable form is ugly, but you have to have some means of referencing an existing instance method as a callable.
 
user895378
@Danack var_dump() FTW.
 
^ well.... yea.
 
updated link up there ^^
 
2 mins ago, by bwoebi
@marcio delete that requires RFC comment. Please, please, PLEASE.
 
user895378
@marcio oh, yeah that would be nice. See you in PHP8 though :)
 
2:40 PM
@marcio ^
 
@bwoebi why?
 
@bwoebi It probably requires an RFC. Trying to sneak language changes through is a good way to get crap in the language.
 
@marcio That's the problem to make a RFC for every shit.
 
Do you prefer to have it merged without RFC or you promise it won't be merged if no RFC?
 
@tereško I guess if you were a girl, your name would've been 'tereška' instead
 
2:41 PM
@marcio Yes. Discussion on internals, no RFC.
 
@marcio Bob has very odd ideas about how projects should be run.
 
@ziGi actually works ending with "o" in latvian are gender-neutral, because none of them is native to the language
examples: foto (photo), auto (automobile)
 
@rdlowrey It breaks everything but I wish this were reasonable to use
 
@Danack ha!
 
@bwoebi 50% chance discussion on internals will lead to merge for PHP 7, instead of PHP 7.1 if we have RFC. I'm just doing risk contention.
 
2:44 PM
Mornings
 
@tereško yeah, I know what you mean, my native tongue is also part of the same language group so I can relate
 
@marcio That's a nice side effect if it's just internals.
 
morning @RonniSkansing
 
Friday =]
 
user895378
@DanLugg I totally do that in a couple of places. Like ... I used it yesterday :)
 
2:44 PM
@marcio but generally I don't think we need a RFC for such a tiny change
 
@rdlowrey With the __get definition even?
If the fucking member tables were merged ... ffs.
 
@tereško I guess people think you are a girl because you have a long hair on your avatar, and your face is a bit hidden, so they subconsciously relate long hair to girls
 
actually, that avatar is like 6 years old now
 
user895378
@DanLugg well, no. I just use (new ReflectionMethod($this, $name))->getClosure($this); to internally generate a callable from a private method that I don't want to expose as part of the class's public API.
 
2:46 PM
@tereško Update! Update! Update!
 
You must be a grandpa already then :D
 
@rdlowrey Ahh, yea, I used that trick to break encaps a few times.
 
I should get a new one .. unfortunately I usually end up on the other side of objective when I am completely drunk
or sky high
 
@rdlowrey I really want getClosure() to have an optional arg.
 
I haven't taken a passport photo the past 5 years to be honest
 
user895378
2:47 PM
@DanLugg for?
 
user895378
for use() ?
 
So that method can do the rebinding.
Rather than having to re/unbind the resulting closure after
getClosure($this)->bind($somethingElse) should be getClosure($somethingElse)
And, as optional, you can unbind it.
 
user895378
There's not really much need for that is there? Not since @Andrea added Closure::call() in PHP7.
 
user895378
Closure::call() solves the performance aspect of rebinding, anyway.
 
I dunno, it just seems like a mistake an artifact in the API now that we can rebind closures.
 
2:50 PM
@tereško you haven't cut your hair since then?
 
@bwoebi on the PHP game when you don't like something you use the requires-RFC card ^^
 
I've ranted about this a few times, but getClosure should be moved up to ReflectionFunctionAbstract with $object as an optional parameter.
 
@DanLugg Supposedly internal objects can't reliably be unbound or something.
I remember looking into this.
 
^^ Really?? That's interesting.
 
@marcio see, that's why PHP goes nuts.
 
2:52 PM
@bwoebi Because people disagree with you? ;-P
 
@marcio In your opinion how is this not a bugfix?
It passed callable and you couldn't call it.
 
@Danack no, because we try to play the bureaucratic card in case we disagree
 
Sure, some bugs still require RFCs to fix because of widespread impact. In your opinion why does this one require one?
 
Ugh I want a tea but work tea is inferior due to it being toilet water and the worst limescale kettle ever.
#britishproblems
 
@LeviMorrison because it's a language change?
 
2:54 PM
@marcio no?
It's a runtime change.
 
I installed CouchBase today. I'll start logging there instead of files to see how it goes.
 
@iroegbu not much, they usually fluctuate between shoulder-length and "over ears" length
 
@bwoebi hummmm, now that's real lawyering - the runtime is not part of the language... - and you wonder why PHP went nuts.
 
@LeviMorrison Well, ... that's kinda interesting 3v4l.org/v3t9b#v540
 
Once I decided to grow long hair until my shoulders, but I looked ridiculous so I cut it.
 
2:56 PM
@marcio it's a detail in what INIT_DYNAMIC_CALL accepts
@marcio see? You play an unfair game… then I do too ;-)
 
I'm not playing unfair, but you just admitted your argument was unfair so... thanks.
 
hahahahahaha
 
seriously, to me it seems like a language change.
 
@tereško when making a mapper, how do you pass the input criteria (coming from the request) to the Mapper (if you have multiple fields for example)
 
@marcio Playing the RFC card because you don't like is unfair.
 
2:58 PM
18 secs ago, by marcio
seriously, to me it seems like a language change.
 
@ziGi the "criteria" are set in the object which will be mapped to (both for collections and simple objects)
 
@marcio Sure. Just saying that some language changes don't need a RFC.
 

« first day (1665 days earlier)      last day (3298 days later) »