« first day (1829 days earlier)      last day (3133 days later) » 

8:00 AM
I can not ask questions :(
I think it's something easy but I can not make it work
 
@Danack Yeah, but it has to fit in with the code that handles it dynamically i.e. my example for other classes apart from Repositories :)
 
Morngin
 
8:15 AM
@PeeHaa o/, what link did you need? I just read your ping :P But I'm clueless on what you mean :P
 
nvm found it already on dumpert :)
 
8:33 AM
posted on October 19, 2015 by nlecointre

/* by nitro */

 
If we had duvet days, i'd have taken one today.
Sleeeeepy. Time for a coffee. @PeeHaa You work from home?
 
@Fabor ya
 
Fab is sitting there sniffing, I can feel myself getting sicker!
 
Today's mission: travel back in time
 
@Leigh Send him home
 
8:41 AM
Not my call :)
 
hehe 4 rc3
 
@PeeHaa I have no clue what we were talking about :P Memory of a goldfish man :D
 
@PeeHaa So you get to make good coffee -_-
 
@Fabor I'm a bit hungover so I have water :P
@Naruto maxim
 
tut tut, good thing your boss would be okay with that.
 
8:52 AM
;-0
 
No bells are ringing ^^
 
jesus @Naruto...
:P
2 days ago, by Naruto
@PeeHaa Did you see the passage from Maxim hartman on the 'televiziergala' ?
 
Aaaah yes :D The 'euro' is falling now :D
 
:)
 
Pretty funny stuff :P
 
Anonymous
@Gordon it's working for me
 
mornin
 
@rdlowrey @bwoebi @kelunik I'm having problems with zombie processes using amphp/process - specifically when the spawned process is php. It looks like (maybe) php is closing stdout before the process terminates, getting Warning: assert(): assert($status['running'] === false) failed in amphp/process/Process.php on line 73 and Z+ 0:00 [php] <defunct>. Is this a known issue at all?
 
@samayo nope, it doesnt ;)
@samayo compact expects the var names, but get_defined_constants returns an assoc array
so I have to call array_keys on it. then it will work
thanks for being my rubber duck though ;)
 
Anonymous
:)
 
9:13 AM
Guys i have to make a software documentation for my newly made CMS, any idea or example where I should start off from?
 
@Sanjeev from docblocks and phpdocumentor?
 
idk Gordon, but I gotta make a formal one
 
@Gordon Why would you even try to do that?!
 
@salathe because I want to return the parts of the version as an array
 
@Leigh Do you have a repro case?
 
9:18 AM
@Gordon But, but, why not tell sscanf() to populate the array for you?
 
@salathe via list?
 
@Gordon ...
 
@salathe lol, I didnt even know you can pass arrays like this
thanks
 
*facepalm*
 
since when does 3v4l no longer includes php4?
 
9:20 AM
got it, lol a basic user manual not a technical one
 
There's a checkbox "+ unsupported versions" which is not ticked by default.
 
that I can write by myself i guess
thanks gordon
 
@kelunik The example code, but instead of the echos, use php -f test.php, where the test file can do anything (just echo out something)
@kelunik if I add a sleep(1) before the assert, it's fine
 
@salathe ah, thanks
I am discovering lot of things today jpcache.com
 
@Gordon you should discover nginx.org/en/docs/http/… instead
 
9:30 AM
@Sjon I am collecting bytecode caches … dead and alive
 
@Gordon aha. but jpcache sounds like a userlevel ob_get_contents hack instead
 
@Leigh Works for me without, what's in your test.php? Stupid race conditions.
 
@Sjon havent checked in detail yet, but seems correct
look, i've found a php installation with turck mmcache enabled: sit.provincia.ogliastra.it/sez_db/info.php
 
9:46 AM
hi what is that site name (i forgot it very badly), in which we demo how to search in google.com for newbie users? :D
 
letmegooglethatforyou
 
haaa, thankss brothrer
 
