« first day (1563 days earlier)      last day (3382 days later) » 

12:04 PM
when is it worth to use bit shifting in php? are there any aproximate benchmarks on *2 vs << 1 and /2 vs >>1
 
Use what makes sense to you. Let the compiler optimize it if it wants to.
 
There are actual reasons to use bitwise operators :-)
 
Yes, and if one of those reasons apply, then it'll make sense to use it.
 
An example I had last year was that I was following the spec for FLV file formats, and I think (if I remember correctly) the first bytes has flags for whether or not it's an FLV file, has audio, video etc in certain bits within that byte.
I learn through actual example - so up until that point I didn't understand bitwise stuff, but after that it made sense
 
And you multiplication would't be relevant there.
 
12:12 PM
@Jimbo that is bitmasks, I'm asking if it's worth and when it's worth to multiply and divide using bit shifting
I use bitmasks for storing stuff in the db pretty often
 
Really? Great for readability then.....
 
Readability doesn't suffer much, I think understanding bitmasks is a must for any developer
 
great a company I need is not answering my email :(
 
woo
@SergeyTelshevsky Don't forget that it hard to create indices for bitmasked data id DB
 
@SergeyTelshevsky I'm not sure, I never needed them until I did, once, in 3 years working with older technologies, and I just went and learned it then. I wouldn't say it's a must for any dev
Maybe for any dev working within your company or similar companies with similar technologies, but not just anyone
 
12:16 PM
@woo what do you mean?
@Jimbo ok, not a must, but it's a 5 min read and 5min practice that is worth it, it has really nice use cases
 
@SergeyTelshevsky That's more like it, you can't just go around throwing the word must out there to devs, you'll scare them :-P
 
@Jimbo the guys I happen to work with sometimes don't understand other words :)
 
woo
@SergeyTelshevsky Bitmasks are not SARGABLE, so it's impossible to make correct index for this columns on some DB and hard on others.
 
Had to google that one...
In relational databases, a condition (or predicate) in a query is said to be sargable if the DBMS engine can take advantage of an index to speed up the execution of the query. The term is derived from a contraction of Search ARGument ABLE. A query failing to be sargable is known as non-sargable query and has an effect on query time, so one of the steps in query optimization is to convert them to be sargable. The typical situation that will make a SQL query non-sargable is to include in the WHERE clause a function operating on a column value. The WHERE clause is not the only clause where sargability...
 
@Jimbo me too :)
@woo I definitely never had any need to index them though
but I see your point
 
12:21 PM
@PeeHaa: Any plans for friday or the weekend already?
 
@woo here's a question about that too
4
Q: SELECT users from MySQL database by privileges bitmask?

Wh1T3h4Ck5I have users table and want to SELECT some rows by bitmask criteria. I'll try to explain my problem with small example. Structure of table users user_id int [primary key, auto_increment] user_email varchar(200) user_privileges int Note: It has more fiel...

 
Oh my god
@ircmaxell was downvoted for saying you can only validate email addresses by sending an email to them
ahahahaha
 
@AndreaFaulds I hate you.
 
@SecondRikudo What did I ever do to you?
 
in HTML / CSS / WebDesign, Dec 1 '14 at 13:32, by Second Rikudo
@Sippy When people write "hahaha" and start and end with the same letter (ahaha or hahah) it irks me on the same level as <div>foo</span>
3
 
12:25 PM
@SecondRikudo heh
 
woo
@SergeyTelshevsky Sure it's possible, but if your have millions of rows here, it became pretty heavy query for DB without indices
 
Anyone here working with JIRA/Stash?
 
@woo yes, it's possible to migrate them to separate coulmns with no problems too, as well as the PHP side of it
 
@AndreaFaulds I don't know the context, but validation and verification are distinct things. Though if you need to do the latter anyway you can (and should) skip the former.
 
@PaulCrovella The point is email addresses can only be validated through verification
FILTER_VALIDATE_EMAIL Considered Harmful
 
