« first day (2742 days earlier)      last day (2206 days later) » 

12:56 AM
How do you decide between mutable properties, a named constructor and a completely separate type?
In some cases clear... otherwise not.
 
i have the following 3-line function


public function handlePostback(Request $request)
{
$postback = $this->postbackService->createPostbackFromRequest($request);
$postbackEvent = new MpgPostbackEvent($postback);
$this->dispatcher->dispatch(MpgPostbackEvent::NAME, $postbackEvent);
}


Should I even bother unit testing a function like this without any control statements or try/catch blocks?
 
1:31 AM
@Naruto you poor soul
 
2:11 AM
@Allenph is it a value object? yes: it should be immutable; is it an entity? yes: it should be mutable; can it be constructed with variable parameters? yes: named constructor
 
2:30 AM
Good morning
 
3:02 AM
morning ...
@Wes I put the jit stuff to one side, I don't think there's anything in it ... if cmark made the node structure public, there would be, but there would also be improvements to be had in the vm, so it all seems a bit pointless ... I might pick it up one sunday but for now I'm just going to get on with coverage and docs as planned ... possibly if the language evolves to have real symbols, make comparisons beyond the type of nodes and what not, it could make sense to work on it again ...
 
 
4 hours later…
6:39 AM
good mornings
 
o/
 
\o
 
o/
work work work work
 
\o
 
PHP hidef – #76240
 
6:50 AM
work work work work work work work it
 
@Wes neighboring country here. much different over here ^^
 
@DaveRandom lxr :)
 
!!urban lxr
 
[ lxr ] An abrreviation for "Lacrosser". commonly mistaken for "hardcore loser".
 
Dan
Yo mah fah koos
I did the died, and then 7.2 regurgitated me.
Or resuscitated, one or the other.
 
7:10 AM
HI guys
Would you borrow your eyes a second?
Wow I don't find the mistake
I surely have a problem with the curly bracets
Because the last part, after the last and big elseif's doens't execute...
 
@JoeWatkins there's like over hundred simultaneous git processes consuming all CPU
@JoeWatkins I've restarted java and killed the git processes - it's usable again … but @DaveRandom should look into it…
 
7:28 AM
morns
 
\o
 
7:47 AM
mornin
 
morning everyone
 
I was trying to understand what CI is, I read this and I understood it is something like docker. Is my understanding correct?
 
no
 
is it about git and registering commits, righ?
 
7:55 AM
oh .. developers should sync their codes daily ..! got it
 
@LuigiLopez you should use refactoring that code, for your own good, it's hard to read, very messy, hard to understand, there are many if's - many branches - high complexity
 
@bwoebi ta
 
booklore facts and information about books, especially about authors and circumstances of publication.
 
@Shafizadeh read the entire article, not just the titles
 
@tereško actually I found a tool for that, I'm deal with this docs.ansible.com/ansible/2.5/user_guide/…
 
8:09 AM
so ... that's why you are refusing to read that article
because you found a tool
wonderful
 
reading is really hard. I have to copy/paste 5 times into google.translate on average when I'm reading such contexts
And still I don't understand that paragraph. Since google.translate is poor for professional contexts
 
@Shafizadeh You know, you can rather just post the url in google translate instead of the text.
 
tested before ... the result is meaningless
I mean "already tested"
emm .. I mean I did it in the past
 
Yeah, I got that from the first sentence :)
 
ah good :-)
 
8:27 AM
Hello humans.
 
\o
 
Anonymous
aha. So Vtiger vtiger.com just emailed my password to me. Wonderful
 
@JayIsTooCommon Give their security department a quick hint and ask them how that could be.
 
Anonymous
just have :)
 
@JayIsTooCommon shame them: plaintextoffenders.com
 
8:32 AM
There is also this great resource: plaintextoffenders.com
LOL
 
hakre <3
:)
 
@JayIsTooCommon Is it a newly generated one or really your password?
 
