« first day (724 days earlier)      last day (4215 days later) » 

Sem
10:07 AM
zdnet.com/… PHP Windows 8 Apps coming up! (Haters goanna hate)
 
I want to insert 600K records in mysql db
using PHP
 
King H what is stopping you to do that
 
for($i=1;$i<=600000;$i++){
$data['applicationname'] = $i."name";
$this->exam_model->insertuserdata($data);
}
but it's only inser arround 1100 to 1200 records only
after that browser stop process
 
don't forget to set execution time
 
yes
 
10:11 AM
how to set? @chx101
 
set_time_limit(0);
 
user1125394
can you do the for loop in sql?
 
that'll disable the time limit
 
put this line
set_time_limit(0);
on top of your php script
 
@KiNGH The other way is to use AJAX with setTimeout
*or
 
10:13 AM
yes Cyril if your are writing Store PROCEDURE
@Cy
@Cyril
 
user1125394
that would be better in his case
 
No, it can be solved in PHP and its easy too
 
user1125394
a batch write should perform better than a loop of single write from php
 
you are write @cyril but in this case this was not the issue, it was a php Issue so I suggest him to change php.ini setting
sorry right*
 
it done
 
10:20 AM
0
A: PHP Errors Reference question

GordonSince this discussion led to Reference - What does this symbol mean in PHP? to be closed again, I'll throw in my 2c in as well. When I created the Operator Reference more than two years ago, the same fuss happening right here happened there as well. The question would immediately gain a notable ...

 
@chx101 @Devnegikec thanx
 
user1125394
ok i'm not sql expert
 
@cyril thnx
 
you welcome King
 
it will done using set_time_limit(0);
 
10:27 AM
I remember one time I had a screen scrapper that downloaded pictures from a dating site. It would create a folder then download about 6 to 10 pictures. I coined about 500K. 4Hours. $45 I made from it. LOL. Good old days.
 
hey @chx101 do u work as a freelancer ?
 
user1125394
anyone know how to run php-cli from SublimeText?
 
go to command line and run PHP test.php
this is the way I run in Linux Cmd
 
@Devnegikec Yes. I told myself I quit until I was hit with a $350 project.
 
0
Q: How to use jQuery with the Yii framework.?

raghulrnairHow to use jquery in yii?, How to use my jquery in yii? Why is this any different from using jQuery in any other way?

 
10:38 AM
@Gordon "it is not constructive" It is constructive
It will help future visitors to the sitei
 
I had started a personal project. It was a website. I'll finish it as soon as I finish making a File Stealer (O_o).
OMG. My site isback up
 
@raghulrnair basically there is no difference you can include your custom script
 
see you all guys. Gotta go
 
bye @chx101 see you soon
 
@chx101 Registrations are closed untill 15/10/2012 goodie... just a couple more days...
 
10:57 AM
@hi anybody worked with google cloud messaging for sending notifications
i am talking about server side code using php
 
@Leigh well, but it does solicitit opinion and debate and it wont have an accepted answer
 
11:11 AM
@Devnegikec k
 
nir
11:24 AM
neone there ?
 
user50049
@Leigh I'll try it later, it looks like it should.
 
nir
92.242.132.x is which type of IP address ?
 
1 message moved to bin
 
