« first day (1519 days earlier)      last day (3655 days later) » 
00:00 - 20:0020:00 - 00:00

20:13
@AndreaFaulds Squash&rebase is always possible
multi-commit rebase not always
@NikiC Yeah, it's that which is nearly impossible for that branch. Squash is possible.
but large features are something else
more referring to things like the zpp thing, where there's 20 commits with "fix tests in ext*"
or like, when the recoverable on $null->foo() was merged, that was like 50 commits (of back and forth and merge and stuff)
Yeah, ZPP should've been squashed and rebased
With bigints, is it a bad idea to preserve the commit history?
20:28
Depends
Also, are string bitwise shifts memory leaking in master for you too?
Hmm
I think Dmitry broke something.
Yep, he did. I even know which commit broke it.
This commit is faulty (see comments): github.com/php/php-src/commit/73458e8f
Know what, I'll fix it myself.
21:04
"ICU was the part of the hospital you end up in after attempting to work with unicode, right?" – @igorwhiletrue
21:20
Anyone know of any extensions that use travis? Want to look at their .travis.yml
@DaveRandom UString
21:49
Any php expert here? :D
@FranciscI.B your question?
Jul 27 at 21:28, by Danack
Hello, I have a problem, but I am too lazy to write the question out until some says that they will help me. http://sol.gfxile.net/dontask.html
I just found out about this chat, awesome idea.I'm curios if here are any php developers with +5years experience :)
I have one year of experience!
@AndreaFaulds you're a cheater :P
21:54
Or six, actually, depending on your perspective. Doesn't mean my PHP code is any good.
^ exactly my problem. I've known php for several years. Heck I even started when PHP4 was hip but I'm far from being "experienced"
what are the subjects that are open on this chat? :D
@FranciscI.B it seems you don't have a specific question.
I dont :D
10x for asking :D
@FranciscI.B welcome to room 11
21:56
good to meet all php fans :D
luckily my nick isn't foobar123 ;)
@FranciscI.B PHP ;)
well, actually i don't like php
Oh.
That's a shame.
Why don't you like PHP?
truly a shame :)
21:59
what do you like?
some law level programing i guess
law level programming - o_O
@zerkms newton lol
no, criminal
low* i'm sure u got the idea no need to point it out :D
22:01
there are a few reasons like the half-baked in type-safety, haystack and needle argument positions in function calls, function names sometimes using underscores and sometimes not...
@foobar inconsistency presents in every language
@foobar Yes, the standard library is pretty awful.
like in every
@zerkms PHP is particularly bad
22:02
any php dev from uk?
yes, but you don't use all 100% of functions
@foobar Some of us are trying to add new, nicer APIs, e.g.: github.com/krakjoe/ustring
@FranciscI.B I live in Scotland.
PHP Is Awesome And Does All The Things.
2
@AndreaFaulds well ... there is always ObjC
so I suppose in every language you meet inconsistencies from time to time
22:02
@tereško Objective-C at least has a nice concept
@zerkms PHP is still particularly bad, no point in denying it
that's right, but I personally could not accept it as a reason to not use language
@AndreaFaulds that like saying that communism at least is a nice concept
well, i hope you're going to be successful with it =)
@tereško damn the semantics is scary let alone diving into it
that's "true" - but it does not justify anything
22:03
@AndreaFaulds [[[[[[What concept [is] that]]]]]]?
@tereško Communism is a wonderful concept. It's also never been implemented.
Lisp, only more square?
@DaveRandom Smalltalk objects within a strict superset of C
@DaveRandom to be precise - in LISP it's not more parentheses than in some imperative code that does the same job
@tereško Do not confuse "Marxism-Leninism" (which has nothing to do with Marx nor Lenin) with Communism :)
22:04
I confess I don't really know what smalltalk is. I've heard of it, but I don't know much about it.
@zerkms i never said that i don't use php. though i actually don't ;) but i don't use it for a different reason, which is that i currently just have no use for php
can this be written in a single line? $method = $class1->getMethod(); $class2->$method();,
@DaveRandom Smalltalk is a really simple language that's pretty cool.
@birdieblue you have already done it
@birdieblue it's a single line
22:05
@birdieblue lolz
$class2->{$class1->getMethod()}();?
@AndreaFaulds I'm interested in moving to uk from romania. do u know any companys that hires graduates in Bsc?
Not sure if that works
@FranciscI.B no clue
lol
22:05
@AndreaFaulds ok , ok .. I concede a defeat
@DaveRandom That should work but might not in PHP 5
@tereško :-D
You can certianly do call_user_func([$class2, $class1->getMethod()]);, but don't
tbh the whole concept is generally horrible
haven't tried the $class2->{$class1->getMethod()}(); approach. Will test.
It's awful
@birdieblue Why, exactly, are you trying to do this?
22:08
@FranciscI.B I know - google does
@AndreaFaulds it's OOP!
@AndreaFaulds Calling a method on a controller read by a router class
so why to put it in a single line?
name it $action = ...
@birdieblue Why are you getting the name of the method from another class? Why the hell would you want to do that?
$controller->$action()
that is readable
@zerkms already did. I was just curious if there was a way around that
22:10
@birdieblue Oh, wait, I see why you want to do this...
a way to make readable code - to be not readable... it's weird
@birdieblue that looks like a code smell
@tereško how would you run a controller's action otherwise?
@zerkms I was wondering the same
@zerkms I am just saying that there is something really off about that code
I think it has something to do with the name
22:12
anyway, the initial revision (if named properly) was fine
Hi. I was hoping someone here could help me. I'm developing a C# app but I need a PHP webservice so I can talk to my Database, I have based my webservice on online tutorial (not ideal, I know!). I have a little PhP but not much and I would like to modify it further but cannot figure out how to change the following.
getMethod() ... it raises my hackles
doing it in a single statement is terrible
My web service code is here:

