This is a discussion on file_exists does not work within the PHP Language forums, part of the PHP Programming Forums category; <comp.lang.php> <Rik> <Mon, 13 Aug 2007 16:00:17 +0200> <op....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
<comp.lang.php>
<Rik> <Mon, 13 Aug 2007 16:00:17 +0200> <op.twz3urr3qnv3q9@metallium> > > I dont recall asking you for your zen like wisdom on how i should or > > shouldnt write code. > > Neither did the OP ask for lousy coding practises. Several people allready > told him he should try the local filesystem, the only thing you added was > cumbersome code most of us would be ashamed to have in our scripts. What > was _your_ reasoning for posting this enlightened code? > I'm unaware of the newsgroup rules on CLP . In future - and before posting any more code snippets - i will stop to concider if the php code will pass or fail your rigorous vetting and validation procedures . |
|
|||
|
On Mon, 13 Aug 2007 16:25:26 +0200, Krustov <me@privacy.net> wrote:
> <comp.lang.php> > <Rik> > <Mon, 13 Aug 2007 16:00:17 +0200> > <op.twz3urr3qnv3q9@metallium> > >> > I dont recall asking you for your zen like wisdom on how i should or >> > shouldnt write code. >> >> Neither did the OP ask for lousy coding practises. Several people >> allready >> told him he should try the local filesystem, the only thing you added >> was >> cumbersome code most of us would be ashamed to have in our scripts. What >> was _your_ reasoning for posting this enlightened code? >> > > I'm unaware of the newsgroup rules on CLP . Common mistake: there are very little rules, but as it is internet, people tend to forget to use common sense... > In future - and before posting any more code snippets - i will stop to > concider if the php code will pass or fail your rigorous vetting and > validation procedures . By all means, continue posting code snippets, especially when you've got something _new_ to say. Usenet is a collaboration by nature. If I think it's flawed somewhere, I'm always happy to supply constructive critisism. Wether you indeed take it as constructive, or you have a to sensitive ego to see that is up to the reader. Feel free to enter into a _real_ discussion that doesn't start with 'up your arse', or killfile me if you cannot take it. -- Rik Wasmus |
|
|||
|
Krustov wrote:
> <comp.lang.php> > <Rik> > <Mon, 13 Aug 2007 16:00:17 +0200> > <op.twz3urr3qnv3q9@metallium> > >>> I dont recall asking you for your zen like wisdom on how i should or >>> shouldnt write code. >> Neither did the OP ask for lousy coding practises. Several people allready >> told him he should try the local filesystem, the only thing you added was >> cumbersome code most of us would be ashamed to have in our scripts. What >> was _your_ reasoning for posting this enlightened code? >> > > I'm unaware of the newsgroup rules on CLP . > > In future - and before posting any more code snippets - i will stop to > concider if the php code will pass or fail your rigorous vetting and > validation procedures . Rik is correct. When you post sample code, you should try to ensure it is a good example. Yours could have used a lot of improvement. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|||
|
<comp.lang.php>
<Rik> <Mon, 13 Aug 2007 16:36:30 +0200> <op.twz5i4ikqnv3q9@metallium> > Common mistake: there are very little rules, but as it is internet > No - its actually called usenet - and is merely a part of the internet . Usenet doesnt have any heirarcial command structure and everybody is equal with everybody having the same rights . That is apart from people like yourself who self appoint themselves as some sort of newsgroup arsehole who trys to dictate and decide what other users can and cant say on 'their' newsgroup . |
|
|||
|
<comp.lang.php>
<Jerry Stuckle> <Mon, 13 Aug 2007 10:58:22 -0400> <8ImdnYFtKYZP7F3bnZ2dnUVZ_szinZ2d@comcast.com> > Rik is correct. When you post sample code, you should try to ensure it > is a good example > Who decides what is good or bad on this newsgroup - you and rik ? . |
|
|||
|
On Mon, 13 Aug 2007 17:02:17 +0200, Krustov <me@privacy.net> wrote:
> <comp.lang.php> > <Rik> > <Mon, 13 Aug 2007 16:36:30 +0200> > <op.twz5i4ikqnv3q9@metallium> > >> Common mistake: there are very little rules, but as it is internet >> > > No - its actually called usenet - and is merely a part of the internet . And as usenet is part of internet, see my 'common sense' statement. > Usenet doesnt have any heirarcial command structure and everybody is > equal with everybody having the same rights . 'hierarchical', and people are encouraged to play nice. No rules does not mean no self-censorship, and it doesn't mean nothing can be criticized. If you can post code, which you can and may, I'm free to give my thoughts on them. I might be a bit short and to the point, without much regard for peoples feelings for their precious code, but none of my posts here are aimed directly at a person, they're all about the code. Especially in a topic opened by a starting PHP-user, good coding practices are something I consider important. Future colleagues will be very happy with it. > That is apart from people like yourself who self appoint themselves as > some sort of newsgroup arsehole who trys to dictate and decide what > other users can and cant say on 'their' newsgroup . I criticized your code, perfectly suitable in a PHP newsgroup. Don't post code if you're not prepared for citicism. I did _not_ challenge your right to post the code, I challenged to code itself, see the difference? If you don't agree, tell me why, on a coding level, your way should be preferred. I'm still open to a real conversation about that, I don't dictate anything, but I would appreciate it if a difference in opinion over code could be discussed without it getting personal. Then again, I have no illusions about this thread being about PHP anymore, f'upped to alt.flame -- Rik Wasmus |
|
|||
|
<comp.lang.php>
<Rik> <Mon, 13 Aug 2007 17:19:04 +0200> <op.twz7h2h8qnv3q9@metallium> > I criticized your code, perfectly suitable in a PHP newsgroup. Don't post > code if you're not prepared for citicism > Is that in the newsgroup charter - or did you judge and jury that particular rule yourself for your own use . Understandable i suppose if you concider yourself to be a god . |
|
|||
|
On Mon, 13 Aug 2007 17:27:57 +0200, Krustov <me@privacy.net> wrote:
> <comp.lang.php> > <Rik> > <Mon, 13 Aug 2007 17:19:04 +0200> > <op.twz7h2h8qnv3q9@metallium> > >> I criticized your code, perfectly suitable in a PHP newsgroup. Don't >> post >> code if you're not prepared for citicism >> > > Is that in the newsgroup charter - or did you judge and jury that > particular rule yourself for your own use . It is comp.lang.php isn't it? What would we talk about here if not PHP(-code)? > Understandable i suppose if you concider yourself to be a god . You keep accusing me of something I am not doing. You seem unable to discuss the very point this runaway thread started on, the cumbersome conditional statement. If anyone is to be accused of a god-complex it is you, who cannot take criticism. I've made mistakes in my PHP scripts in the past and undoubtly will in the future. When someone points out to me how my code could be better I'd rather not blame them. You have not given any reason why your construct would be better, and I doubt you will. So, this will be my last reply to you that's not PHP related. It has been fun, have a nice day. -- Rik Wasmus |
|
|||
|
<comp.lang.php>
<Rik> <Mon, 13 Aug 2007 17:37:20 +0200> <op.twz8citqqnv3q9@metallium> > You have not given any reason why your construct would be better > Wasnt aware i was obliged to explain myself to you for the heinous crime of posting a couple of lines of code . |
|
|||
|
Krustov wrote:
> <comp.lang.php> > <Jerry Stuckle> > <Mon, 13 Aug 2007 10:58:22 -0400> > <8ImdnYFtKYZP7F3bnZ2dnUVZ_szinZ2d@comcast.com> > >> Rik is correct. When you post sample code, you should try to ensure it >> is a good example >> > > Who decides what is good or bad on this newsgroup - you and rik ? . And a lot of other experienced programmers, yes. You post poor code, be prepared to have it criticized. And I agree with Rik - tell us WHY your code is better. It uses an unnecessary extra variable, multiple tests where one would do, and unnecessarily complicates the code. Why is it better? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |