That's great. I'm pretty new to php. I tried to use mysql with it, and found out that I was using the older mysql extension. But the docs contained that I have to recompile it with the --with options for adding support for the new mysqli or PDO_mysql extensions.
Generally you can just do phpinfo(); to find out what modules are installed.
Or from the commandline:
php -m
Additionally you could use: class_exists('PDO') to find out whether the PDO class indeed is accessible.
@limekin Depends what you are doing. As a general rule, the only reason not to do that is if you are doing something weird, usually it's because you are developing PHP itself (as in the C src) or because you need a different thread-safefty configuration to the one provided by your package manager
Or maybe you need some weird old version, or want to run from master or something
but if you are just doing regular development in PHP, just get the standard packages
It's like that crap that sports people talk about giving 110%... I just want to jump into the TV/Radio/Newspaper/whatever and punch then in their stupid innumerate faces
Whereupon they will of course beat the crap out of me, but it would be totally worth it.
Ways to progress with learning PHP? I've got the basics behind me and some advanced stuff, just don't know how to progress from here effectively? Anyone have any online courses or resources they've used in the past and would recommend?
@PeeHaa Yeh I'm pretty sure that the Java VM just starts with long long memoryIWant = 0xffffffffffffffff; while (!myMem = malloc(memoryIWant)) memoryIWant--;
oh yeah, baby identification has gone ape shit here ... now, the baby wears a permanent device that must match up with the mother, otherwise it gets wheeled back out ...
@MarceloCamargo I'm not sure if I like that too much… It's a bit like magically inserting the first parameter depending on whether there is a |> in the line after it.
@marcio, Well, basically, the pipe operator applies a function passing the value on "stack" for it and returns the result to be applied again. You can do method-chaining with simple functions, without needing an object for that.
@bwoebi The argument for not reading code backwards is enough to me. I've seen people avoiding nesting function calls because it's hard to read so they do intermediate assigns. Piping would solve it.
The distinction between sex and gender differentiates sex (the anatomy of an individual's reproductive system, and secondary sex characteristics) from gender (social roles based on the sex of the person, usually culturally learned), or personal identification of one's own gender based on an internal awareness (gender identity). In some circumstances, an individual's assigned sex and gender do not align, and the result is sometimes a transgender person.
The sex and gender distinction is not universal. In ordinary speech, sex and gender are often used interchangeably. Some dictionaries and academic...
@ziGi actually, I was thinking about @tereško as well when it popped up in my fb stream. then remembered he is from latvia and concluded that this is different from lithuania
@Gordon yeah, I don't want to offend teresko, but I always confuse both countries because I've never been there and because in my mother tongue they have much more similar names. The same way Dutch people are mixing Hungary and Bulgaria because they sound similar in Dutch (Hongerije, Bulgerije). Although in Latvia and Lithuania they speak similar language, although Latvian is more modern.
@발렌탕 It's been suggested a couple of times but even if the language supported it the underlying operation would still be O(n). The problem being that arrays themselves are untyped, so you can't do the type check at the point where the element is added to the array, so you can only do the check at call time. IIRC the last time it was proposed this was the thing that blew it out of the water.
Since we also don't support generics, the only options are foreach etc checks in the receiving routine, or creating a specific ArrayObject-like thing which performs the check at the time of element insertion.
both of which are kind of shitty solutions
@Ocramius had some god-awful way to do it by hijacking variadics to do it, but it doesn't really fix either of those problems, won't be any faster and is way less readable
@DaveRandom oh jeez, untyped array ! was I really even silly to try 'MyObject[] myarray' ? that sounds like non sense yes! However, if there were a mechanism to declare type-bound arrays, that would be very useful, in the least of readability.
You can do function foo(array $arr) {} to ensure that is is an array, but if you wan't to ensure the types of the elements you have to do it manually. PHP is a weakly typed language, I still haven't decided whether I would actually even want this even if it could be implemented sanely.
I think generics-like stuff is likely to be more useful (and could be used to do the same thing)
@tereško It's almost how gravitational redshift works, although one could argue over the semantics of it, but it's a yo-momma joke, I wouldn't examine it too closely.
@tereško There is also redshift that can be observed due to the effects of time dilation as the light moves away from the high-gravity body from which it was emitted. If "yo momma" were indeed "so fat" enough for this to be measurable, then changes are she would also be fat enough to collapse under her own gravity and begin fusion, emitting light in the process.
@DaveRandom As I learn more about the engine I'm not sure we could do it feasibly without JIT optimization, which is something I'd personally want to stay away from.
@NikiC These are things that start to melt my brain when I think about them for too long. It's one of those things where I've read stuff a thousand times and every time I think I get a marginally better understanding of it, until the next time I read it and I realise I really didn't.
Yesterday the boss asked us to dream. "What if you had unlimited funds to hire devs or replace the current system with third party software? What would you do?"
Yeah, the answer was basically "well, first we need to hire someone smarter than I am, at an appropriate market rate."
"Then we need to hire someone that actually knows how software that handles financials should operate and tell us what to do, because it's clear that we don't completely grasp what's going on here."
Increasing a developer team of 10 people to 90 people to be able to do a 90 days task in 10 days is like getting 9 women pregnant to give birth to a baby in a month.
The more developers you have, the more time is going to be spent in management and coordination, especially if there aren't any good project managers and CTO's
@ziGi that's the wrong question ^^ try "how to make kids instigated to learn about finances when they are 10?", they will relate to the "real world" part in case your method is successful.
@tereško What I meant by that is that you only have local inertial frames in GR. Local as in within an area of low spacetime curvature. An inertial frame of a photon close to a massive objcet is a different frame from one far away.
Really all I wanted to say with that is that there should be no expectation of energy conservation
@marcio you are completely correct. Actually what I told him was that it has to be more like a game that asks the kids to do some operations in the game which would teach them to the "real world" problems but at the same time the focus would be for them to have fun and gain points, so more or less gamification.
Brooks' law is a claim about software project management according to which "adding manpower to a late software project makes it later." It was coined by Fred Brooks in his 1975 book The Mythical Man-Month. According to Brooks, there is an incremental person who, when added to a project, makes it take more, not less time. Brooks adds that "nine women can't make a baby in one month."
== Explanations ==
According to Brooks himself, the law is an "outrageous oversimplification", but it captures the general rule. Brooks points to two main factors that explain why it works this way:
It takes some time...
Btw @PeeHaa and @Gordon, thank you for your help with the Android room guys. I am not going to get un-banned, but at least I understood that I have done quite a lot of damage, that I did not even know of. I have even sent someone to the psychiatric clinic. (the last part was a joke, but apparently they got so offended by some of my sexist comments that were not aimed to them, that they didn't want to join the room after that, although I was banned)
Although, I still can't wrap my mind around how people get so offended on the internet, by things which were not even directed to them but to their gender, and won't join back even after the person, in this case me, hasn't been present there for a year. And the worst part is that I don't even remember what I have said that is so serious.
@ziGi Difference in sensitivity - topic, personality type, emotional triggers, etc.
@ziGi Hard for me to comment without also generalizing about types // and since you've apparently been banned for generalizing about a gender type in a chat room, I'll learn from your mistake and bite my tongue. ;)
@ziGi It's probably a good thing that you can't wrap your mind around it. Will be better if you aren't ever easily offendable... and simultaneously don't offend. ;)
@GeoffreyHale haha good point, however, what I wanted to say is that I am not the one that suffers that much from it, as is the person that is too sensitive on such topics.
@ziGi Eh, this will get philosophical real quick, bit off topic... but "too sensitive"? Is not all relative? You hurt someone. That's the facts. Then you got banned. That's the facts. Looks like something you did caused problems for everyone. Worth considering.
@GeoffreyHale yes, however, it took me one year to understand what harm I have caused, instead of people trying to accept that I am a human and I learn how to behave with age and give me a second chance after some time.