@kelunik gist.github.com/lt/c720bf4b7996b71ff790 - A sleep before the \Amp\immediately fixing does make me think race condition, not sure why the child goes to Z+ and doesn't terminate though without it
tested on two different environments too, same result
 
Can't repro that behavior :-(
 
9:53 AM
good mornings
I'm looking for talks about PHP 7 so that I can compile a list for our next local usergroup meeting (I have Andreas about Typehints so far).
 
@Sjon lmgtfy is considered rude
 
I'm also looking for a project that scans PHP code statically and highlights parts where PHP 7 might need changes. Anyone knows about something like that? I just can't find it again but in my memory it exists... :).
 
@Gordon Is also standard in this room ;)
 
@Gordon Unfriending on Facebook is considered bullying ;-)
 
@Gordon why lmgtfy is considered rude?
 
9:57 AM
Should make lmsotfy (Let Me Stack Overflow That For You).
 
@Fabor Usual Google search with site:stackoverflow.com? Can't really recommend their search. ;-)
 
Facebook should show a list of people who had birthdays and you didn't write on their wall. Then have a "remove all" button.
 
HI! Anyone missed me (not) ? :P
 
Didn't miss you, but welcome back ;-)
 
I know mind the sarcasm [(not) at the end of the sentence ^^]
 
10:03 AM
But I miss @rdlowrey here, he wanted to work in Aerys during the weekend...
 
@Leri is back though.
 
So much PHP Love ^^
 
You just have to create awesome libraries but never release a stable version, but you need people using it. People will miss you, because they want a stable version. ;-)
 
He's busy living the Manhattan life.
 
I know. :-(
 
10:12 AM
@Sajad thnx , i increased the limit in /usr/mysql/my.cnf and it worked
 
@kelunik Bahahaha true :P
When you add address data but you're unsure if it's correct.... GOOGLE :-)
 
Morning @folks
 
Sup & morning :-)
 
&Scaron; problem =/.
 
user3119231
anyone knows why this simply does not update in db?
 
user3119231
10:18 AM
function dbSet($id, $table, $row, $value){
	$db = new PDO("mysql:host=".$dbd[0]."; dbname=".$dbd[1]."; charset=utf8", $dbd[2], $dbd[3]);
	$query = $db->prepare("UPDATE $table SET ? = ? WHERE id = ?");
    $query->execute(array($row, $value, $id));
	$db = null;
}

				dbSet($rows["id"], "account", "last_login", date("Y-m-d H:i:s"));
				dbSet($rows["id"], "account", "last_ip", $ip);
 
htmlspecialchars_decode('test &lt;b&gt; topic &lt;/b&gt; &scaron;ēī&amp;')
 
@Maurize Where does $dbd come from?
It's not defined with global and isn't passed into the function.
 
user3119231
@MadaraUchiha comes from an array -> is tested, connection should work. even if I globalize the array the function does not work
 
user3119231
$dbd = ["localhost", "test", "root", ""];
 
@Maurize Well then, in that case, it's because you can't prepare column names.
You can only parameterize values.
 
user3119231
10:22 AM
@MadaraUchiha ups, that was the issue. Thank you, mate.
 
Damn, php MD is so strict >>;
 
@BhawinParkeria you are welcome, glad to help.
 
I can't tell whether these sorts of things are healthy to use or detrimental
 
hey @sajad , can i ask you a dumb question about interface in programming language
 
@BhawinParkeria You can ask the room generally and if anyone wants to answer they will.
 
10:30 AM
ok
 
Try not to ask specific users, everyone here can help
 
you can ask, but no just from me .. just ask ...
 
can alyone please tell em why to use and interface in a programming language
 
@MadaraUchiha yes I meant was exactly this
 
i mean we can directly define a function in a class
 
10:31 AM
@BhawinParkeria An interface is used for abstraction
 
why to declare it in an interface and then define it in a class
 
@BhawinParkeria For example, let's say you have a logging system
 