@nir Are you serious? (ok serious answer, it's an IPv4 address)
 
Sem
11:42 AM
@sem it kind of is...At least he has tried, and has shown his code, which is more than many questions you see here. — danwellman 11 mins ago
This makes me sad.
 
@Leigh Not complicated enough, it's almost as if you were giving something so he could understand it. What's wrong with "It's an A-class IPv4 address in dotted decimal notation, which you appear to be treating as if it were in the C-class address space". Maybe make up a few words as well, just to add to the confusion.
 
Sem
@DaveRandom Make an IDE where if you type a function, it will search with Google for the right code associated with the functionName. And if there are no results - post the function name as title with the language aside of it on SO. And post the other less relative code of Google as things that you've tried. Then place a loading spinner as time passes.
 
which IDE suport YII autocomplete ?
 
The one I'm about to write under instruction of @Sem. It will also support auto-bugfix and there will be a MOAR JQUERY plugin. It will also automatically prefix every operation with @ and call extract($_REQUEST); at the head of every script to compensate for the removal of register_globals.
 
Sem
12:03 PM
@DaveRandom Also please find a way to solve all fatal errors. Even if it doesn't display anything anymore.
 
@DaveRandom No need to make up words, could use CIDR and octet, I'm sure that would throw him off.
 
@Sem You'll need the MOAR JQUERY plugin for that, when included you can simply call $(application).workProperly(); at the head of the script and all fatal errors will be converted to Unicorns and/or Rainbows (platform dependent).
 
@tereško Already voted, and Gordon pinned earlier on.
 
we should go through all the Qs answered by Jack and find dupes for them
 
12:11 PM
Yey for holding a grudge!
 
that would be a nice thing to do ... i am kinda annoyed by people who rep-whore to that extent
 
Boun giorno!
 
@Gordon Spend 5 minutes a day, and keep a record. I'm sure within a week you'll be able to use your reference of previous dupes to find most of them ;)
 
I'm not doing any more but that one was screaming
 
12:24 PM
well .. i already made the token effort .. i'm afraid i cannot be asked to do more
 
@DaveRandom But one like that a day, will soon bring him back to where he deserves to be ;D
 
@ircmaxell how's Milan? got screwed over yet?
@ircmaxell if you are looking for a place to eat today I can recommend tripadvisor.de/… - it looks like a den from outside but we enjoyed our stay and the food.
 
Damn he's fast
 
12:33 PM
@DaveRandom Why did he reopen?
Was he trying to clear close votes?
 
Why don't we like Jack?
 
WTF did @@casperOne reopen that??
 
@SomeKittens Rep whoring instead of closing as dupes like a good citizen
@Gordon My guess is to clear the close votes - and to prevent us from closing it, since we can't vote again
 
@Leigh Ah. Carry on!
 
Funny how 4 people vote as duplicate, and he closes as NARQ and reopens
 
12:37 PM
> Post Reopened by vascowhite, DaveRandom, tereško, cspray, SomeKittens
thanks guys
 
I'm helping!
 
not sure if we will have people to reopen it after the next wave
 
@Leigh Dunno, slightly annoying that mods don't have to give a reason for stuff like that, definitely open to abuse. He may have been observing the transcript here though maybe? I mean we don't really have the right to victimise people because they disagree with us - even if we find genuine use cases we arguably shouldn't go looking for things that one specific user has done wrong
 
though , i think , i might be able to borrow few from javascript room
 
@tereško yeah.
 
12:39 PM
@DaveRandom We're not victimising. If we saw anyone rep whoring when they know better, we'd go for a dupe clearing spree
 
Or maybe we have a mole! Who is it? @Sem It's you isn't it? Never trust a Dutchman.
 
Pick another person doing it, I'll happily find dupes of those questions too
 
@DaveRandom I disagree. We should find places for improvement however we can. If one user leads us to dupes, so be it
 
@DaveRandom in all fairness, i flagged Jacks answer and asked for merging with the linked dupe, so he wouldnt be a victim exactly. just looking the green tick which is fair enough
 
@Gordon So you called the mod
sigh
 
12:40 PM
@Leigh likely
 
Do I need to restart a mysql server if I changed settings?
 
> Consider merging this to the linked dupe – 15 mins ago declined - a moderator reviewed your flag, but found no evidence to support it
 
Time to start a 2nd account... to see if I could get as much rep if I roleplayed someone helpful.
 
@Oyeme usually : yes
 
casperOne must be the worst mod ever
2
 
12:41 PM
@tereško thanks
 
Sem
@DaveRandom Me repwhoring? Maybe later I will, because I do have the feeling rep points really mean respect on SO. Even in this chatroom.
 
@Leigh So in theory, I'm better off with an integer property.
 
