Re: [OT] programming style or mental process ?

2021-04-04 Thread tomcat/perl
On 05.04.2021 00:21, Zala Pierre GOUPIL wrote: In your case, with a function call, this wouldn't make a difference "if(request.getCharacterEncoding() = null)" would be illegal syntax as well, but "if(someObject = null)" is perfectly legal, but doesn't express the author's intent clearly: Is it a

Re: [OT] programming style or mental process ?

2021-04-04 Thread Zala Pierre GOUPIL
> > > > In your case, with a function call, this wouldn't make a difference > > "if(request.getCharacterEncoding() = null)" would be illegal syntax as > > well, but "if(someObject = null)" is perfectly legal, but doesn't > > express the author's intent clearly: Is it a smart person who's taking a >

Re: [OT] programming style or mental process ?

2021-04-04 Thread tomcat/perl
On 04.04.2021 12:57, Olaf Kock wrote: Hi André On 04.04.21 12:23, André Warnier (tomcat/perl) wrote:   if (null == request.getCharacterEncoding()) { as opposed to   if (request.getCharacterEncoding() == null) { So why do (some) people write it the other way ? Is it purely a question of i

Re: [OT] programming style or mental process ?

2021-04-04 Thread Olaf Kock
Hi André On 04.04.21 12:23, André Warnier (tomcat/perl) wrote: > >   if (null == request.getCharacterEncoding()) { > > as opposed to > >   if (request.getCharacterEncoding() == null) { > > > So why do (some) people write it the other way ? > Is it purely a question of individual programming style

Re: [OT] programming style or mental process ?

2021-04-04 Thread Zero
On 4/4/21 12:23 PM, André Warnier (tomcat/perl) wrote: Hi. I have a question which may be totally off-topic for this list, but this has been puzzling me for a while and I figure that someone here may be able to provide some clue as to the answer, or at least some interesting ponts of view. I

[OT] programming style or mental process ?

2021-04-04 Thread tomcat/perl
Hi. I have a question which may be totally off-topic for this list, but this has been puzzling me for a while and I figure that someone here may be able to provide some clue as to the answer, or at least some interesting ponts of view. In various places (including on this list), I have seen mu