Anonymous
@MikeM. was a shared account - no idea
 
Anonymous
i'll try and replicate
 
@JayIsTooCommon Change your password, if it's the same again, contact them with the question how in the heck it's possible...
 
Anonymous
8:36 AM
it may be prior hash I guess, still sucks though
 
It doesn't have to mean it's being saved in plain text....
Upon registration the password is known in plain text. Not that I support sending it over mail.... You know what you've inserted right? If not, you can change your password by the "forgotten" button and get a new password e-mailed with a force password change upon logon...
So ye that's why I asked :-)
 
I'm going to do as little as possible for the rest of the day ...
 
@JoeWatkins You sir, are going to fail that.
 
Anonymous
@MikeM. Yeah thought that would be the case. Still, who the fuck emails passwords.
 
\o
 
8:38 AM
I was awake at half four this morning ... I already done a bunch, and I'm zorsted ...
o/
 
@JayIsTooCommon I guess most likely the company who does this, think it's usefull for the customer.
 
@MikeM. Yes, it is useful for customers who use IE
 
@mega6382 ...
@JayIsTooCommon So the...they crypt a hashed password? Do I see that correctly?
 
@MikeM. I mean those old low tech people like to get their password in emails. I guess the guy who authorized this, belongs to that group.
 
8:43 AM
@mega6382 I saw IE before I read the whole message, didn't read it further more :-)
 
Anonymous
@MikeM. they use the hash as the salt for the encryption, as far as I can tell
 
Anonymous
why, I don't know.
 
ye thats what I meant to be honest...
 
@JayIsTooCommon The default clause must throw an exception, this is an easy fix :)
And perhaps also for that 'MD5' case .... (OMG)
But it's so common, I mean the wording smell: generateEncryptedPassword
For what that password is not: encrypted.
 
@hakre And the most wonderful thing about md5 case, that there is not even a salt.
 
8:52 AM
@mega6382 Yeah, it not already hash-cracked and available w/ a google search, most likely a rainbow table comes to a rescue for the password recovery ^^
 
they use the hash of the password as salt for the encryption of said password.... :|
 
Anonymous
I wanna say I'm missing something here because this is popular and open source... so surely someone has told them to fuck off
 
that is really strange
everything I look at in that file is horrible ...
 
Wes
9:10 AM
@Patrick and for a reason that is part of the problem :B
 
hi guys, its my first time in 3rd place. nice to meet ya
what does happen here generally?
 
Wes
third place?
 
obviously the ass hole ...
 
Wes
@JoeWatkins shouldn't you do actual work or something :B
 
hahaha
 
9:14 AM
generally we are congregated to look at pics of @DaveRandom in mankinis ...
@Wes no, I'm doing as little as possible today ...
 
@Wes Shouldn't you not encourage him anymore :B
 
someone said mankini?
 
Wes
MANKINI
 
sometimes we also congregate irl to look at a live-action version of me in a mankini
 
Wes
@mega6382 i stopped encouraging him immediately
 
9:16 AM
@Galzor Help, chit chat, bashing code. Welcome to the PHP Room ;)
 
@JoeWatkins @bwoebi I'm not sure what's going on with lxr, at some point I will completely nuke all the indexes and rebuild them from scratch, it ran fine without me touching it for months and now suddenly it's doing weird stuff and run-away indexing, seems likely that some data is corrupted somewhere
 
can you add componere and cmark extensions to it also ...
 
that same thing (flood of git processes) has happened a few times in the last couple of weeks
@JoeWatkins fyi you can do that, just ssh to the box (your keys are already there) and cat ~/readme
 
my new key ?
 
^ check
 
9:20 AM
won't let me write /srv/sources
 
sudo
if you need to me reset your pw let me know
 
can't remember pass
yeah please do
 
it's probably mankini
 
@PaulCrovella ManK!n1L0v3
 
9:22 AM
@JoeWatkins it's now password, please change it immediately :-P
 