@Christian Absolutely, no matter how negligible the performance increase is, integer operations always faster / less mem intensive than string operations
(if you're trying to do the same thing with them)
 
@Leigh Why don't you use cv-pls, give yourself an unfair disadvantage.
 
reflagged it
> can you please send casperOne to the PHP chat to discuss why he declined this flag despite being an obvious dupe. if he has no clue what he's doing he should simply ignore the flag. this is not the first time this happened. – 33 secs ago
 
12:44 PM
@DaveRandom No, I'm going to create obvious dupes, to lure in the rep whores, then delete all of the questions to make their rep crash! :D
 
@Sem well .. you need to get 3k for us to care , otherwise you are just a leecher =P
 
@Gordon A court summons. Stupid white curly wigs on, everybody!
 
@DaveRandom ;D
 
Well, I am bit amused to get close votes without a valid reason.
Seems that once a question is in the least complicated it tends to get a close vote.
Next time I'll just stick to asking opinions about which is the best framework/language/whatever
 
@Christian That's because the least complicated questions have almost without exception been answered a hundred thousand times before, and can often be found on the top of the Google results, let alone the SO search.
 
12:47 PM
@Christian That's not a good question source either, as it's NARQ
 
@DaveRandom Sorry, rephrased.
 
@Christian It's not a constructive question. I am one of the close votes. (in the interest of full disclosure)
 
@Leigh Well, you could at least voiced why it's not constructive.
@SomeKittens What the heck?
 
@Christian I am kinda tempted to mark it as "not a question"
 
Sem
12:48 PM
@tereško I guess I will start farming eventually. Either the helpfull way. Or the copy paste answer for duplicate question way.
 
It boils down to... "What is faster, strings or integers"
 
@Sem I don't know, once you get past about 200 you've proved you're not a valueless user, and that's what really matters. Although it is nice to have enough rep not to worry about downvoting terrible answers, and I've done my fair share of rep=whoring in that past.
 
@Christian It's a site for more general questions like "Is X a good framework for Y" etc
 
@Leigh That is false, it's specific to PHP
 
@Sem or you could improve tag-wiki (2 points for each approved edit)
 
12:49 PM
Hi
Do this in calculator: 217.35 + 10 + 20 + 55 - -13.5 - -7.26 / 10
It should be: 28.159
 
@DaveRandom Heh, most of the rep you spend on downvotes you get back anyway, especially if you hit the serial terrible answer spammers.
 
@SomeKittens Again that is false. Pascal strings, for instance, are faster than integers because they are constrained.
 
They just delete when they hit -1
 
In PHP I am getting 32
why?
 
@Christian ...wut? Did you respond to the wrong message?
 
12:50 PM
@Christian Pascal strings faster than integers for what exactly?
Pascal strings store the length in the first byte.
 
@Leigh Exactly, they're limited to one byte
255 characters.
 
They're limited to 256 bytes, not one
 
@I'll-Be-Back lolwut ? the answer is over 300 ( without bothering to calculate )
 
> declined - No, thank you. The (only) answer was specific to jQuery, and not about double semi colons in general. The question may have been a dupe, but has been edited to reflect the specific answer.
 
@Leigh I meant a byte's worth of characters. Geez.
 
12:52 PM
huh?
 
@Gordon That's pretty terrible. He changed the question to make it fit the answer to avoid merging it as a dupe
 
you missing the minus and devide
divide
 
@Leigh agree. and not showing up in here is kinda … lame. he's effectively abusing his power. there was 4 ppl saying it IS a dupe.
 
@I'll-Be-Back google.com/…
 
Sem
@DaveRandom The point is I prefer helping people in chat, not helping repwise D:
 
12:53 PM
@Christian And how is any operation on pascal strings faster than an equivalent operation with integers?
(also, you could use a Byte datatype, and you can store the same amount of data, for a whole byte less)
See, already resulted in extended discussion ;D
 
@Leigh Not so "not a question" is it?
 
@tereško try copy and paste in windows calculater
 
Seems to me some people's went over their head....
 
@Christian Not constructive.
 
@Leigh Why not? I'm trying to fix an issue in performance from the results of that question.
 
12:56 PM
@Christian Seems to me you're a sore loser. Nobody asked to CV your question in here.
 
Incidentally, it seems some other frameworks also suffer from this same problem.
 
I doubt your performance issue is related to the use of 1 character strings over integers.
 
@Leigh When it comes to closing questions without reason, yes sure am.
 
I opened PHP Operators and I wonder why it didn't get closed.
 
@Leigh It does when you have thousands of objects with 5 properties that could be merged into one integer property.
 
12:57 PM
@Christian Sounds like bad design
 
@Leigh Oh there's a lot of it out there.
 
@nalply pardon?
 
And yes, I'm guilty of it 3 years ago.
 
thousands of objects with a single char property, vs thousands of objects with a numeric property, your performance gain is going to be in the nanoseconds, really.
 
@Leigh Nanoseconds? I'm talking about memory.
 
12:58 PM
I mean, Errors got closed, but Operators not.
 
I'm trying to gain a good memory-performance ratio.
 
I see the difference. Errors has many answers while Operators links to the questions directly.
 
@nalply Operators just got reopened a few minutes ago after some dorks cv'ed it
 
@Christian The majority of the memory is going to be used by the objects. If you have 1000 single character strings, with their length as an integer, vs 1000 integers. You'll save 1000 bytes. Less than 1kb
 
@nalply but yes, the format is different
 
12:59 PM
sorry don't understand cv
curriculum vitae?
 
@nalply cv = closevoted
 
the difference is that "operators" were not locked by a mod
 
close voted
 
gist: A brief description of cv-ring and cv-pls, 2012-01-27 15:55:00Z
# What is 'cv-ring', 'cv-pls' and 'delv-pls'

In the [Stack Overflow](http://www.stackoverflow.com/) [PHP chat](http://chat.stackoverflow.com/rooms/11/php) you may notice that the regulars using tags like `cv-pls`, `cv-ring` and `delv-pls`.  These tags are used only in the chat room to communicate with other users that a question or answer may need more votes to be closed or deleted.  You see, PHP has a lot of inferior quality and duplicative information on Stack Overflow.  We feel that these questions bring down the site and make it harder to find good information, particularly about PHP. By closing and merging these questions as appropriate you'll find the information you need quicker.

- `cv-ring` is just a 'funny name' we give to the group of regulars who use the tags 
- `cv-pls` is an in-chat tag that communicates "Hey, this question may be of inferior quality.  Check it out and, if you feel appropriate, cast a close vote."
- `delv-pls` is an in-chat tag that communicates "Hey, this question has already been closed but now needs to be deleted."

There's been a question on [meta.stackoverflow.com](http://meta.stackoverflow.com/) that [asks whether the community should vote-to-close in this way](http://meta.stackoverflow.com/questions/120275/is-asking-others-for-a-close-vote-appropriate) if you feel the need to provide feedback.  If you have a problem with the process or notice abuse please post something on meta or talk to us in chat.  This process is meant to *help the community* but can easily start *hurting the community* and that is not our intent.  I hope this clears up a little more about various in-chat tags used by the PHP chat room.
 
@Leigh Thanks, really. That's what I'm trying to discuss.
 
1:01 PM
heh, already got a closevote again. ppl are insane
 
@Leigh I considered asking here directly, but I figured it would benefit the community.
 
seems to be controversial
 
I apologize for the noise about cv, I'm just nuts about closing questions without written reason.
 
morning
 
@nalply yes, because strictly speaking the format is not a real question. and the conformists think that is more worth than the value the reference added to the site. check meta.stackoverflow.com/questions/149743/… for the recent discussion
 
1:03 PM
but, the moderator's guideline on Meta is also NARQ.
 
@nalply Meta's special
 
@nalply the Mods dont agree on how to treat that.
 
now I am laughing about SO
 
Writing unit tests when you're tired is a bad idea. All the bugs I've found so far are in my unit code.
 
It seems that someone needs to invest some love into tag wikis. If they offer the same power as the reference NARQ do now the problem would disappear immediately, won't it?
 
1:08 PM
@nalply probably. of course we wouldnt need a reference at all, if people would consequently cv and delv all those needless dupes.
 
@Christian I ran some tests. Seems the results differ depending on 64bit/32bit PHP, on 64bit the ints take up more space.
 
thanks, that has been enlightening. good bye!
 
@Leigh Yeah. But I still think it's worth it to use ints. I don't see a smaller data type.
I guess an array of bools is also out of question.
 
I always store my data in an array of bools and then convert from binary in my head.
 
I don't know how indices are stored. I suppose an array defined without indices ($a=['a', 'b']) still stores indices.
 
1:14 PM
@Christian lxr.php.net/xref/PHP_5_4/Zend/zend.h#307 - The string value actually uses a pointer (another 32 or 64 bits) to the string, as well as the length (which should be 32/64b), in addition to the string value. While the numeric storage should just be the lval (64b)
However, it's a union type, so it should always take the memory of the largest structure
 
@Leigh Bummer.
Well, it seems the simplest solution (int/bitfield) won after all.
 
@NikiC Can accessors yield? ;)
 
@Leigh Presumably
 
Bah. I'm trying to get the title of an HTML page. What's wrong with this code? $cwReturn is html, I've checked that.
$html = new DOMDocument('1.0','UTF-8');
$html->loadHTML($cwReturn);
$title = $html->getElementsByTagName("title");
 
I have a feeling, that @Christian is what Help Vampires evolve into , when/if they manage to accumulate enough knowledge (mostly by osmosis). He only comes here either when he wants something or if he wants to whine about how badly treated he is.
 
1:26 PM
$html is empty
 
@NikiC What about...
public $_state {
    set { echo 'oops'; }
}
 
@Leigh what about it?
 
would that generate __set_state()
 
Sem
@tereško Farmed 43 rep thus far, you should be proud of me :'(
 
@DaveRandom you gonna fix // Wrong echo "A string with an $array[key] variable in it"; ?
 
1:27 PM
@Leigh oh, nice one. I'll try
 
@rlemon I just went over to the JS room to that
 
@SomeKittens I don't have patience. I need to see this stuff closed ASAP :P
 
@tereško Except I'm no help vampire....
 
you did not pay the attention .. i said that you were
 
1:34 PM
@Leigh You should write that on the list ;)
It's a nice example of how it messes up things
 