> Else is never necessary and you can simplify the code work without else
Okay, this is getting frustrating.
 
@Sean I very rarely use ifs at all.
@BhawinParkeria You have this function:
public function doSomething(Logger $logger) {
  // Do something here
  $logger->log('info', 'Did something!');
}
Logger is the following interface:
interface Logger {
  public function log(string $severity, string $message);
}
 
o/
 
10:35 AM
\o
 
What was again the way to store a unique id in a db, it's not allowed to have duplicates. It should be a generated field for a user subscription, with a code .
 
Depends.
Purely unique or something like an auto incrementing number?
Is it the primary key for the table?
48
Q: MySQL - Make a Field Unique

LotharI have an already existing table with a field that should be unique but is not. I only know this because an entry was made into the table that had the same value as another, already existing, entry and this caused problems. How do I make this field only accept unique values?

 
@MadaraUchiha can u please tell em what this function will do , u have passed an object of interface in function parameter and then called a function which is just declared not defined
 
Anonymous
@BhawinParkeria it does what it does. There is nothing more definition of interfaces than what you know
 
Anonymous
They are just simple rule enforcing classes
 
10:47 AM
@samayo can u give me a real life example where use of it is significant
 
Anonymous
@BhawinParkeria don't overthink it. The name may give you a feeling of some super advanced concept, but the use is very simple.
 
Anonymous
It just forces your other classes to behave in the way they are intended
 
Anonymous
@Sajad do you want to work on something?
 
Anonymous
@Orangepill How do you pass a database resource into a repository class, if you are using a raw PDO to fetch the data
 
What's the alternative to using a static helper class? Using a singleton pattern?
Since PHPMD seems to despise static calls
 
10:59 AM
Share the object with a DIC like Auryn?
 
Anonymous
helper class != singleton pattern
 
Mhm
Right now I have an abstract class which contains a bunch of statics to manipulate given timestamps in different ways. How would I go about translating that into something that's more.. acceptable?
 
@samayo on what thing?
 
Anonymous
@Sajad group project on github
 
Anonymous
it can help you how to use github, composer, git ..
 
11:08 AM
@Sean what are you using the static helpers for?
 
@Sajad because lmgtfy is the equivalent of saying: "you are too stupid to google that". We block lmgtfy links on the main site. See meta.stackexchange.com/questions/109713/is-lmgtfy-frowned-upon and meta.stackexchange.com/questions/15650/… and meta.stackoverflow.com/questions/299281/… and meta.askubuntu.com/questions/1075/…
 
@samayo actually I like that, but as you know, I don't know english very well, I can not communicate with other members of the team
 
@tereško >Right now I have an abstract class which contains a bunch of statics to manipulate given timestamps in different ways. How would I go about translating that into something that's more.. acceptable?
 
@Gordon ah I see ...
 
@Gordon In all fairness people are too stupid to google
 
11:10 AM
@PeeHaa of course they are, but since the community agreed to "be nice", we dont tell them like that
 
@Sean so, you are basically using a class to act as a namespace. Right?
 
@tereško Oh derp.
@tereško That would also work.
 
@Gordon s/community/SO team. I voted to be the worst :P
 
Anonymous
So, the whole sensitivity issue has found its way from the media into stackoverflow as well. \o/
 
11:12 AM
@PeeHaa nope, we just wrote it down ;)
 
Anonymous
@NullPoiиteя google.ch/…
 
:P
 
Anonymous
google is fun sometimes
 
google is your friend ;)
 
11:15 AM
I guess it makes sense to convert from Package\Helper::method to Package\Helper\function
 
@Gordon I disagree that it says they're too stupid, it says they're rude for not having bothered to google it before asking others to spend their time and effort to help.
 
@Sean - It needs to be a unique field ( called ) code with 5 characters or something, but it's not allowed to be already in the database, there the 'ID' is unique I can maybe generate some based on that in a way?
 
page not found ...
 
@Sajad deleted
how could i crypt all html and jqyery file of a website

Dinamalar now offers a number of free RSS feeds to help keep you up to date with the latest news and events from the world's leading Tamil website. You can choose a feed of all Dinamalar's news, or just news relating to the Specific category you support.
^ question
 
11:27 AM
@NullPoiиteя ah tnx
 
the interesting part was that tie with that mustache
 
@PaulCrovella feel free to offer that different view on the various meta links I've provided
 
why? responding to a 4-year-old etiquette question isn't going to be useful in any way
 
@PaulCrovella because telling it to me will not change the policy. If you disagree with lmgtfy being banned, you have to take it to the community.
 
what difference is between "will" and "would" ? I would go with js. and I will go with js
 
11:33 AM
@Sajad definite versus uncertainty, both future tense
 
8
Q: When should I use "Would", "Would have", "Will", and "Will have"?

Anderson SilvaI hope someone, once and for all, can clarify (with examples) the difference in usage of will vs. would vs. would have vs. will have.

 
@Gordon I didn't expect it to change policy. I saw a conversation in a chat room and thought I'd join in. My bad.
 
@Gordon or that, which is far better of an answer :p
 
@Amelia, @Gordon thanks
@Gordon if someboyd have a account in english.stackexchange.com, please give a upvote to this question form my side (from me).
 
Anonymous
@Sajad where is your question?
 
11:38 AM
4 mins ago, by Gordon
8
Q: When should I use "Would", "Would have", "Will", and "Will have"?

Anderson SilvaI hope someone, once and for all, can clarify (with examples) the difference in usage of will vs. would vs. would have vs. will have.

 
@PaulCrovella fair enough
 
Anonymous
@Sajad you can join and do that if you want.
 
@samayo if I join right now, I will have 1 rep, and I'm not able to give a vote.
 
@Sajad pretty sure you'll get a 100 rep bonus because of your activity on SO
 
11:40 AM
@Sajad what @PaulCrovella says
 
Anonymous
that's what I thought.
 
oh really?! very good!
 
@Gordon I thought you were joking. Did you even read the context in which I posted that lmgtfy link? #wtf
 
@Sjon no, it's an automatic reflex to complain about lmgtfy
 
Been a while since I answered a question, a long while.
Since I lost my 404 rep status it's been tough times.
 
Anonymous
11:47 AM
@Gordon any idea on how a repository class should interact with database provider object?
 
I love Joel Spolsky (of course after Steve jobs), He is a dreamer man ..
 
@Sajad why would you love steve jobs? he was an autocratic despot afaik
 
"Authoritarian" is rare and laudable trait
Leaving the schools is what Steve Jobs did. and proved he can ...!
 
@Sajad Steve jobs because he gave utterly expensive computer
 
Image not found
 
11:51 AM
> Authoritarian personality is a state of mind or attitude characterized by belief in absolute obedience or submission to one's own authority, as well as the administration of that belief through the oppression of one's subordinates.
 
@Sajad He dropped out of a private college, not public high school.
 
@Gordon I don't know what should I say.
 
Repent for your sins as a Jobs lover!
Or just read up on your idols before idolizing them :P
 
Steve Jobs had a vision, and he didn't let anyone else dictate that vision
He's admirable for that.
But his contribution to society amounts to giant, high suicide rate factories in China, and overpriced products that look and feel decent+.
 
@Fabor i really love jobs... its really hard to survive without job or business :D
 
11:54 AM
Control freak and a micromanager.
 
@NullPoiиteя :P
 
Anonymous
I love idolize miley cyrus because she appears often in the media, which must be due to a good thing.
 
@Sajad imgur.com seems to be dying
 
@samayo your comment almost got me ebola
 
11:56 AM
they have been experiencing issues for last 4h or so
 
imgur was created for reddit.
 
I read a book from him, It changed my life. Its book was full of motivation and tirelessly. also he has a sentence that I love it: Being the richest man in the cemetery doesn't matter to me ... Going to bed at night saying we've done something wonderful .. that is what matters to me
@tereško ah
@MadaraUchiha like
 