12:30 PM
@AndreaFaulds Really? I always believed it was useful to check that at least an attempt at an e-mail was... attempted..
 
@Jimbo Yes, really, because it accepts all sorts of invalid emails and rejects all sorts of valid ones
You know what I recommend? /.*[^\s]@[^\s].*/
 
I didn't know it rejected valid ones :o
 
@Jimbo Oh sure, all sorts.
 
Like, abstract, out there valid ones... or common?
 
@AndreaFaulds I tend to just go with \S+@\S+\.\S+ for the most basic of validations.
 
12:32 PM
Ones that are unlikely to be common precisely because FILTER_VALIDATE_EMAIL rejects them.
 
For client-side validation that is
 
@SecondRikudo Someone will make zuck@facebook and break it :p
 
For server-side, sending an email is best.
@AndreaFaulds You can't to/email from a TLD AFAIK
 
@SecondRikudo I don't see why not.
 
@AndreaFaulds It depends on if you mean syntactically valid, some subset of syntactically valid (or similar rule[s]), or if you need to determine that the box actually exists (in which case you're back into verification)
 
12:33 PM
A TLD is just like any other domain
 
@AndreaFaulds Why would it be harmful?
 
@PaulCrovella Virtually anything is syntactically valid
@PeeHaa It doesn't conform to standards, for starters
and it shits on any attempt to support IDNs in email
 
@AndreaFaulds Neither do mailservers
 
Which is a really important thing
 
@AndreaFaulds many things are yes, and if that's what satisfies your constraints then there's no problem with it
 
12:34 PM
@PeeHaa True
 
Also note that PHPs regex is the best out there
@hakre Not planned yet
 
what the fuck
FILTER_VALIDATE_EMAIL rejects fully-qualified domain names (!!!!!!)
ffffffffs
@PeeHaa lolno
It also rejects domain names without any periods in them
Which is wrong.
It rejects IDNs
It's just awful
 
Claiming that verification is the only answer to any and all situations where you need to check an email address for validity is just not true. Just because FILTER_VALIDATE_EMAIL is busted and most PHP developers only ever see an email address when a user is signing up for their site doesn't mean that's the only tool or the only case for validation.
 
@PaulCrovella No, it's true
It's the only way that actually works
 
@PaulCrovella What is the point of you providing your email (or an email) when you register to a site?
Why do I, a website owner, ask you, the user, for your email address of all things?
 
12:43 PM
@PaulCrovella What's the point of storing an email address if not to be able to contact someone?
If you can't contact them, why do you need their email address?
Authentication (Persona, OpenID, et al.)? Then your authentication provider has validated it, surely.
 
:21172268 Account verification...
'Possible downtime' newsletters?
Password Resets?
 
@AndreaFaulds lol yes
 
@MikeM. All of these require a working email
 
Show me a better one and enlighten me :)
 
@PeeHaa Wait, is it an actual regex?
D:
 
12:44 PM
ofc :)
 
/me holds gun to head
 
Wait let it, I didn't read the full message.
Excuse me - my bad.
 
The entire point of authentication is claiming to be someone, and then proving it by providing a secret only you and the server knows
The email part is you claiming to be you, and the password is the secret.
The reasons I'll want your email are the 3 basic ones:
 
Guys, is it necessary to upload a .sql file on GitHub for a project that requires a database?
 
12:46 PM
@HassanAlthaf If you have an installer why would you?
 
1. I have an ability to contact you (and all other users) at a time of need
2. You have a failsafe in case you forget your password
3. (Sadly more common than one would think), I want to sell your email along with a million more to the highest bidders, so that they can send you ads
 
@MikeM. I haven't created an installer. Do you recommend me to create one?
 
All three of those require you to have access and control over the mailbox you claim to have.
 
@SecondRikudo All of these purposes require knowing the email is valid.
Hah, you ninja'd me
Anyway, afk
 
