« first day (1647 days earlier)      last day (3298 days later) » 

9:00 AM
and change it from 120 to 80
 
he needs both
 
why?
 
Because 80 is "watch out" and 120 is "this is wrong"
 
...
I think you are spending too much time on something not that important
 
I think I don't care what you think is important for me :)
 
9:02 AM
sure
I am just telling you in a friendly manner
 
for (var i=0;i<in_year; in_year--)
That's amazing
 
@PeeHaa fill all pages with spaces and place ; as the 120th character, use 'insert' typing (the one when you overwrite instead of prepending)!
anyway, why is there a 120 char margin?
 
@PeeHaa I broke their bug tracker :-(
 
@SergeyTelshevsky why is 120 char margin bad?
 
9:08 AM
@ziGi I never said it's bad, I mean what's the reason for exactly 120?
 
because it's 1.5x 80
I think
 
@SergeyTelshevsky :P
 
usually it's more because we have better screens
 
well, 80 has the rational explanation
and since those days our screens didn't get just 1.5 times wider
 
9:11 AM
@ziGi as zerkms said, 80 was because of punchcards and small terminal screens
 
The rational explanation for 80 only works if you live in the 80's
 
yep
and 1.5 is irrational
 
@SergeyTelshevsky yes
 
like - 1 is too few, 2 is too much, 1.42 is too weird
 
@AllenJB well standards are standards, it's true, but why 120 and not 123 or 121 or 119 or anthing else
 
9:12 AM
because people like round numbers I guess
 
150 is "rounder"
 
128 would be rounder to programmers
 
if you're a robot - yes
 
BTW @leigh is this your ticket?
 
and 127 is a prime number
 
9:13 AM
@PeeHaa You can't have 2 afaik, you can change the one that's there though
 
I think because of widescreen IDE editors they changed it to 120
 
@DaveRandom Yeah found the feature request :)
 
ftr I have mine set to 150, I don't believe in 80/120
 
Infidel!
 
Nobody works in 80 col terminals any more, nobody has screen resolutions <1280 wide any more, it's a stupid restriction
 
9:15 AM
@DaveRandom breaking the law?
 
@DaveRandom +1
 
let's propose a new standard!
 
It just seems to me like one of those bits of dogma which everyone blindly follows and no-one really thinks about why the rule is there. A line length limit does make sense, but 80/120 does not. IMHO. YMMV.
 
@DaveRandom It makes sense because everybody else is doing it
 
baaa baaa
80 margin
baa baa 120
 
9:19 AM
@PeeHaa I have 5760px of screen width, limiting my lines to 1/10th of that doesn't make a whole bunch of sense. Even when working at 1280x768, 150 chars still comfortably fits on the screen inc toolbars etc
 
> I have 5760px of screen width

o_O
 
O_o
 
IMO 120 is about right, and works well for current screen layouts (IDE, landscape with "stuff" (tool windows) on either side or portrait without stuff, as well as terminal editor over ssh). Also thin enough that it helps to discourage too many indentation levels
 
Obv. I follow project-level coding standards though
 
Anyone help me with named.service not starting . justpaste.it/kmtx
 
9:20 AM
@zerkms 3 x 1920
 
@DaveRandom do you have it as a portrait?
 
lol
and a ladder
 
iirc there were some discussions stating that they keep it 80/90/120 because of github
 
@ziGi I have one on a swivel but I've never actually used it, but then I'm not a designer, I spend most of my time working with text
@SergeyTelshevsky FIG, you mean?
 
maybe
oh no, I mean because they try to fit github's code browser width
 
9:22 AM
@PeeHaa as a work-around you can probably set up code sniffer to moan and have phpstorm use its inspection
 
so no scrolling appears
 
@DaveRandom I've never said anything about designing, it's just that you can see more code if it's in a portrait mode. -> cdn.osxdaily.com/wp-content/uploads/2010/02/…
 