@Sajad iPhone !== 'Something Wonderful'
 
what is your opinion about Ipad ?
 
11:58 AM
or ever "MAC" ?!
 
Anonymous
> Going to bed at night rich for overpricing a phone .. that is what matters to me
 
@Sajad Not worth its price.
None of them.
 
Also a good quote doesn't make a good man.
 
> ~ Abraham Lincoln, 105 BC
 
@MadaraUchiha I'm not talking about the price, yes, its price is more that its value. but I think it is the best tablet ever
 
11:59 AM
@Sajad I look at things relative to their price
If I can get 90% of the features I want for X, and 100% of the features I want for 1000X, I'd probably go for 90%
 
really I don't know why people in here are hate of Steve, in my country (and my friend), all people love him (more that what you think)
 
@Sajad Personally, I don't hate him
I hate the "cult" that was formed around him
"Media Jesus", that term is painfully accurate
 
:)
 
And he hadn't done that much good in the world.
 
Unlike Bill Gates, who does a lot of good.
 
12:00 PM
@Sajad here this adoration is restricted only to project managers and other mid-level management people .. they love all things Apple
 
btw apple always comes with new technology in market which is really nice and i like it. ie finger scanner for mobile , force touch
 
Also, he died from an extremely treatable form of cancer, he could have easily saved his life but he chose to be ignorant about it.
 
@Fabor Bill gates is a full-copy of steve jobs
 
@NullPoiиteя Don't forget the iPencil
 
iDontCare
 
12:01 PM
I don't adore people who have their head so high up their asses that they forget what modern medicine did to the world.
 
@Fabor that too...
 
Anonymous
you gotta give it to him though, who would've thought prefixing i for every gadget you make would be a great marketing strategy.
 
@samayo iDidn't.
 
@tereško but you get same thing from other companies at cheaper price after couple of months
 
Anonymous
I need to go and repent for my sins now.
 
12:02 PM
@NullPoiиteя actually, when it comes to Apple hardware, you usually can get the same stuff year earlier for cheaper
 
I wonder if his grave stone is white.
 
@NullPoiиteя What's force touch?
 
Anonymous
@Fabor and you will have swipe it to read
 
@PeeHaa its kind of touch for 1-2 second and further menu will popped up
its kind of nice thing
 
@tereško I dunno, I feel like their desktop OS is pretty decent, it's has good ux, it's unix-based yet it doesn't have all the problems linux OSs have (shitty user interface in kde/gnome, lots of bugs and lags as well, I haven't checked xfce though, but that's again because I couldn't even install it because of problems with drivers which is again a turd thrown in linux's direction).
 
12:05 PM
@nikita2206 ubuntu has good ux too
 
One thing I hate about macs though is their keyboards, every time I have to use someone's mac it's always hell to figure out which keys where and why the fuck F5 doesn't refresh the fucking page
 
If we're thinking about it really. iOs worked well for simplicity and non tech-savvy.
 
@NullPoiиteя well I just don't agree here, they are trying to create foolproof interface for people that actually know how to use computers. Apple kinda succeeds in this unlike Ubuntu
 
@Gordon I wonder if there's a way to go to a Halloween party dressed as PHP4
6
 
Anonymous
12:07 PM
> Build Date Jul 14 2003 16:06:26
 
@Fabor print this on a shirt
 
:P
 
> SunOS kepler 5.8
 
There is a user that have 345k rep (and he has not asked even one question and he just answered), the point is when I sort his answers by Vote, the biggest answer vote is just 152 vote.
and it shows he wrote a lot of answers and really when I ask a question in SO, I'm waiting to hi answer my question, because his answer is really perfect. I'm sure he has tried more than Steve Jobs, but Steve jobs is really more successful, famous, richer and ..., why?! Because Steve Jobs has three property that others have not. they are: "great ideology, perfect politics, self confidence"
Also there is a lot of people like Gordon Linoff ...
 