The best (and only, really) way to verify that the user has access to the address he claims to have, is to send him a secret there (the mighty token), and have him tell you that secret later (clicking the link, or pasting the token)
If I don't aim to sell your email address to spammers, your phone number, for instance, is enough.
If I have the ability to send you SMSs, I can contact you and have you reset your password via phone only
That's how Facebook and Google do it.
 
12:49 PM
@AndreaFaulds Are you a female? First female I've seen on stackoverflow.
 
@HassanAlthaf There are no girls on the internet.
 
if you want to release it, I would strongly suggest you to make one.
If it's just for help or so, just add a SQL file...

but mainly I suggest an installer, it's also eassier for you :)
 
@SecondRikudo Naa. I know many girls who use internet, but not a 'programmer girl'
 
@MikeM. This is getting very inappropriate very fast. I suggest you stop it right there.
 
@SecondRikudo How come.
She started swearing, I started swearing. She kept being annoying so I did aswell :)
 
12:53 PM
@MikeM. Let me ask you. If I flag that message up there right now, do you think you'll get banned?
 
How so?
Just being serieus here.
Why would I get banned for something that really happened to me over skype?
 
@MikeM. Because calling people names, whether they are here or not is not appropriate for this chat.
 
Bruh, Mike.
 
@SecondRikudo I was talking about the way she acted.
 
You got to keep away from insulting.
 
12:54 PM
And it doesn't matter how true it is.
 
Try to be professional man, don't even try using slang. Be clean.
 
interesting, what would happen if one would answer like that in an interview
 
The interviewer would faint.
 
@MikeM. You wouldn't like it if I called you an "idiot" because I think that "you ask dumb questions", right? It doesn't matter whether it's true or not, it's inappropriate.
 
12:56 PM
@AndreaFaulds Take email addresses that eventually may be used (such as those of authors) submitted as part of content that's to be published at a later date. Add a business rule that they have to be structurally sound so any eventual notification of publication has at least a chance at arrival (among other reasons), and a processing pipeline that often receives many many iterations over resubmissions (where all business rules are rerun in completion).
 
@HassanAlthaf similar hassan, while you may think you're chatting all friendly like, drawing attention to someone's gender on SO is not super awesome.
 
you seriously think sending out verification emails are the way to go there?
 
@MikeM. Your personal opinion, we can't deduct anything because we haven't met the person, and I'm sure bitch is not formal characterization of person.
 
@Danack Oh, thank you for pointing out. I'll avoid that next time.
 
cool.
 
12:57 PM
@PaulCrovella If you care that the people who register with you have real email addresses, which you intend to use, yes, verifying their registration is desirable.
 
Hey guys, check out my project. I pushed the third update yesterday. If you see any flaws/optimisable areas, please point out. Thanks! github.com/HassanAlthaf/AccountingSystem
 
@MikeM. I'm not judging you or anything just confirming what @SecondRikudo said :-)
 
Hi all!
Need some help with a query... I don't understand why, I'm making a ajax call, to get data from my db with PDO, looks like this :
    $query = $db->prepare("SELECT * FROM myTable");

myTable contains 7 fields : id,name,secondname,adress,type,image,data
I fetch my results this way and return it as json object to my javascript :
    if($query->execute()){
        foreach($query as $data){
            $results[] = $data;
        }
        echo json_encode($results);
    }

When I receive my object in Javascript, i get this (JSON_stringify) :
 
@DejanMarjanovic True, let's say "I didn't like her because she was swearing at everyone she came across, annoy everyone with spamming, disagree on everything even through hard facts are given AND that she always blames everyone and everything even through it's something nice made"
 
@SecondRikudo You miss my point. I'm saying site registration is far from the only case where you would care about email address validity, and there are plenty of situations where verification isn't remotely appropriate.
 
12:59 PM
@MikeM. Yeah, totally legit, you can say you think she's a bad person, but bitch is a swear word (when used in human context), FFS :-P
 
No one liked her but she always did that not on the one website... so they couldn't ban her to be fair to everyone including her.
 