@ziGi I've seen some use it that way, but I can say it would be an absolute nightmare for me
 
@ziGi Yeh but how often do you need to see "more code", though? As a general rule I'm working with either a few lines at a time, or multiple files which I will probably shove onto another screen
 
the file browser on the left takes only 1/2 height
 
9:24 AM
right, I need to go do some actual work, bbiab
 
and what you really need is multiple files in groups
 
I agree, I usually split my screen into two different code tabs
and my resolution is 1366x768 so it's kind of ok
actually I lied
it's 1920x1080
bb back to work now
 
@PeeHaa Why would you want to do that?
I left at default, thinking it's best for all the other PHPStorm devs
There's no standard I found for that though is there?
 
@DaveRandom At times I am on a small screen laptop
@PaulCrovella Yeah was looking into that
@Jimbo PukeSR-n does it I think
 
@Danack wow @ that price :(
 
9:28 AM
> Sorry, I didn't notice another response here.

The use case is for code styles like PSR-2 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)

There MUST NOT be a hard limit on line length; the soft limit MUST be 120 characters; lines SHOULD be 80 characters or less.
 
I guess it won't get better until the end of this year :(
 
wtf does that even mean? if a limit MUST be 120 characters isn't that a hard limit?
 
Ok guys, we have a holy-war with colleagues about "trait vs composition". What are most solid arguments against traits if SRP, tight-coupling and testability didn't wok?
 
Traits are globals, effectively, right?
So you're hooking into a global object
Might as well use static::, and we all know you'd be insane to do that...
 
Well traits are more about attaching behaviors, not about having global state
 
9:33 AM
Context: it is for controllers. So, controllers are not covered by unit-tests, they are covered by acceptance tests
 
You still get that global state though when using them right
Also, if you're using language agnostic software design and you're designing your classes and relationships using composition, then you decide you're going to use PHP...
Traits wouldn't have been anywhere in there
 
@Jimbo not really if you have a private $someVar; in a trait it would be private for the class for which the trait is being used
 