@tereško is that a spelling mistake, or are you deliberately trying to confuse me?
 
@NikiC So it does auto generate?
 
"were" : Second-person singular simple past tense indicative of "be"
 
@Leigh yes
 
Ok, sure I'll send a mail :)
 
1:37 PM
@tereško If you know a thing about me you'd know I've been forced to use SO because wise-asses like you over criticize my code.
In fact, if you look at my registration date you'd note I suddenly dropped out of nowhere.
 
@Christian dude, it's the internet. No need to go crazy because some guy thinks you're something else. Go prove him wrong by being an excellent SO citizen, or go home.
 
@SomeKittens Yeah, I'm currently try to make a living at work, not being the cool freelancer guy at home...
Plus, I'm entitled to an opinion, am I not? Just as he is.
 
How can I make this understand this? stackoverflow.com/questions/12775426/…
 
@shiplu.mokadd.im that question is a duplicate
 
you cannot .. it's
 
1:43 PM
@Gordon Totally forgot about that, on it now.
 
@Gordon I know Its duplicated million times!
 
@shiplu.mokadd.im then why do you answer it. find a suitable dupe and close it.
 
@NikiC This feels so full of holes. If I get time later I'll see how much I can break. I wonder how these objects serialise/deserialise for example, and hook up their setter/getters
 