@Julo0sS "Why do I receive object attributes twice? once numbered, and once with field names...?" Because that is what you told your code to do.
 
@Danack where did I ?
 
@PaulCrovella If you are given a list of email addresses which you know to be valid, there's no need to validate them.
 
@DejanMarjanovic Sorry for that, I will watch my strong language next time.
 
1:00 PM
@Julo0sS I don't know exactly - if that's what your code is doing, and you wrote it, then that is what you told it to do.
 
I don't mind, no need to say sorry to anyone, just saying because elders, @MikeM..
 
@DejanMarjanovic I have a pet bitch, I love my pet bitch.
 
@SecondRikudo Do you keep her in house only or you occasionally let her out?
 
Room 11: Where programming related and psychological advice is given
 
@DejanMarjanovic She's actually out most of the time
 
1:01 PM
should totally be the discription of this room.
 
@Danack my record, as $data, returns the database record with "fieldname":"fielddata"... my database only has named fields, not numbered... why is it doubled now?
 
We let her sleep in the house since it's cold at nights
 
@ThomasDavidPlat I resolve things with violence, my brain hurts otherwise.
 
user50049
Where do I get free psychological advice? I'm in need.
 
@Julo0sS I don't know - why don't you step through the code with a debugger.
 
1:01 PM
@TimPost We know you are in need...
:P
 
@TimPost Monkeys do monkey things.
 
A miracle has happened. I have written my first PHPunit test and it passed green. Now if I did it correctly is another thing, but shit works! =oD
 
@Julo0sS The default behavior with PDO is to return an array with both numeric indices and named parameters
 
@TimPost we found your question this morning. We know.
 
@SecondRikudo I don't know them to be valid. The file providers (publisher or typesetter in the actual-world example I gave above) fuck things up all the time. Running our own validation to catch what problems we could prior to publication was a requirement and those very same publishers got pissed when things like the business rules they paid us to enforce got dropped on the floor.
 
1:02 PM
@Julo0sS your code does exactly what you ask it to do. Your code runs perfectly always, it is just that you are not instructing it properly to get the correct result.
 
@SecondRikudo so need to put PDO::fetch_assoc somewhere in my query then i guess...
 
@TimPost what you do is - find a police officer, slap them with a rotten fish, and then you get free (and obligatory) psychological evaluations!1!
 
@Julo0sS PDO::FETCH_ASSOC yes
 
user50049
@FlorianMargaine You just don't know what PHPUnit can do to a project. You just don't know...
 
@TimPost For you or your sentient program?
 
1:03 PM
@SecondRikudo ok, i'll have a look there then... thanx guys
 
@crypticツ $this->assertSame(true, true);, never fails :-P
 
@TimPost Bad or Good things?
 
user50049
@Danack I'll put men's clothes back on and try that, thanks!
 
Oh no - a lack of clothes is best.
 
@TimPost well, since it uses uopz.... we have an idea.
 
1:04 PM
@HassanAlthaf are your mappers even mapping, bro?
 
@TimPost if you don't wanna be violent, you can get free mental advice easily. All you have to do is, dance in the middle of the road. If you manage to survive then you will get free psychological advice.
 
@HassanAlthaf Road Blocked roads counts???
 
@ThomasDavidPlat Huh? Did I do something wrong? Please point out. I've done this project according to the feedback from CodeReview.
@MikeM. nah, some what like a highway?
 
@HassanAlthaf Maybe something busier*? streets of new york maybe?
 
1:06 PM
Yeah. @MikeM.
 
@HassanAlthaf why?
		if(strlen($password) > 255)
			$this->errors[] = "Your password cannot be more than 255 characters long.";
 
Idk sir.
My password max character length in my database is 255.
 
Not especially wrong, no. But imo the class has too many responsibilities. It does Validation, Session Management and it does some Repository stuff
 
@HassanAlthaf Exactly what I was afraid of.
 