You still need access to that trait to use the object "in isolation", the point of tests
(and yeah I agree controllers are not unit tests, they're just the glue for your already unit tested objects)
@AlmaDo I'd like to be able to share an object with someone else, without having to provide other files just for this one class
 
@AlmaDo The most solid argument is usually to show a better way and explain why its better. Focus on the solution instead of just railing against the problem.
 
9:42 AM
@PaulCrovella I think that means it's OK to have lines >120chars in files like localization and other stuff, but the code must be <120 and, better, <80
 
@Jimbo Disagree. Either the trait exhibits public behaviours i.e. test it just like anything else, or it provides internal behaviours opaque to the public API in which case you don't test it as part of the consuming class, you test it separately and ignore it wherever it's actually used
 
@DaveRandom I still don't get why you wouldn't just put it in the original class, though, or a base class if used by multiple objects
 
Also traits don't have global state unless they contain static vars
 
@zerkms can't help atm
 
and fair enough on the state side :P
 
9:44 AM
@PaulCrovella that doesn't answer my question. Well, because we want to decide which way to go and I'm against traits as they break SRP, are not test-friendly, not flexible and surely not readable
But I don't know how to explain that in best way
 
Is a fair point, I don't like them... but I struggle to explain why too :-)
 
@Jimbo that was sent to the team in the first place
 
@Jimbo EventEmitter (for Node-style on(), off(), trigger() APIs) is IMO a good example of a good use of a trait. The implementation is usually universal and it's applicable to many things that are unrelated in inheritance.
Of course, whether that style of evented API is a good thing is another matter, but if you do elect to go with that style then it's a good use-case for traits, IMO
 
traits have only one good side in my case - performance. For composition I will need to create more instances, and in case of our RPM, it will cost 20..25ms, which is sensible impact
 
You say style with on() or off(), looks like we're talking about fluent interfaces and callbacks here
> Since traits are resolved at compile-time, the use is no different from extends in the sense that it tightly couples the trait implementation to the using class. This can actually reduce the reusability and utility of the class itself. These are problems that we normally use design patterns to solve (such as Decorator, Composite and Bridge).
Imho, that's an end of discussion sort of thing
 
9:52 AM
@Jimbo Yeh, except class Socket extends EventEmitter makes no logical sense.
It's like class Goat extends Desk
8
 
@DaveRandom class Socket { public function __construct(EventEmitter $e) { } }
and lol
 
@Jimbo ...but Socket needs to expose public on() and off() methods (and possibly a public trigger() as well
So then you end up forwarding calls to an internal object somehow, which IMO is worse for code clarity.
 
Still don't need traits though, do it other way round or something, I don't understand the problem properly
 
moment, I may have a concrete example somewhere
 
@DaveRandom I just spent far too long looking for a desk made of goat.
now how many of you are looking too...
 
9:59 AM
Got bored of googling "goat on desk" while sat in meeting
 
@Jimbo bitbucket.org/DaveRandom/pq-async/src/… - a sizable chunk of code used in a few places, that by it's very nature needs to be available internally and needs to be directly exposed.
It's worth noting that I will be heavily refactoring that code to mostly promises and amphp-friendly generator stuff, but it's likely that code will remain. There are certain things in the context of that lib (e.g. server-side connection drops, listener notifications etc) that can only be registered as event listeners because they are not part of a specific routine.
That said I have yet to fully discuss this with Mr Lowrey
 
So this is something that holds objects, and other objects put stuff into the holder, right?
 
It's a thing that manages callbacks for events. It's really just internal wiring for that style of evented API.
 
hello every one
 
10:12 AM
But on() and off() need to be public methods on the trait consumer
 
 select * from pages where text LIKE CONVERT(_utf8 \'$dt\' USING latin1) COLLATE latin1_general_ci     i want to search hindi text from mysql
please help
 
if (null !== $retVal = $callback(...$args, ...[$this, $id])) { wow I write some horrible come sometimes :-P
@YatishRaj As a general rule it's easier to help when you ask specific questions...
 
What's the word you do something that supports a bad idea
It doesn't propagate it, it ...something elses.. it
 
perpetuate?
 
kind of, that'll do
ty
 
10:18 AM
> Start writing awesome code in lib/Application as this isn't version controlled
@Jimbo what do you mean? ^^
 
Meaning that when you put stuff in that directory it won't screw with the git tree
 
@iroegbu Aha, so when you run the composer command, it creates lib/Application for you that isn't under version control, where you put all your own code
 
i.e. git status will indicate no changes
 
Thanks to @marcio for that one
So, if I update the code, it won't touch any of yours
when you do a composer update
 
oh... That's good
you have built another framework -_-
 
10:20 AM
MOAR FRAMEWORKS!!!!!!!
 
Nope, it's just Silex + Auryn
I don't keep the framework up-to-date, just the links between Silex + Auryn as Silex evolves ;)
Also, I put it on reddit, not sure I should have
 
Pretty sure that applies to literally everything posted on reddit ever
 
@DaveRandom undefined namespace for some autoloaded external classes
fix it fix it fix it fix it fix it fix it fix it
 
@PeeHaa Meaning some classes that are outside the project and that PHP storm doesn't know about?
 
Yes
 
10:26 AM
Bottom of project tree -> External libraries -> Configure include paths
 
@iroegbu Have you given it a try anyway?
If you have a bit of time, let me know what you think
 
not yet... I will though
 
@DaveRandom ty <3
 
@PeeHaa Y U NO COMPOSER?!?!?!?
 
get him!
 
10:30 AM
Just got my box of strawbs
 
@NikiC I think showing opcode offset in opcode dump would be much more helpful (instead of addresses) … because jumps? I'm currently at 107 chars… adding the offset would add another 6 chars … Can you live with 113 chars?
 
any open source workflow components y'all can recommend? I'm eyeing ezc/zeta's but that project looks pretty dead
 
@PaulCrovella "workflow components"?
 
@DaveRandom wow from the groupon?
 
@SecondRikudo "component" as in "reusable package"... A project I'm kicking around is starting to look like it could benefit from a workflow engine
 
10:38 AM
@DaveRandom Why would I?
It's an internal library
I gain nothing by composering the thing
 
@PeeHaa How do you provision it to live? git clone?
@Fabor yeh, apparently they got delivered like 2 weeks ago and the girl on reception forgot to give me the box *shakes fist*
 
@DaveRandom deploy.sh :)
 
Delivery was longer than what would be my consumption time.
Especially for strawbs.
You eat a few and there's sticky bits left in your teeth... and for a few minutes that's okay, you enjoyed the taste and cleaned the remainder, but then you're left with an empty feeling that can only be filled by the delicious taste of another strawb... the cycle begins.
 
10:54 AM
@PeeHaa I just prefer having the version specs for deps in composer.json, but since what I really prefer is having them all in one place then I suppose a shell script is just as good
 
@rdlowrey Apparently alias() should be bind(), opinions? Get involved in this lad, it's your injector too >:P
 
@NikiC okay… now you should be able to use it :-D
 
It's lunch time, so let me present donuts
 
11:11 AM
@Jimbo Describe alias()
What does it do?
 
See I can answer that swinging the answer toward alias and not bind :P but
When the injector encounters a non-concrete object, it looks up it's concrete alias from a mapping table and passes that in instead
> used to indicate that a named person is also known or more familiar under another specified name.
or... "used to indicate that an abstract object is also known or more familiar under another specified object name (concrete)"
 
@Jimbo it can alias one class to another class, not just interface to class.
 
@Jimbo That would indeed be bind.
 
^ That's from dictionary
 
Alias would be to call a concrete class as another thing, usually to make typing easier.
So you can call "ClientPropertiesResultSetGetter" as "CPRGetter" to make it shorter
But telling the injector which concrete implementation to use is not an alias.
 
11:14 AM
2 mins ago, by Danack
@Jimbo it can alias one class to another class, not just interface to class.
 
Not sure it's "bind" either, but it's definitely not an alias.
@Danack That could be said to be "alias", yes. But now I sense a design smell.
Aliasing one class to another conceptually isn't the same as defining which concrete implementation goes for an interface.
 
Hmmm
@Danack I've never actually alias'd from one concrete to another but that's useful. Also - we didn't finish our bloody conversation the other day :P
 
"When you see something asking for an X give it an instance of Y." ... Perhaps substitute is a more applicable verb? In any case I think alias is closer than bind.
 
$injector->indenture('goat', 'desk');
 
After thinking for 5 minutes - alias is correct. It means "when Auryn sees a request for this type, use this other type instead." The fact that it's primarily used for interfaces -> concrete implementations, is an implementation detail, not an inherent property of the method.
 
11:24 AM
Yeah, I don't think I'm defending myself very well in that thread, I need more TEA
Very helpful feedback so far, especially examples, though
 
You shouldn't even be aware whether a dependency is actually a class or an interface.
Same, except coffee.
 
@NikiC btw. you also can dump the opcodes [when phpdbg is loaded] via a simple call phpdbg_print_opcodes("function_name") in gdb
 
Hi guys
just a quick question .. why we are able to change http_referer key in server variable
$_SERVER['http_referer'];
Its server setting right?
we must not allow to change that..
 
hello there! I had a feeling @Jimbo you might be here discussing Auryn stuff ;)
Regarding alias/bind, I had the same naming in PHP-DI, I think alias makes sense from a "injector developer" POV, but not so much to users
 
@MatthieuNapoli What's up PHP DI guy (right) :D I remember your face
 
11:33 AM
bind is maybe clearer for users, even though it's less "exact", what do you think?
 
@John it comes from the user agent, the server just passes it along to php
 
@MatthieuNapoli bind just reminds me of jQuery but I agree. Although I don't want to go along with "what the user is likely to think is best", see ContainerInterop, for example
 
@Jimbo heh I understand :)
 
We're just talking a public api method name though, it's not a huge issue really is it
 
@Jimbo you are asking someone that could spend weeks not implementing something because I am not sure of the name…
 
11:39 AM
@MatthieuNapoli Meh, I'm not even sure of my own name.
 
lol
@MatthieuNapoli Are you of the opinion that a container and an injector are the same thing?
 
@Jimbo yep
 
@MatthieuNapoli If you remove the ability to store objects from it though, it can't be a container any more (as a container holds things), so this must show some sort of difference?
 
@Jimbo mmh probably I guess, but what would be the point?
 
11:44 AM
It was the only thing I could think of to show how I think they're different things lol
Crap, I need some good reasons why they're different. I had some, I've forgotten, and I've put forward a talk calling containers a "misnomer" in the US
I think calling them containers is a bad thing, because it influences the use of it towards a registry / service locator
Because containers hold objects, and you pull things out of them
Where as an "injector" means you'll be using it in the bootstrap phase, and that's it
 
37 mins ago, by Danack
@Jimbo it can alias one class to another class, not just interface to class.
 
From wikipedia: "the injector object, which is responsible for injecting the service into the client. The injector object may also be referred to as an assembler, provider, container, factory, or spring." But! there's a "[citation needed]" tag right after that sentence so I guess it's just up to interpretation :p In the end I think what matters the most is that people use the container/injector correctly (or if they don't, they know why).
E.g. I could be using Auryn all wrong as a service locator (in controllers/services) but I also could be building a decoupled application using Pimple. It would be probably easier to write better code with Auryn though, but still… it's the usage that matters
 
I think technically it can also alias one interface to another, but that would be weird.
 
@Jimbo Regarding the naming I cannot argue otherwise… The name "container" is clearly misleading. At best it's a container for the framework, but it shouldn't be for the user.
 
Like pimple - but that's for the framework and the user
Agreed
 
11:51 AM
That's also why I think ContainerInterface is okayish for container-interop, because it's meant to be consumed by frameworks, not users
 
The containers are used to build the framework and also by the user, though
 
yes but the interface is consumed by the framework. The users shouldn't call the container/injector, so they shouldn't consume/care about the interface
 
@MatthieuNapoli The users do call it though. Look at symfony. Type hint for the container, use $container->get('service')
It's all over the place
 
But that's only because they're using it as a service locator...
 
@Jimbo ah yes absolutely, I was just talking about the containerinterface, it wouldn't/shouldn't be used for that
 
11:56 AM
Which is what the frameworks advocate (and I'm trying to avoid)
 
@Danack yes exactly
 
That's the word I was looking for... advocate
 
@Jimbo some frameworks yes. But clearly container-interop is not about that, that's what I wanted to make clear: the interface is not meant for users
 
@MatthieuNapoli Hmm, if it's not meant for users, surely the clever people would be more anal about naming it towards something that advocates (in many people's eyes) an anti-pattern?
 
@Jimbo yes it could, but honestly today I don't even care anymore.
It's like PSR-2 tabs vs spaces, I used to be #teamtabs, then a few weeks in using PSR-2 I just realized I don't care
if a PSR happen then yes it would be a good time to name it better
what's important is that the interface exists, there's discussion for example in Slim to use it (so any container could be used in Slim), which is pretty awesome
another example here: mnapoli.fr/silly/docs/dependency-injection.html a cli micro-framework in which you can push your own container
 
12:08 PM
$app->useContainer($container);
Sweet mother. Of god.
:D
 
@Jimbo what's the issue? (honest question :)
 
examines canonicals page @crypticツ Y U USE .forEach(function(el) { otherArray.push()?
 
@MatthieuNapoli Ah crap, I didn't realise it was yours :P I think the ability to call $app->getContainer() advocates the service locator
Also, nice examples on the page, I think that's what the one I created needs
 
@Jimbo ah good point, I think the getter exists mostly out of habit but it's just a detail, I could remove it
 
12:14 PM
I think using a DIC/injector as a service locator is required when your application has more than 1 layer....
 
@MatthieuNapoli Mine exists out of habit too in the new one, I need to change it as well don't worry :P
 
ah I remember actually, getContainer() is useful if you use a preconfigured version of the framework, e.g. mnapoli.fr/silly/docs/php-di.html That way you can get the container and set aliases and stuff
 
@Danack Like, a controller / model layer(s)?
 
@PeeHaa "Let's see how many downvotes we can get together" LOL
 
:P
 
12:16 PM
@Jimbo More like 'security layer that controls what things are available to the controllers', 'controller layer that builds information that is available to the rendering layer'.
 
Holy shit -27 in 2 minutes
 
Doesn't that give you that warm fuzzy community feeling? :D @Machavity
 
ya know what's really annoying: when a PM asks you to explain what caused a bug (even though he does not understand half of the words in the explanation)
 
@tereško You're getting annoyed by someone trying to do their job, even though they find it difficult?
 
It's still not close to the record but it'll do ;)
 
12:18 PM
@Danack Yeah I was looking at implementing Symfony SecurityVoters, they're a layer which controls what objects from the model layer a user has access to, do you mean like that?
 
@Jimbo Possibly. Though without looking, I usually disagree with the choice the Symfony people make around security....
It's clearer when thinking about the controller->rendering layer.
 
@PeeHaa To be fair I don't like this kind of behavior.
As in really don't like this kind of behavior.
 
@Danack Why would you need an SL there, though? You just DI the SecurityVoter or whatever thing you're talking about and ask it to make the decision
 
Instead you helping the user by explaining why their question isn't good, we gang up on him with a gazillion downvotes.
 
12:20 PM
@SecondRikudo Uhhhhm wasn't my comment?
 
@PeeHaa Don't play innocent, I'm sure you voted too :P
 
@SecondRikudo Please stop bossing people around.
 
I'm not blaming anyone, mind you
But then people get to meta and say that we're overly hostile, and they're kinda right
@Danack Did I tell anyone to not vote?
 
@SecondRikudo I drew 2 red lines with green ink:
 
Did I boss anyone around?
 
12:22 PM
 
@Ocramius Great, now add 5 more, and make sure they're all perpendicular.
 
Let me create another 7 dimentions and I will be back
 
@Ocramius o/
 
@Danack I am getting annoyed when I have to explain programming to people who attempt to unzip ODT files
 
> our example is just an obfuscated mechanism for having global vars, with all the drawbacks of global vars, plus the overhead of reimplementing global vars through a DI container.
I smell troll
:P
 
12:24 PM
@Jimbo I think it hinges on what you consider to be a part of the application. If your security layer is just part of some setup, then it could be done as part of the bootstrap layer through delegation. If security is an application in itself, then having it invoke the next layer by using the injector as a SL would be easier.
 
@Danack Why wouldn't they just DI the security application and run it's public API in their code? Looks like you're just talking about a library there
 
@SecondRikudo I once had a boss who found out that someone copied our website and put it up under their domain. When the President of the company found out about it his instructions to me were "Make sure nobody can ever copy our website again"
 
@Machavity Heh
 
@Machavity did you add one of those right click popup thingies?
 
@SecondRikudo I did, but not because of the comment.
 
12:27 PM
@Patrick I should have. I loved those back in the day. Making me click the stupid menu to view source
 
I downvoted because imo it deserves a downvote
 
@Jimbo You could have trusted and less trusted code in the same application. e.g. a bank where the highly trusted security team write the initial layer that accepts the request, and then passes it onto code written by not as trusted developers. It wouldn't be appropriate to assume that the 'not as trusted' developers are going to call the security library properly.
 
If the entire community is following me in the downvoting spree that is hardly my fault
 
@PeeHaa true. Which is why I said it's the behavior I hate. And not any particular user downvoting.
I feel like -5 has delivered the message very clearly, and also did its job pretty well already (that is, remove from front page)
 
@Danack If you provide them a simple API which they either use as you require and it works, or they mis-use and it throws exceptions all over the place, so you basically provide one entry point... that seems like a way around that? (tbh I've never been in such a situation so can't fairly think on this)
 
12:29 PM
More than that is just kicking OP when they're down. It literally doesn't do anything else.
 
@Ja͢ck Do you know whether there is any decent ios room here on SO?
 
@PeeHaa There's the chaosoverflow one which I think is the largest
But I wouldn't really call it "decent"
 
My simulator is being a dick :|
 
@Jimbo And if they don't call it at all? Or instead write their own version?
 
@PeeHaa your dick is in a simulator?
 
12:31 PM
@Danack Then their architect is to blame :P That's the same with anyones code
It's not our fault if people use Auryn as a service-locator, but we can do our best to stop it happening right
(lots and lots of docs and warnings)
 
@Ocramius Gives a whole new meaning to "unit testing"
 
@Ocramius Neh. Stupid ios simulator is failing hard on me :(
 
@JoeWatkins @NikiC We have a command until in phpdbg, which basically is next in gdb. I wonder whether I should rename it…?
 
@PeeHaa @DaveRandom can review my PR against canonicals.html? github.com/Room-11/Room-11.github.io/pull/21
 
user2620028
Hello PHP Room. I have a while loop that is short circuiting. How do i debug why it stops execution after 1 loop when the condition remains true for 4 loops?
 
12:44 PM
@JoeWatkins @NikiC sorry… misread…
 
@SecondRikudo That magical h is... strange
 
@HatterisMad Step through the code in PHPStorms debugger?
 
@PeeHaa Yeah, I reverted it.
 
user2620028
@Danack I have already stepped through the code, which is how i know that the while condition is still true when the loop stops.
 
@HatterisMad How does it stop execution?
 
12:48 PM
@PeeHaa what's up?
 
i.e. just terminate?
 
Amazon truly amazes me sometimes. Their customer records have some of the worst continuity
 
user2620028
the while statement only stops execution and resumes on with the rest of the code
 
user2620028
Which has to mean the condition is false
 
@Machavity they just need more ELB ;-)
 
user2620028
12:49 PM
It is a while on a database abstraction fetch
while ( $row = $DB->fetch() ) {
 
user2620028
However if you comment out the while and replace it with a non conditional loop then it has data for four fetch calls

var_dump( $row = $DB->fetch() );
var_dump( $row = $DB->fetch() );
var_dump( $row = $DB->fetch() );
var_dump( $row = $DB->fetch() );
 
user2620028
The code inside the while statement runs correctly, but only runs once.
 
@Ja͢ck Ever had the issue of the ios simulator only showing a nice and clean black screen?
I already tried resetting everything, but no dice
Basically this
 
@HatterisMad This is so going to be an error in your code. Can you post the whole while block somewhere?
 
@PeeHaa how does the cow say in Dutch
 
user2620028
12:56 PM
Yeah although the code inside the block calls many other methods.
 
moooo booo
:P
 
@PeeHaa Wow, you still have an iPhone 4 simulator? heh
 
user2620028
 
Did this happen to coincide with Xcode upgrade or sth?
 
@Ja͢ck Downgrade*
 
12:59 PM
@Danack Do you believe typehinting for a factory is "just an obfuscated service locator"?
 

« first day (1647 days earlier)      last day (3298 days later) »