@Gordon He had asked 2 questions. So I answerd.
 
@Leigh Please do so. The more you can break the better :D
 
1:47 PM
resen
 
ekneuss thinks that not using real methods and properties would a hack, rather than the other way around :/
 
@shiplu.mokadd.im you are not supposed to answer dupes. it makes the site hard to search
 
@Gordon Right, fixed. I just removed the whole part about interpolated strings for now as it doesn't really have any bearing on the error without going off the topic of the ref.
 
+1 I'm going to mark this as the answer. I completely agree. This question shouldn't be appropriate, but we DO need something different in the long run for keeping reference things like this. — Earlz 21 mins ago
^ Saying so and accepting Tims answer.
 
1:51 PM
stackoverflow.com/questions/12775426/… pretty much RTFM anyway. not like it's hard to find out how to order in mysql
 
topics like this makes me sad :
-2
Q: How MVC works in PHP?

Rohan CalvinI want to know how MVC works and how to create one cause I don't want too much functionality which popular frameworks usually offer as I'm new to PHP and this concept. I want to keep it very basic and I actually just want to seperate the presentation and logic to make my codes beautiful, lol. My...

 
@tereško me too because it has been answered so many times before
 
4 of first 5 comments recommend codeigniter , completely ignoring the question
 
@hakre I wonder how @TimPost manages to be so reasonable while so many other mods don't
 
@tereško I've found CodeIgniter is excellent for ignoring questions.
 
@NikiC @TimPost lives in asia and had lots of floods recently. guess when you have that, you develop a certain calmness :)
 
@NikiC Well as a good mod you should be that way, otherwise it's just personal mess after some point.
 
@Gordon Sounds like a good explanation :D
 
@NikiC widdewiddewitt :)
@NikiC also, Tim got more insight into the php tag than other mods. And the fact he's regularly talking to us and knows the problems we try to solve probably helps to come up with an educated and reasonable answer like this
or maybe he's just awesome like that
yeah, @TimPost you are just awe… wait for it …some like that!
 
user1125394
you are over-pinging him no?
 
user895378
2:06 PM
Over-pinging who? @TimPost ???
 
user1125394
@rdlowrey I'm looking your injector project, nice job
 
user895378
@cyril Thanks -- I'm adding APC caching today. I may at some point add support for annotation injection definitions, but probably not because I think it's stupid to have your code run off of comments.
 
@Gordon Which makes me wonder why moderators (and users) who are not involved, do not know the situation and can not make an educated answer, why are they the ones going forward first and crying out the loudest? I mean, I don't know, isn't it something like common sense that if you do not understand the issue at hand that you just stay out of it?
 
though you would have to pay me to use it ...
 
@cyril nah, @TimPost is from the Philippinges, so he's used to that
 
user895378
2:09 PM
Like any tool, it's only for very specific cases. Used incorrectly it's a waste of time.
 
@NikiC Common sense is not so...... I mean, really, you shouldn't be surprised - it happens all the time, everywhere.
 
user895378
For the record, IMHO @TimPost does a very nice job as a mod. Much better than I would do, anyway :)
 
@rdlowrey Don't ask me, getting into bitchmode is a complete mess.
 
@NikiC I guess to an outsider or newbie it is much easier to see: "hmm, not a real question. let's close it." Or maybe it's just a false sense of fairness or playing by the rules. or whatever. i dont know.
 
@rdlowrey +1 for the "stupid" part -1 for the "may ... add" part :)
 
2:11 PM
@Gordon and you can repwhore on meta than.
 
user895378
@NikiC Glad you agree -- using annotations as a vehicle for dependency injection is soooooooo dumb
 
user895378
@hakre you've been very prolific on SO lately. Every time I find a question that looks interesting you've already posted a quality answer :)
 
@rdlowrey And I should mention: Looking at your dependency injection container the pattern starts to make a little sense for the first time. I never was able to understand what the Symfony etc stuff is good for.
 
user1125394
@rdlowrey $injector->make('MyClass'); creates new attribute instances independantly from the context?
 
user895378
@cyril Define "attribute instances" ...?
 
user1125394
 
Hi Guys!
 
user895378
@cyril Yes, that's what happens.
 
user1125394
but if you want to create a new MyClass and pass it a $dep1 already created, it's not the best solution no?
 
user895378
@cyril Let's be clear, in such a straight-forward case you should always explicitly create the instance on your own.
 
user1125394
alright
 
user895378
2:21 PM
The DIC only makes sense for large and complex object graphs. It's also helpful for managing the lifecycle of various objects and providing the right instances for cross-cutting concerns like logging or configuration type classes or application-wide event mediators.
 
user895378
In very specific cases it solves the problem of injecting "singleton"-style instances into deeply nested objects without any of the evil static.
 
@rdlowrey which one did you spot?
 
user895378
@hakre something about phpunit and test listeners
 
@rdlowrey ah yes, normally those phpunit questions are more interesting.
and I like it if I can learn something when answering a question ;)
so if you see something wrong, leave a comment ;)
 
user895378
Yes, any time something is tagged with you know that the person is at least somewhat competent. If they're testing their code, at least they have good intentions.
 
user895378
2:26 PM
So the average quality of questions is much higher than the average question.
 
Speaking of (which I'm learning) does anyone have time to answer a few dumb best-practice questions?
(or direct me to somewhere where I can read about them)
 
user895378
Ask away ... as usual, people will probably chime in if they can help.
 
I get an error with include_path when I try to run my FB app on my local machine. I am trying to access sdk/src/facebook.php.
Can someone help me with this?
Fatal error: require_once() [function.require]: Failed opening required 'sdk/src/facebook.php' (include_path='d:\php\pear') in D:\Apache\Apache2\htdocs\www\immense-headland-4743\index.php on line 14
 
I'm writing lots of unit tests, but I'm not sure exactly what/how much I should test. Do I need to test every possible function, even if it's a wrapper for another function? If a function returns a large XML file, how much of that do I need to test to prove it's correct?
I know I should test every possible outcome.
 
@ConversationCompany in your own words: what does the error message say?
 
user895378
2:39 PM
@SomeKittens You specifically need to test the public interface. Don't waste time writing tests that target protected/private methods specifically as those are implementation details and almost always change. Write tests against every possible execution path through the public interface, gaining coverage on the non-publics in those tests.
 
ah. Thanks!
 
user895378
When I first started testing I wasted a lot of time rewriting tests for non-public methods over and over. Test the public interface and add @coverage annotations on those tests for the non-public methods.
 
annotations?
 
someone is again trying to close symbol reference question
 
user895378
@SomeKittens Yes, you'll have to do a lot with annotations on your test methods if you want to use phpunit effectively. Once you start generating code-coverage reports you'll see what I mean.
 
2:44 PM
Yeah, I haven't done much generation, etc. Trying to learn all this stuff, but there's only so much time in the day.
Once I learn Aptana I hope to start doing that sort of thing
 
user895378
@SomeKittens Understandable. Basically, developers are really terrible at knowing what they have and haven't tested. As a result, it's helpful to generate code coverage reports to see which lines you're executing in your tests. The @coverage annotation in test method docblocks deals with that. Don't worry about it right away.
 
Yeah, I'd like to improve on my current method of tracking, which is a Google Docs spreadsheet...
 
user895378
I'm hesitant to ask this question because it's probably a micro-optimization but ... is there any sense in worrying about the lookup time for an array hash table? i.e. is there a number of array entries at which I should consider splitting things into multiple variables to prevent long execution times for array_key_exists?
 
user895378
Of course, I suspect memory would become a concern before processing time for such a large array structure, so it probably wouldn't even matter.
 
i feel like i missed something important
 
user895378
2:55 PM
Okay good, I'm not the only one who got the "time-travel" message :)
 
same here. It's odd, all of our work PC's were a day ahead this morning
 
I blame CERN
 
oh man I should stay away from meta.
I only get angry. Or disappointed. Or both.
 
I like the way the context of the messages wraps around the 24 days later message in the screenshot in the meta question
 
@hakre Never underestimate the power of stupid people in large numbers
 
2:59 PM
@SomeKittens That should be the tag wiki for the jQuery tag
 

« first day (724 days earlier)      last day (4215 days later) »