But, I know that when I hash it,
Its length reduces drastically
 
user50049
1:07 PM
Right, the hash should only be as long as whatever algorithm you're using
 
user50049
Regardless of the input length
 
@HassanAlthaf If you hash it, and the result always has a set length, why do you care how many characters does the password have?
 
@TimPost Algorithms change, what then?
 
@DejanMarjanovic Doesn't change the fact that you shouldn't give a rat's ass about how long the user's password gets.
 
@SecondRikudo I get your point. I will put that thing right-away in my task list.
 
1:09 PM
The only semi-legit argument I heard was that someone can DDoS you with 1MB passwords you'll be forced to process
 
user50049
@DejanMarjanovic They do change, but any change that altered the length of the stored hash would be pretty well anticipated. And also dish soap could change in the future, but I'm not going to agonize over the water pressure at my kitchen sink just yet :)
 
Yeah, another thing.
 
But that's easily solved at the HTTP server level (413: Request Body too Large)
 
Oh, how do I do that?
 
You configure Apache/Nginx. Has nothing to do with PHP
 
1:10 PM
C'mon be practical, a human would hardly enter a password 50 characters long.
 
@HassanAlthaf Most of my passwords are 100 characters in length
 
working fine changing this : foreach($query->fetchAll(PDO::FETCH_ASSOC) as $data)
Am I right?
 
Randomly generated
 
user50049
@HassanAlthaf Password lockers are pretty popular these days, and support very long passwords
 
@Julo0sS Yes, probably.
 
1:11 PM
@SecondRikudo holy.. tell me that you are kidding..
 
@SecondRikudo just meaning "nothing looking bad in this for you"? :P
 
@HassanAlthaf BmV^HFIjewxZv9dxw%Xd*cod9uoi9E@78iz^RltaoOR5S&VIpQv3Xo7TCXD7ZgNaswwrWsGHgTqaKRw‌​%W7JQ8mx0R87U#b2c&01Y
For example, one I generated just now
 
how do you even remember
 
I don't, that's the point.
 
lol, then how do you re-login next time?
 
1:11 PM
@SecondRikudo Had no doubts there at all.
 
I keep them encrypted on my hard drive, and I know the passphrase to the key.
When I need a password, I enter the passphrase, and then copy the password
 
LastPass (a browser extension) handles all that for me, so I don't do it manually.
 
what is the pass phrase for that?
ill try to read it lmao
I better get back coding
I got to finish this crap before 20th,
With very scarce working time.
 
1:14 PM
@PeeHaa you still have my cell number with 666 at the end?
 
Hello from the Illinois - Missouri border, or well somewhere over it
 
@ircmaxell Hello.
 
@ircmaxell What altitude are you?
 
@hakre I need to check. Will get back to you
 
moin
@SecondRikudo 30ft. Flying carpets are the way to travel.
 
1:22 PM
I'd love flying carpets
although it could be cold.
 
@ircmaxell so I assume you haven't built anything that we suggested earlier :D hello
 
Alladdin really has it easy in India...
 
can anyone tell me when "json_decode" is required in ajax php script when sending a js object with post?
 
when you need to decode json...
 
    = #text 72

    = print (-> #text (
        echo (chr text)
        print
    ))

    = loop (-> #cb (= #subloop (-> #times (
        cb times
        if times (subloop (- 1 times))
    ))))

    loop #echo 10

    print text (+ 1 text) 10
    echo (chr text) (chr (+ 1 text)) (chr 10)
    if 0 (print 45)
^^ that works now, with closure scoping :-)
 
1:33 PM
@PaulCrovella here i'm sending a js object which has vars like my_id,my_name, I send the object instance to my script, and, in php, my object is read as being an array (which is perfect to me for what i need to do with it)... when I do not use json_decode. So just wondering what's this function about? my ajax call is sending a json object isnt it?
 
@Julo0sS How are you sending the object? jQuery?
 
yep, $.ajax({
...
data : {"obj":myObjectInstance},
...
});
 