@DaveRandom Couldn't you send a mail? It's commonly used by companies.... :)
 
k, done, probably I'll have forgotten the password by the next time I need it :)
 
@MikeM. for this, not I cba
 
@DaveRandom Pssss, bummer.
 
The box does not accept password-based auth for ssh, so you could only usefully do something with that pw if you were already on the box
ok @JoeWatkins they are indexed and live :-D
it's ridiculous how fast the indexing is for basically everything compared to php-src :-P
 
9:30 AM
excellent...
 
@Tiffany poor soul?
 
hm
s3 is really cheap
 
9:45 AM
@Naruto But what do you think about netbeans, though?
 
(I just setup FolderSync on my phone to sync to an s3 bucket all my pics/docs... the bill estimation is at $0.01/mo, with 400MB)
 
@FlorianMargaine That cost might be of the requests only. Because I have many times stored files of 2-5 gb on there and retrieved them free of cost
 
@mega6382 ah, possibly
it did warn me that I was out of the free tier for my PUT requests
 
hi I'm trying to delete a row using prepered statement in PDO and the row is not deleted and no server error is thrown
I really don't know what I'm doing wrong
 
@Riccardo Please put your code in pastebin or something.
 
9:50 AM
k
 
Anonymous
1 message moved to Trash can
 
Anonymous
!!welcome Riccardo
 
Welcome @Riccardo, please read the Chat Guidelines
 
delete query pastebin
please any help is highly appreciated
 
Anonymous
Change it to a SELECT, see if you get any rows back
 
9:53 AM
I already have the selct part
I'm creating a CMS so I'm into CRUD
 
Anonymous
No, where you're trying to DELETE - Change it to a select and dump your results. See if you manage to find the results with the same conditions
 
if I try to SELECT INSERT INTO or UPDATE I succeed
 
@FlorianMargaine Yes the pricing for S3 is a bit complicated, but it is very cheap. Depending on which S3 you use and which region you are in it varies. But generally it is quite cheap.
 
@JayIsTooCommon I will try
 
@mega6382 yeah I was hesitating between Ireland and Frankfurt, given that I'm in France, I wanted to go with Frankfurt, but the pricing made me go with Ireland
 
9:57 AM
@JayIsTooCommon I replaced the DELETE with a SELECT and after the query I count the rows and it returns zero while I have at least one row
I don't know what I'm doing wrong
 
@FlorianMargaine Yeah, and I believe on free tier you get like 5Gb of storage and about 2000 PUT requests for free. So, that comes in handy too. :)
 
Anonymous
@Riccardo Then WHERE user_id=:usr_id AND row_id=:idRecord this condition is failing or you're selecting from the wrong table
 
@JayIsTooCommon I simulated the query on phpmyadmin and its syntax is correct and the condition succeeds
plus if I try to delete it from server everything goes fine
 
Add hrtime() to zend_try_compile_special_func() – #76241
 
Anonymous
@Riccardo Then something is wrong with your query. Try dumping $user_id and $row_id before you bind, check their value
 
@JayIsTooCommon thank you I made it the value of row_id was incorrect that's why the query failed
 
How did you simulate the query?
Did you rewrote it in phpmyadmin?
Did you replace the `DELETE` in the PHP Script with `SELECT `id`` for example and var_dump that?
 
Anonymous
@Riccardo :) no worries
 
and nevermind... pff when interns start asking stuff... like comon let me stackoverflow :-)
 