http://pastebin.com/d9gvk2QR
@tereško I'm sure it's just a simplification
22:13
we can only hope
and I am just trying to modify the JSON string output to remove the array if possible.
@tereško don't worry:)
SO I just have one object with two nested objects
@James could you please reduce your question so that we didn't have to read 70 lines of spaghetti-code?
@James please dont use mysql_* function as SQL API
also, you code is vulnerable to SQL injection attack
22:14
:-s
good question has at least half of an answer, just saying
your question does not have even a question
Ok, srry about all that, as I mentioned I got this off a (obviously bad / old) tutorial and was simply to faciliate my app. I always intend to go back and rewrite this later I just needed to see some of my data in the app.
@James why are you not just doing it in C# if your app is C# anyway?
^ that is a good question
Also, you have an SQL injection vulnerability
Do what teresko said about mysql_* (don't use mysql_* functions) and use prepared statements
lol:
/* disconnect from the db */
    @mysql_close($link);
22:17
Sorry, I appreciate the comments. Just to trying to respond accordingly. The code there will never ever be used in a production environment whatsoever
@James wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers ... in case if you decide to stick with PHP for some odd reason
and at that point $link may be even not defined
I just wanted to the quickest way to pull data into my app so that I could continue building the app functionality.
@James did it work?
I mean - was it really the "quickest"?
People seem to fall back to PHP as a back-end for mobile apps as a default, it is kind of strange, but at the same time if you don't want to run the back end on Windows it does seem like a semi-sensible choice
22:18
@James you don't need to call mysql_close, use prepared statements regardless of using C# or PHP
for that purpose, yes :-s I've got the code in the app and using it to organise the UI etc
@James now rewrite it
@BenjaminGruenbaum Ok, thank you.
@zerk I do intend to, ultiamtely I want to do much more than just pull out data from my database - my intention was when I build the other functionality like ability to add and modify data in the database I would do a complete re-write.
@DaveRandom what to use instead?
@James in programming there is nothing as permanent as temporary
@zerkms Depends what your "app" is. If you are writing an Android-only app then Java is probably not a bad choice, in the interests of sticking with what you know.
22:21
He's doing C# on the front end, he should probably do C# on the backend too.
@DaveRandom java is more expensive in terms of maintenance and implementation
When I did that it was really helpful and I ended up sharing a lot of code between the front end and the backend.
PHP is not a bad choice, but it seems strange that people would choose to learn an entire language they don't know for the sake of a simple web service
@BenjaminGruenbaum if only he has any windows server
(All the DTOs, a lot of the calculations etc)
@zerkms so..?
22:22
@BenjaminGruenbaum To be compeltely honest when I started the app about 3 weeks ago I had no idea what a web service was and my inital research on how to connect a Windows Store app to a MySQl databae led me, however wrongly (!) to this solution.
At the same time though, there's a wealth of PHP developers to employ
... which are cheap
I have recently discovered the observer pattern and I am now literally triggering events/signals at every corner of my application (using a class similar to Symfony's event dispatcher). I feel clever, but am I digging a hole for myself down the road?
I'm only starting to learn C# now too, I didn't want to try and learn two languages at once. I was trying to take a short cut just to pull in data. Finish the app side and then look again at the web service
@James we are not judging you - we are merely making suggestions based on our own experience. If you're learning backend for the first time and are using C# in the front end take a look at WebMatrix and asp.net web pages.
22:24
@James It's not wrong, it just adds a lot of cognitive overhead. You have to learn a whole programming language on top of the front end and DB design.
It's similar to PHP in terms of execution model but you get to use the same language.
That's not necessarily a problem, it's just very much throwing yourself in at the deep end
There is not right and wrong in this case, just reducing the workload
Unless you choose ruby. That would be wrong. :-P
@BenjaminGruenbaum No, I get that and definitely appreciate it. I will look at WebMatrix I have not heard of it before.
I kind of would like to stick to MySQl if possible as I have some expeerience with it and SQL queries
For my work I have to pull in a lot of data from MySQl, but through Excel - not a programming language
You can use MySQL, it's not terrible it's just a worse version of PostgreSQL :P
2
C# can query excel directly, although going through MySQL is probably a good idea
Nov 17 at 17:48, by DaveRandom
♥♡❤ PostgreSQL ❤♡♥
22:27
@BenjaminGruenbaum Sorry, I probably added confusion there - the Excel work is entirely separate. My app isn't related at all.
Excel as a front end for a database is... weird. I don't get why people think that's a good idea.
VBA sadists
@DaveRandom PowerPivot
@DaveRandom as we're talking about postgresql now - that's what surprised me 2 days ago: stackoverflow.com/q/27435980/251311
PowerPivot is an enormously useful tool if your doing any heavy data work. I don't imagine anyone here would have much use for it though.
22:29
yay, just got a jetbrains student license!
@zerkms Interesting. I almost never use LIKE but interesting nonetheless
@DaveRandom yep, I skipped that chapter entirely when read manual, seems like I shouldn't have )
Yeh, I'm reading it now, apparently I never read that page
I recently built epub documentation bintray.com/zerkms/generic/postgresql-documentation-epub/view but then ended up reading online
@zerkms That is surprising.
22:33
@James Never used it, can't comment. I just hate VBA with the fire of a hundred trillion suns.
@DaveRandom Ha, I don't use that either - never really dipped my toes into it at all to be honest.
Oh wait so this thing has a direct MySQL connector without scripting it?
That's... also weird, but kinda cool I guess
22:44
curious how a world where functional languages won and imperative were exotic would look like
@zerkms Probably it would looks like Java written in Haskell ^^
Like: do all the things.
but less people would be involved in development
anyone here uses coffeescript by the way?
and typescript?
@zerkms used, too stabby for me
I liked the idea of typescript until I tried it
@DaveRandom what was the most disappointment?
Lack of protected members, probably
Which is obviously just a limitation of the fact that you are really just writing JS, but if you can't do that then you may as well just write JS
You can do everything else with prototypes and I don't find it that hard to work with
tbh it was a long time ago that I tried it and I've not written a lot of JS for a while so my views might change if I tried it again
23:12
"Which is obviously just a limitation of the fact that you are really just writing JS" --- I don't think so actually. Every higher level language is based on some low level one which may not support everything
the good example here is c# and IL. The latter does not have everything built in that c# supports
Actually that is true, you can achieve "protected" scoping in JS but you sacrifice a lot in terms of sanity in the resulting code
if it's done behind scenes by a higher level language - why to care :-)
oh!
another good example for that is clojure script and js
which introduces a lot of concepts JS does not support at all
@zerkms Debugging. If there was some kind of external debugger with typescript "symbols" (a la C) it might be viable but there isn't so it isn't
yep, that is what actually stops me from even trying either type- or coffeescript
. or you could just learn JavaScript
23:17
Coffescript is just plain awful, IMO. Somehow they managed to take JS and make it worse. While that is an impressive achievement, it's not what I look for in a tool like that...
.. I know .. a radical proposal
@tereško from the other hand - you don't write in binary directly or not even in assembly
you use higher level php
now, that was just a retarded statement
not sure if it's was purposely offensive or not
the point was - using higher level language is not generally bad
@tereško In fairness, JS is a horrible language. I do understand the desire to write in something nicer.
23:20
java is a language over jvm bytecode
c# is transformed into il
Or in other words, I do (mostly) know JS, that's why I'm even prepared to look at these things in the first place.
@zerkms the ones discussed are not "higher level" languages
they are
typescript is a higher level language
instead they are "language skins"
that targets into js
I don't know such a term
is clojurescript a "real" higher level language from your perspective or another "skin"?
(defn jsonp [uri]
  (let [out (chan)
        req (Jsonp. (Uri. uri))]
    (.send req nil (fn [res] (put! out res)))
    out))
that's an example that targets js when compiled
is it a "skin" or a "real" higher level language?
23:23
you seem to be confusing "language" and "compiler"
do I?
I was talking about languages
so - is cljs a skin?
clojurescript is not a language
it is a compiler
lol , I don't even want to know
Not going to say anything about that. Just throwing it out there.
23:24
@tereško it's a dialect
it's not only a compiler
so cljs (which is a separate dialect of clojure) using cljs compiler targets js. typescript language using its compiler targets js
what's the difference?
> November 12th, 2014. Version 1.3 of TypeScript is available and includes the protected keyword.
If that's Microsoft's idea of giving me a 30th birthday present... I'm not impressed. Where's my fucking cmd.exe with sane features like, oh, I don't know, being able to use a mouse in the same way as any other application made in the last 20 years??
@DaveRandom that's break edit.com and other mouse-driven command-line apps
do i get that right: you want to be able to mark text on the command line with your mouse?
@DaveRandom lol - my birth date is TOO FREQUENTLY used with examples of code to reset http cache (headers)
what do you dream of at night...
23:35
1
Q: What's special in July 26th and why is it used in examples for Expires header so often?

zerkmsI've noticed that July 26th (my birthday) is used really often in various PHP examples related to preventing http caching using Expires header, like: http://stackoverflow.com/questions/12398714/cache-issue-with-private-networking-stream http://stackoverflow.com/questions/2833305/how-to-expire-p...

chickens
lots of chickens
Often they are quite agressive
23:59
@bwoebi Some feedback: i) you could do with an example of how to use the library :-P Even if it gets out of date rapidly, having some example in there would be good, as I have no idea what is meant to be in 'connStr' ii) utf8mb4 or gtfo iii) ConnectionConfig could really do with a named constructor - if I'm meant to be touching it iv) We probably have a philosophical difference on abbreviating variables.....but 'connStr', 'Stmt' => ewwww.
00:00 - 20:0020:00 - 00:00

« first day (1519 days earlier)      last day (3655 days later) »