jQuery is urlencoding that, so it's not json. See stackoverflow.com/questions/5570747/jquery-posting-json
 
morning
 
1:49 PM
Hello i am looking for a decent way to list all files starting with a certain keyword, can I have a hand ? I understand glob is a way to do it but is there any other ?
 
Was that really needed?
I seen my mistake and excused for it, I got it why. So I don't think it was needed
anyways.
 
@DaveRandom Just read your message about the router. If you're really okay with it that'd be amazing thank you.
If you can sell it for the extra beer money do so though.
 
woo
Has anybody here any experience in robust BiarySearch on PHP?
 
Jul 27 '14 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
 
1:57 PM
@ircmaxell @arkitrave And if you do it to match the RFC you won't ever deny correct emails.
^^ completely misses the point
 
zend_bool foo(size_t filename_len TSRMLS_DC) {
	//MaxTextExtent is set by #define MaxTextExtent 4096
	if (filename_len >= MaxTextExtent) {
		printf("filename_len %d >= MaxTextExtent %d\n", filename_len, MaxTextExtent);
	}
}

//Output is "filename_len 11 >= MaxTextExtent 4096"
How........is that possible?
size_t is safe for comparisons for positive values I thought?
 
huh?
how is what possible?
 
woo
@Danack well, I'm looking for the correct BinarySearch implementation, because it looks too complicated to write it by myself and test all the cases
 
oh
 
@woo Ok, you should ask that as your first question, rather than asking people a general question first. Also, for google search the top 3 results look okay - what is wrong with them that they're not good enough?
 
2:02 PM
weird. Not sure what's going on there, try casting the MaxTextExtent to a size_t?
 
    size_t amagad = MaxTextExtent;
	if (filename_len >= amagad) {
		printf("filename_len %d >= amagad %d\n", filename_len, amagad);
	}
Prints: filename_len 11 >= amagad 4096
 
@ircmaxell :D
 
I think I might go get another coffee and open this in a blank project because somethng is obviously going screwy.
 
wait, %d isn't big enough for size_t
%d is 32 bit, where size_t would be 64... no?
 
@Danack TSRMLS_* isn't needed anymore fwiw
 
woo
2:09 PM
@Danack I don't want to test it with all possible cases—I can miss something or misunderstand anything, the thing is it's complicate to write robust Binary Search and I don't wish to catch wierd bugs for some days after.
 
@ircmaxell the values are 11 and 4096, printed with %x it's "filename_len b >= amagad 1000"
@FlorianMargaine Thanks.....but actually I'm compiling against 5.6
 
@woo In which case your question becomes "I want to use a BinarySearch library. Can anyone recommend one that they have used or know to be bug free?"
 
@Danack in c99 use %z, in gcc %zu
 
waits for the windows users to start complaining.
 
woo
2:18 PM
@Danack You want to say that my English is bad? Yes, it's true. I don't see any valuable differences in question of mine and yours. But thank you anyway.
 
@woo Your English is fine. But the way that you're asking questions isn't good for giving people enough information to help you.
 
New desktop wallpaper found
 
If I have a method in a class which I want to use is another class (but only that method though), is the best way to make the method static?
 
user50049
@Fabor I want something like that (except real, not wallpaper) in my office. I think I've worked hard and deserve it.
 
user50049
@crypticツ it will never happen through class inheritance?
 
2:25 PM
@crypticツ I think it would be better to just inject the object
 
@Fabor I don't remember what my wallpaper looks like...
 
@crypticツ +1 for injection. Maybe it would make sense to refactor that into it's own class and make it a dependency of both classes that use it now?
 
@TimPost heh create one. What's the worst that could happen?
@FlorianMargaine True enough. Wallpapers used to be so important way back when. Now I rarely see it too.
 
user50049
... said the person that invented Skynet
 
@ircmaxell %p may work, or %llu
 
2:26 PM
@crypticツ why not just make it a function if it could be a static method?
 