@JayIsTooCommon @Riccardo Do not rely on rowCount for SELECT unless you are using buffered queries (which you probably don't want to do). It's fine for DELETE, INSERT, UPDATE, but for SELECT you want to use SQL_CALC_FOUND_ROWS
 
10:09 AM
hi, php.net/manual/en/function.return.php ; "return returns program control to the calling module."; so there is always a calling module as far as the php code?
 
assuming MySQL
 
Anonymous
@Leigh he's using DELETE here but TIL
 
php consists of modules (entirely, always) and it is these calling modules that work in the background or something like this? I am not sure what the first sentence on this php.net page means
would this be what is shown after running phpinfo(); ?
 
@ten5 "module" is kind of a bad word, it just means it returns to the call site
whether that is inside another function, or the top level, whatever
 
"call site"?
 
10:12 AM
Where the code was called from
 
ok, so something like a file ending in .php?
 
No...
 
to the place where the code was called from, ok
thanks
 
Anonymous
@ten5 Read up on functions and return will make a bit more sense
 
10:13 AM
Are you brand new to programming? Write a couple of functions, call one from the other, put return statements at various places, you'll learn quickly how it works.
 
I am just wondering what this means, since I dont understand
the stuff on phpinfo() page is mostly modules right?
so the php installation consists of this more or less?
 
Modules is a bad word in both places
 
and they call things?
I could not find this exact info on the Net
 
in phpinfo it should probably be "extensions", and in the docs it should be "call site"
 
@ten5 Forget about "module", don't focus on that word.
 
10:15 AM
ok, thanks
ok, so this is not correct and hence I dont understand
or maybe I will understand it later on
these things seem to have its meanings, in the end
 
Fastest way you're going to learn in this case I think, is to write some code
 
I am a beginner, like 1 year of doing this, striclty php programming
yes, I know, I am doing the theory still, this is how I want to learn
 
@ten5 In 1 year, you should definitely have used return like hunders of times atleast.
 
Theory without practice is going to build up "knowledge" based on assumptions
 
I will get to the poing where I will start writing code, maybe like 80% of the time, and learning for the rest 20% (expanding the theoretical knowledge, as I think this is needed too)
 
10:17 AM
mornin
 
yes, this is not new, I am just not understanding what this sentence means
 
\o
 
For a reality check. I would not hire someone who had read the entire manual and could recite it by heart, but had never written any code.
 
you would imagine modules calling things
@Leigh, yes I understand
I have time to do it this way, I want to specialize in this
the more you read and analyze, the better you are
it is not a wasted time
 
@ten5 Fuck theory, get a little hands-on experience. Watch some tutorials and get down to coding.
 
10:19 AM
@mega6382 - I know, I have some things that I need to go over prior to that, especially the MySQL and MySQL + PHP
but this does not matter, I would not want to be wasting time, as I am moving forward with things
"return returns program control to the calling module. Execution resumes at the expression following the called module's invocation."
this is just not correct all together, like a typo or mistake, I am not sure...
these things have its meanings
"called module's invocation"
 
Anonymous
If you write some code, you'll realise that the manual definition doesn't matter :)
 
You could make this very general. "return passes control back to the caller"
 
that "called module" think is pointless
 
tekoenizer, xdebug, xml, zlib - these are not the "modules"?
 
Aha the male instinct comes up here.
Step 1) Try
Step 2) Rage
Step 3) Try again
Step 4) Rage more
Step 5) Try for the last time
Step 6) Ask someone for help
Step 7) Rage together
Step 8) Try again together
Step 9) Rage some more
Step 10) Take the manual and read it partially
Step 11) Try it your own way
Step 12) Rage some more.
Step 13) Read the other parts that you skipped
Step 14) Rage some more.
Step 15) IT WORKS (or not)
 
10:21 AM
someone nuke this guy please ^
 
@Leigh Thanks I guess..
 
@Leigh just expand your ignore list
 
@ten5 A better word for these is extensions
 
ok
a better word, so it could be said (in this context); module = extension
this could have been what they meant?
 
no
 
10:23 AM
Finally given up on the idea that I will ever learn to type and done git config --global alias.puah push
 
stop focusing on "module"
 
No, not in this context
 
ok, thanks, I dont want to bother
 
Wes
@tereško @Leigh you guys so unpleasant :B
 
In English "module" can have many meanings. In the two cases you have provided, it means different things. In one it means "a function" or piece of code. In the other it means an "extension", additional functionality added to the runtime by way of a compiled library
 
Anonymous
10:25 AM
@ten5 you're not bothering, you're just focussing on things that will probably not help you :)
 
return is not always called from within a function according to this php.net page; it looks like what I am asking about is not functions-related
there is 10 occurences of "module" on the output of phpinfo() on my pc
 
@ten5 please, pay attention: "module" in that sentence has nothing to do with php extensions
get it through your head
people have told you that already at least 4 times
 
so basically what is a module in php, how does that definition relates to whats on php net for the return statement, but thats ok
 
@ten5 Please, pay attention "phpinfo" has no place in this context.
 
there are no "modules" in php
 
it was meant a a term to describe the idea of modules in general programming
 
Wes
@DaveRandom what's the zero width space that:
1- allows wrapping (like <wbr>)
2- does not space the words when text-align:justify
 
@ten5, php.net has User Contributes Notes, I would like to recommend to look at that aswell for behavioral information and tips/tricks
 
@ten5 Can you name a place where return is not used inside a function?
 
@Leigh inlcude/require
 
10:30 AM
@Leigh inside an included file....
 
:P
 
@ten5 Look at this code, the part "echo foo("Hello ");" is what is referred to as the "calling module" here. 3v4l.org/agc0J
 
Which can be pretty much equated to a function... (yes, ignore them being language constructs)
Even the entry point file you can think of being main()
 
@ten5 it should have been named "calling context", instead of "calling module" ...
 
@Leigh E.G An included config file which returns an config array.;
 
10:32 AM
Sure if you want
The behaviour is the same, it returns control to the caller and passes the return value
 
I am back, I will read what you've added, thanks
I will research that, based on that
 
@Shafizadeh and how many time you tried to understand the sentence without using google-translate?
 
Wes
fileformat.info/info/unicode/char/200b/index.htm looks like it. not sure why it says it stretches with text justification
 
@JayIsTooCommon - I've been doing 220+ most used PHP functions, based on some sources, I did not understand something so I started doing the whole OOP on the php.net and I am going deeper now, something related to Iterators
I am doing something like 2 years of theoretical learning, this is my plan, maybe more
 
Anonymous
@ten5 Cool, it's great to read the manual and it will help you. But theoretical learning alone for programming will get you no where. Write some code, when you get stuck, go read the manual
 
10:38 AM
but the practical part will take over, when I am ready for this - GetBootstrap.com, MySQL and MySQL + PHP, plus what I've learned (including the OOP) and other things; I am using phpStorm, w3resource.com exercises, I also read some good books
 
Anonymous
Sounds good - just prioritise your practical. It's much more important than theory.
 
I am aware of that, people have been telling me this from the day one; as far as the practical part, I need to get better on MySQL and MySQL + PHP, I have two Murach's books for this, I've already read half of the MySQL one
like I said, I am not taking shortcuts, I really want to specialize in this, to the point of learning how to understand the underlying C
 
Anonymous
Good ambitions :)
 
yes, I am aware of that, reading the whole php.net makes no sense; there is also an aspect of forgetting it; I mean you remember it but on a deeper level; like some people read some programming books several times to really understand
this may be the case with the php.net, read several times, but again, I understand that I could be reading it all for 10 years and it will all change by then, so this is not the way
but I am doing this 2 years of training, maybe even three, after that one year of JavaScript, if I will be able to
 
@ten5 why? What is the point
programming is not about memorization of functions
 
10:43 AM
@tereško - the 220+ most popular functions?
I understand, but this is training me
after two years I will be adifferent person
 
no, it is not
 
@ten5 you very probably don't.
 
I will be doing less reading on the job, lets say
 
memorization will not make you a programmer
... well ... maybe it will make you "an indian programmer" (according to the worst possible stereotypes)
 