@PaulCrovella yepp, crazy
@samayo here's one even earlier: 62.153.106.130/phpMyAdmin/phpinfo.php
 
Anonymous
12:13 PM
@Gordon I am amazed the sites still function though.
 
Anonymous
A site that old tells me, it has no developers behind to maintain it, not even clear the logs.
 
can you suggest me a good tutorial for best practices on how to create a plugin?
 
Anonymous
I can't leave a site up with all the security features of symfony, stable version of php, cronjob to clear log files and expect it to work in 10 years.
 
@NullPoiиteя :|
 
@Gordon this website will be show very fast for me, this IP is from what country ?
 
12:15 PM
@Gordon Are you google dorking?
 
@PeeHaa I researching bytecode caches
 
Anonymous
@Sajad German
 
Anonymous
THE LINK
 
@samayo tnx
 
12:19 PM
@kelunik just a thought, do you have assertions disabled? :)
 
@salathe doesnt have a bytecode cache, but nice find :)
 
@salathe wow, they even have php3
I can't even get php3 to compile anymore
OMG OpenSSL/0.9.6
This thing is vulnerable to so many CVEs
 
what is difference between a plugin and function
 
Anonymous
plugin is a feature, function in its generic term is a programming language construct.
 
12:34 PM
@krishna The difference is that a function plays a passive role in the application's architecture whereas a plugin plays an active one.
 
fundamentally plugin & function is same but their scope brings the difference
 
Think of the relationship between a server/client architectural pattern, as an example. It is the client that makes requests to the server and the server merely fulfills those requests. Similarly, a plugin will likely be encapsulated by some interface where certain callbacks are triggered by the application in response to some client request.
They're definitely not the same.
 
plugin is a set of functions with MVC but function is just a business logic! can i understand in this way?
 
No.
 
Anonymous
mvc has nothing to do in this topic
 
12:38 PM
Because in order for something to plug in to something else it must be encapsulated. Otherwise you're playing very fast and loose with the term plugin.
 
Anonymous
a function can be a plugin, but not the other way around.
 
plugin can be a set of functions(like parent class), each function handling different set of functions like CRUD. where as function is minor part of it like child class
 
That's a rather poor way to describe it. A function by itself is by no means a plugin. A plugin involves multiple aspects of an application's architecture that mainly entail encapsulation, which could be done through an interface or through some other contract such as a service layer implementing an observer pattern.
You definitely don't want to start describing something that is intended to be a module as mere behavior ;)
 
when a function can be called a plugin?
 
This is kind of like the ambiguity some people have between a library and a framework. Purely from a software architecture perspective, a library very much plays a passive role in the software whereas a framework plays a more active one. If you embed a library in your program it is up to your program's code to call on that library's functions. Whereas a framework is typically the one calling on your code (who is the caller and who is the callee)
 
Anonymous
12:43 PM
function showTodaysWeatherPlugin(){
	// A whole lot of code
	return $weather;
}
...
<div class='sidebar'>
  <div class='weather-widget'>
     <?= showTodaysWeatherPlugin(); ?>
  </div>
</div>
...
 
Think about it
@krishna That's kind of like asking when can a finger be called a man.
 
@krishna A plugin is some piece of software you add on some other piece of software, that adds additional functionality.
A plugin is not necessarily a single function, nor vice versa.
 
A function describes behavior, which is at its root what procedures do. They provide a black box. Something that is void of state and can receive input and provide output.
That's the essence of behavior in software design.
 
In fact, plugin to function is what a table is to a computer. They might be related on some circumstances, but are otherwise completely separate things.
 
Obviously a plugin may entail behavior, but it's a far stretch to describe something as complex as a plugin merely by a single one of its attributes.
Plugins have distinguishing attributes which are commonly referred to as modules in software architecture. In that a module must provide encapsulation and constraints. Without those two things it's just misuse of a name, much in the same way many people misuse MVC to describe what is definitely not MVC.
 