@Fabor yeah... I'm never on my desktop. 2 screens always have something. It's not like I go back to my desktop to open programs or w/e...
 
user50049
@crypticツ There are worse evils if dependencies for that particular method make breaking it out more trouble than its worth, but if you have that many things wanting to use it, probably better to stick it in its own class
 
@AndreaFaulds well, %z in C99 and %zu in gcc should always work, because that's what they are designed to do ;-)
 
@ircmaxell Sure :p
 
@ircmaxell That did reveal the problem; with %zu filename_len is 140458315481099 which is probably >= 4096. In zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &source, &source_len) is source_len meant to be an int for 5.6 and size_t for 7 ?
 
2:28 PM
yup
you write the 32 bit len to the most significant 32bits of size_t
 
small error, only off by a few trillion
 
reverts last 2 hours work.
@ircmaxell Thanks. And what's a few trillion between friends.
 
exactly
 
Well the method would only be used in two classes ever, and this is the code gist.github.com/KyraD/18673e617f727a6291e6 is it worth putting this in it's own class or would just putting the method in both classes be ok?
 
2:30 PM
don't fear copy/paste.
I follow the rule-of-three. I copy paste until I have three versions of the code. Then I refactor
 
hello friends, i have raw data which is to be inserted into the database but this data is huge so i want make this process to run on the background and after completion of this process finally print it that the process is completed in logfile so which function can help me writing daemon process in php?
 
@ircmaxell I know some people who follow the rule-of-hundred :*(
 
@santosh I wouldn't recommend PHP to manage the processes - use supervisord.org
 
I need to prepare a list of credits for all the libraries I've used in my project.
sigh
 
lolol
 
shall shall shallshall shall
 
" It is very easy to give up..." I gave up on reading it
 
@ircmaxell, New Jersey, USA
Pushing the boundaries of Programming. Developer Advocate for @google All opinions my own.
14.6k tweets, 7k followers, following 452 users
^^ woot! crossed 7k followers :-D
 
congrats =]
 
2:47 PM
"We were sure we didn't want to use PHP. Facebook is stuck on that for legacy reasons, not because it's the best choice right now." qr.ae/3O69G among a few other links. Isn't it bullshit?
 
note that none of the references they quote are actually from facebook themselves
If they wanted to move off PHP, they could have easily. Hell, it would have been a shit load easier than building their own VM and custom language
 
Is anyone any good with htaccess rules??
 
@ircmaxell Adam D'... was chief technology officer of FB.
 
Not me
 
^ apache web server
 
2:54 PM
So I think he knows about FB.
 
I know about FB
What do you wanna ask?
 
It's a social network, right?
 
Exactly. It's owned by Mark Zuckerberg I believe.
 
Oh God. No. It's a dating website.
:|
 
Stalking*
FTFY
 
2:56 PM
I need to force a website to use http not https :/
 
@user3002233 well, he may know about it, but that shows how disconnected he is from the realities of dev
they are still on it because it has advantages to them
 
What are you talking about? FB doesn't use PHP. We use Hack. :p
 
well, :-P
 
@SaraGolemon Not raw C?
:D
 
@Achrome inside it's C no matter php or Hack (stupid autocomplete)
 
2:57 PM
@JustSteveKing You can't I believe.
 
You can't break it if you can't C it
 
Inside it's all machine code, whether php, hack, or C
 
@just
 
@ircmaxell Like what advantages?
 
@HassanAlthaf I know you can as I have done it before - I just cannot remember how!
 
2:59 PM
sorry about that. @justeveking, is not htaccess redirect an option
 
@SaraGolemon I'd argue that Hack is close enough to PHP for arguments sake to be the same language (vs moving to other languages)
 
@ircmaxell You'd be right, of course. I'm being a pedant.
 
@Robi Yes redirect would be an option :)
 
@JustSteveKing A bit of googling or researching on superuser.com would help.
 

« first day (1563 days earlier)      last day (3382 days later) »