you hire a beginning php programmer and this person is 80% of the time on google.com instead of creating things, and I will be better
like I said, I have my plan
I can do it this way, I want to do it good
 
10:44 AM
@ten5 I rely on my IDE to remember the functions for me
 
^^ that and muscle memory....from practice.
 
yes, you all have a better point of view then me
 
@ten5 And what is wrong with that?
 
I am still getting there
 
this is one of the rare cases, when I agree with @Danack
 
10:45 AM
the learning will make me a better programmer
 
@ten5 Not like this
 
you have been just wasting your valuable time
 
then you get a job and you read anyway because you dont understand
I will be past that, and have a better foundation for learning more...
foundation...
 
Anonymous
@ten5 The path you'll be going down is like someone applying to be a bus driver who already knows the bus route off hand, but doesn't know how to drive a bus. Pointless
 
all of us still learn and will be learning this
 
the language will evolve too, change, improve, this is in the end a new thing
computers, it, Internet
 
@ten5 you are learning to be "human php-manual" instead of "php developer"
 
I have like 7 years of experience in websites
ok, thanks
 
you mean, like facebook?
 
I dont want to be wasting time
 
10:47 AM
@ten5 doing what? scrolling?
 
seo, social media marketing, scripts like wordpress, linux admin
 
@ten5 No you most definitely will not be, in fact you might be a bit lagging. Because in all the reading you will not find any proper real world examples. And when you'll have to use it in practice you will be like "but that wasn't in the manuals." And all that effort will be wasted.
 
all the websites part, except from the email marketing (also excel, nginx - I am not familar with these as far as like reading books)
 
Anonymous
> scripts like wordpress
 
Learn by practice, form your own opinions...
 
10:48 AM
ok, I give up
 
Anonymous
same
 
Its a lost cause..
 
@Wes I assume zwnj - my understanding is that the difference between that and zwj is the wrapping behaviour, but afaik neither of them render a horizontal space under any circumstances
 
Wes
unicode is hard
 
ok, if I could ask you, as far as the practical part, script like youtube, lets say
1) admin panel 2) database 3) website html, write the admin in html, create the database, write the website html?
something like this, what would be the process?
 
10:52 AM
Morgens
 
Anonymous
@ten5 @PeeHaa will tell you
 
Yo @PeeHaa
 
Wes
tell us @PeeHaa
 
what is the process of writing something like that? I mean, so I could lay down in the evening and think about it...
 
No thanks. I altready dealt with his previous 5 accounts
 
10:54 AM
@PeeHaa What accounts?
 
ten2 was the worst
 
:D
 
step 1: hire a team of at least 40 developers with at least 5 years of experience
 
over
 
at least they were zero-indexed
 
Anonymous
10:54 AM
nerd
 
I cannot stand people who 1-index things
I cannot imagine how annoying it must be to use lifts in america
 
Anonymous
they start at 1?!
 
What country does building levels wrong?
UK or US?
 
Both
 
We do it right here
I believe the 'muricans consider ground to be 1
 
Anonymous
10:55 AM
1st floor !== ground floor
 
we have ground floor in Buglaria
 
^^^^^^ that inb4
 
@JayIsTooCommon k you are doing it right for once
 
Floors are ground + n
 
<3
 
10:56 AM
no
 
oh god
The russian is doing it all wrong
 
Anonymous
do we kick?
 
:P
 
but the first ( the one above ground floor ) is named 2nd
 
Anonymous
eh
 
Wes
10:57 AM
ftr madara said hes not the same guy
 
oh wait no, that was what brokers were doing, my bad
 
@DaveRandom they simply don't even lift
3
 
lol
 
xD
 
"elevators" can fuck right off
/me rage-quits the internet
 
10:58 AM
@DaveRandom yay \o/
 
so do the admin panel in html first, then do the database design, then do the website html (output from the database), fine tune?
something like this?
 

« first day (2742 days earlier)      last day (2206 days later) »