12:49 PM
Are there any set of best practices to develop a plugin. Some frameworks, we need to place plugin in a folder like plugin. In some other structures, we need to copy it to MVC and language folders.
 
@krishna I think you have a grave misunderstanding about what MVC is.
 
in opencart we copy plugin (atleast i tried it that way to maek it work) into MVC folders where as in cakephp, we put it in plugins folder
 
Yea, what you're referring to is called a layer. That's how most PHP "MVC" frameworks are designed. Just stick to a common interface and be very clear about what the code should or should not do and you should be fine.
 
@krishna What do you think MVC is?
 
@MadaraUchiha They are actual mvc folders (in opencart)
 
12:51 PM
@PeeHaa Weirdly enough, I have directories called "Controller", "Model" and "View"
 
@PeeHaa See, this is why PHP sucks :D
 
Although, that's just a nice separation of concerns for me
 
@MadaraUchiha opencart is retarded
 
> Our code is so much MVC, it's more MVC than everyone else!
 
12:52 PM
@Jimbo I don't have a model directory
 
@PeeHaa I do, it contains all my domain logic
 
@PeeHaa But nearly everyone in PHP is like that
"My framework is more MVC than your framework"
It's getting ridiculous, not to mention that it's impractical to impossible to actually implement MVC in PHP under the web SAPI
 
@MadaraUchiha Good thing asp doesn't do that...
oh wait
:P
 
A layered architectural style is all about "thinking inside the box". Once you wander outside of the box .... well ... good luck to ya :)
 
@MadaraUchiha and that's because of the lack of bi-directional communication between the model and view, correct?
 
12:53 PM
@PeeHaa Never in my life have I claimed that ASP is better than PHP
And you won't hear me claim that here.
 
I never said you said :P
Just pointing out mvc term misuse
 
Much like Bill Gates did in his book "The Road Ahead"
 
@Jimbo That, and the lack of actual persistent memory between requests.
 
@MadaraUchiha Hence, imagine using an event loop and websockets. I think it's possible then ;-)
 
"The Model" is the object representation of the entire application state
 
12:54 PM
@MadaraUchiha I don't see that lately anymore btw
 
@PeeHaa Sure, because you choose to blissfully ignore CakePHP and CodeIgniter and all the other crapware PHP has to offer.
 
@MadaraUchiha and Laravel
 
@Jimbo Yeah, good luck with that.
 
am searching for a tutorial on how to create a plugin in github, could find simple guide
 
That's because I said "impractical to impossible"
Because sure, you can implement an event loop in PHP, and sure you can implement an entire web server
But that's no longer the web SAPI is it?
 
12:56 PM
Is web if talk via websockets :-)
 
@Jimbo They don't market as mvc right?
 
@Jimbo Try to imagine actually implementing it
Visualize the pain and suffering you'd have to go through, to make even the most trivial MVC application in that way.
 
@PeeHaa Bet he did at first, then copied Fabien Potencier's stance on the matter
 
@Jimbo Could be
 
@MadaraUchiha Actually, I'm right now working on merely routing web socket requests to the relevant controller like a standard request
Not exactly hard
As long as you use a queueing system ;)
 
12:58 PM
@Jimbo I wrote an MVC like system in NodeJS, and it was fairly simple
I didn't write proper layer abstraction, or proper presistence mapping
 
Welcome back to 1975
You just discovered what MVC actually is
 
@MadaraUchiha I saw sails.js exists now that does "true mvc", I need to try that. I just can't write anywhere near as clean code in JS as I can in PHP
 
Only the memory model persistence thing
@Jimbo TBF, prototypal OO can do anything that classical OO do and more
 
s/and more/and terrible :P
 
I know, I just look at the stuff I have to do in JS and urgh. I look at my lovely clean classes with a single responsibility in PHP and like eeeeeeee
 

« first day (1829 days earlier)      last day (3133 days later) »