Conversation started Nov 28, 2013 at 19:35.
Nov 28, 2013 19:35
^ o ^ John
are the streets in your city like that too?
man I'd love to live there
@Icy I've never messed around with PHP before. Contributing to my first OS project :o and it is addicting.
I can see something like that down Stephen Ave in Calgary, but right now it's pretty dry
And Stephen Ave is much wider
can't wait to get that much snow here
I'd totally contribute to open source projects, if I used any that I had significant problems with...
Nov 28, 2013 19:36
I'll totally look at it then go back to WoW
actually monogame might be a good one.
but I'm also too lazy. vOv
@IcyDefiance I don't really use it it's just a chance to get to know a new technology
Right now the project suffers from two things
Lack of Documentation
lack of being supergiant monogame?
and the developers reason for this is that he made it in a week(hackathon style) and he doesn't have time to comment it out
It's kind of irritating because he knows the code base better than anyone. It took me like two hours to wrap my head around this one php script he had.
There was only one comment in there.
bah, I introduced a bug in arx libertatis and I need to fix it
but I had so little time on my hands I couldn't even ars ignis :\
Nov 28, 2013 19:38
The second thing it suffers from is the error handling.
He uses die(); for every error.
every error as in...
even user caused errors?
^
Like for example
I have a rule of thumb I follow
if PHP_SAFE_MODE is enabled it will interfere with the creation of directories on the server
for anything the user is able to cause, use exceptions
for anything else it's the programmer's fault and assertions are in order
Nov 28, 2013 19:40
so he just kills the webpage and leaves a semi-helpful message
and I'm like. Wot.
if you messed something up, let the program fail fast
@Grey that sounds like a programmer error
and killing it is a good idea
@AlexM. because he couldn't think of an alternative.
@AlexM. No it's a bad idea, because the user will be "WTF'ing"
it shouldn't have been released to the user in that state
@AlexM. Well it did.
and in any case, it's a bug
and you can't catch bugs like you catch exceptions
Nov 28, 2013 19:42
Hoping I can fix it. There is a workaround.
either way, I'm sorry, but you're kinda wrong :\
@AlexM. k
@AlexM. It's not a bug
It is an exception.
Jon
Jon
So I wrote in the a check to see if I can move, before a direction change is made
And it seems to work pretty good
no it's not, it's an error
False.
black bear.
"Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional events requiring special processing – often changing the normal flow of program execution."
Nov 28, 2013 19:44
22
Q: What is difference between Errors and Exceptions?

hiren gamit Possible Duplicate: Differences betweeen Exception and Error How can I differentiate between Errors and Exceptions in Java?

Right. And in this case it should try to catch it :)
So EXCEPTION.
I am sorry, but there is no way for the user to cause the behavior
Yes
There is.
how can the user override some setting in the PHP installation
php.ini
some servers allow you to, some don't.
Nov 28, 2013 19:45
don't you need server access?
most paid servers allow you access to php.ini
even shared hosting
mine does
erm, okay
let me make this idiot friendly
how can the end user, who is using a browser, override some setting in the PHP installation.
heuaiaeuihaheui
@AlexM. php.ini
well, most of the time you do amaze me with your amazing work
but every now and then you drop these stuffs around
Nov 28, 2013 19:46
I get what's going on now. You're defining terms differently.
@Icy it's not my fault. Alex has screwy def's
!!!
Grey's defining "end user" as the programmer who will be using the php script in development here, which is probably the right way to look at it.
@Grey please change the php.ini used by a PHP-based forum of your choice
like, PHPBB
Alex is defining end user as the person actually viewing the web page in the browser once the product is released.
find a website running that forum
and change the php.ini on the server
Nov 28, 2013 19:48
@AlexM. I can't.
of course you can't
this script is meant to be implemented by other developers, right?
the end user cannot cause that behavior
meaning those other developers are the end user.
@IcyDefiance Person who has access to the server(or owns it)
Nov 28, 2013 19:48
therefore it's an error, and an error caused by the programmer
@AlexM. No it's not an error
EXCEPTION. Goddamit
(a programmer using a script is an end user for that script btw)
@Grey yeah, so it's meant to be used in other websites, not being made specifically for one website.
@AlexM. that's what I've been going on about for the last 2 minutes. -.-
@Grey I'm done arguing with you
feel free to
@AlexM. No argue with me more.
gets flame thrower
Nov 28, 2013 19:50
try { runApp(); } catch (Exception e) { Print("A problem occured."); }
because it makes sense
@AlexM. in this case, your points are correct, but your premise is wrong. Grey's right here.
just like when I installed Joomla and it told me it needed php 4.3.something. if it just crashed hard, I would've been pissed.
that's because I am the end user for them.
 
Conversation ended Nov 28, 2013 at 19:51.