Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.physics > #609400 > unrolled thread

Loop(100)

Started byJeff-Relf.Me <@.>
First post2016-12-17 12:34 -0800
Last post2016-12-21 07:14 -0600
Articles 20 on this page of 59 — 14 participants

Back to article view | Back to sci.physics

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Loop(100) Jeff-Relf.Me <@.> - 2016-12-17 12:34 -0800
    Command Line jockies use plenty of aliases, no ? ! Jeff-Relf.Me <@.> - 2016-12-17 21:59 -0800
    Re: Loop(100) moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-19 17:20 +0000
      I don't worry about "optimizations", don't need to. Jeff-Relf.Me <@.> - 2016-12-19 10:56 -0800
        Re: I don't worry about "optimizations", don't need to. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 12:30 +0000
          Other people's code is hard to learn/modify. Jeff-Relf.Me <@.> - 2016-12-20 06:06 -0800
            Re: Other people's code is hard to learn/modify. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-20 15:31 +0100
              Re: Other people's code is hard to learn/modify. chrisv <chrisv@nospam.invalid> - 2016-12-20 09:04 -0600
                Re: Other people's code is hard to learn/modify. Double-A <double-a3@hush.com> - 2016-12-20 13:33 -0800
            Re: Other people's code is hard to learn/modify. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 15:06 +0000
              What The Fuck is wrong with your peers ? ! Jeff-Relf.Me <@.> - 2016-12-20 09:59 -0800
                Re: What The Fuck is wrong with your peers ? ! moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 23:22 +0000
                  I won, bigly. Jeff-Relf.Me <@.> - 2016-12-20 16:15 -0800
                    AutoFormatting hides the fingerprints. Jeff-Relf.Me <@.> - 2016-12-21 02:55 -0800
                      Re: AutoFormatting hides the fingerprints. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-21 14:33 +0100
                      Re: AutoFormatting hides the fingerprints. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-22 03:21 +0000
                        My code is dense, and hard to read, like the Washington Post. Jeff-Relf.Me <@.> - 2016-12-22 02:36 -0800
                          Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-22 21:22 +0000
                            Re: My code is dense, and hard to read, like the Washington Post. chrisv <chrisv@nospam.invalid> - 2016-12-23 07:54 -0600
                              Re: My code is dense, and hard to read, like the Washington Post. flatfish+++ <flatfish@linuxmail.org> - 2016-12-23 09:35 -0500
                                Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-23 16:21 +0000
                                  My code is dense, and hard to read, like the Washington Post. Jeff-Relf.Me <@.> - 2016-12-23 08:52 -0800
                                    Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-23 19:12 +0000
                                      Re: My code is dense, and hard to read, like the Washington Post. chrisv <chrisv@nospam.invalid> - 2016-12-23 13:27 -0600
                                        Re: My code is dense, and hard to read, like the Washington Post. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-23 20:56 +0100
                                          Re: My code is dense, and hard to read, like the Washington Post. Snit <usenet@gallopinginsanity.com> - 2016-12-23 13:32 -0700
                                            Re: My code is dense, and hard to read, like the Washington Post. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-23 22:40 +0100
                                              Re: My code is dense, and hard to read, like the Washington Post. Snit <usenet@gallopinginsanity.com> - 2016-12-23 15:19 -0700
                                              My C++ Coding Standards ( apologies to Bjarne Stroustrup ). Jeff-Relf.Me <@.> - 2016-12-23 17:06 -0800
                                                Re: My C++ Coding Standards ( apologies to Bjarne Stroustrup ). Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-24 10:40 +0100
                                          Re: My code is dense, and hard to read, like the Washington Post. jmfbahciv <See.above@aol.com> - 2016-12-24 14:04 +0000
                                  I explain each of the warnings I disable, and why. Jeff-Relf.Me <@.> - 2017-01-19 03:00 -0800
                                    Re: I explain each of the warnings I disable, and why. Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-01-19 12:09 +0100
                                    Re: I explain each of the warnings I disable, and why. moroney@world.std.spaamtrap.com (Michael Moroney) - 2017-01-20 04:29 +0000
                                      Re: I explain each of the warnings I disable, and why. chrisv <chrisv@nospam.invalid> - 2017-01-20 06:48 -0600
                                        Re: I explain each of the warnings I disable, and why. Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-01-20 16:52 +0100
                                It's fucking email ! ! Jeff-Relf.Me <@.> - 2017-01-19 02:53 -0800
                              Someday, if you're lucky, you'll know the freedoms I enjoy. Jeff-Relf.Me <@.> - 2016-12-23 08:05 -0800
                              Re: My code is dense, and hard to read, like the Washington Post. GreyCloud <mist@cumulus.com> - 2016-12-23 13:49 -0700
                            Whitespace and (borked) comments. Jeff-Relf.Me <@.> - 2017-01-19 02:24 -0800
                              Re: Whitespace and (borked) comments. Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-01-19 11:30 +0100
                                Re: Whitespace and (borked) comments. chrisv <chrisv@nospam.invalid> - 2017-01-19 07:29 -0600
                                Re: Whitespace and (borked) comments. Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-19 10:36 -0500
                                  Re: Whitespace and (borked) comments. Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-01-19 16:48 +0100
                              Re: Whitespace and (borked) comments. GreyCloud <mist@cumulus.com> - 2017-01-19 11:20 -0700
                                Re: Whitespace and (borked) comments. Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-19 14:49 -0500
                              Re: Whitespace and (borked) comments. moroney@world.std.spaamtrap.com (Michael Moroney) - 2017-01-20 04:26 +0000
                                About a hundred thousand people have used my code, last 24 years. Jeff-Relf.Me <@.> - 2017-01-19 20:57 -0800
                                Re: Whitespace and (borked) comments. jmfbahciv <See.above@aol.com> - 2017-01-20 13:39 +0000
                                  Re: Whitespace and (borked) comments. chrisv <chrisv@nospam.invalid> - 2017-01-20 07:46 -0600
                                    Re: Whitespace and (borked) comments. jmfbahciv <See.above@aol.com> - 2017-01-21 14:08 +0000
                                  Re: Whitespace and (borked) comments. Vir Campestris <vir.campestris@invalid.invalid> - 2017-01-20 22:02 +0000
                                    Re: Whitespace and (borked) comments. noTthaTguY <abu.kuanysh05@gmail.com> - 2017-01-20 18:31 -0800
                                    Re: Whitespace and (borked) comments. jmfbahciv <See.above@aol.com> - 2017-01-21 14:08 +0000
                                      Re: Whitespace and (borked) comments. Vir Campestris <vir.campestris@invalid.invalid> - 2017-01-22 17:58 +0000
                        Whenever/Wherever you spot a lot of whitespace and comments. Jeff-Relf.Me <@.> - 2017-01-19 02:18 -0800
                    Re: I won, bigly. Silver Slimer <.m@nsn.s> - 2016-12-21 09:09 -0500
                    Re: I won, bigly. benj <benj@nobody.net> - 2016-12-21 17:37 -0500
                  Re: What The Fuck is wrong with your peers ? ! chrisv <chrisv@nospam.invalid> - 2016-12-21 07:14 -0600

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#610151 — Re: My code is dense, and hard to read, like the Washington Post.

Frommoroney@world.std.spaamtrap.com (Michael Moroney)
Date2016-12-23 16:21 +0000
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<o3jiu8$v4p$2@pcls7.std.com>
In reply to#610149
flatfish+++ <flatfish@linuxmail.org> writes:

>On Fri, 23 Dec 2016 07:54:55 -0600, chrisv wrote:

>> Michael Moroney wrote:
>> 
>>> Jeff-Relf.Me <@.> writes:
>>>
>>>>I'll tell you ( yet again ) what I told them:
>>>
>>>>  My code is dense, and hard to read, like the Washington Post;
>>>>  sorry, but it's _not_ like an advert, or comic strip, 
>>>>  with lots of graphics, big fonts, color and WhiteSpace.
>> 
>> How ironic, from someone who posts HTML to USENET.

>Is that what he is posting?
>40Tude displays fonts so small I need a magnifying glass to read it.
>When I was playing with slrn the other day when I open his messages it
>asks if I want to process a MIME article.

>Weird stuff.

yeah, that's one of his obsessions, HTML to Usenet (usually with a fugly
font).

it's amusing he has to disable a zillion compiler warnings in his code.

He'd never make the cut here.

Too bad (for him), we may be doing some UTF-8 related work in a little
while.  (UTF-8 is another of Relfie's obsessions)
I may wind up getting some of it...

[toc] | [prev] | [next] | [standalone]


#610154 — My code is dense, and hard to read, like the Washington Post.

FromJeff-Relf.Me <@.>
Date2016-12-23 08:52 -0800
SubjectMy code is dense, and hard to read, like the Washington Post.
Message-ID<Jeff-Relf.Me@Dec.23--8.52A.Seattle.2016>
In reply to#610151
You ( Michael Moroney ) said I have to:
> disable a zillion compiler warnings

I turn on _all_ warnings, then I turn off
the "level 4" warnings that are _worse_ than useless
( they get in the way ).

> He'd never make the cut here.

You don't offer me anything worth taking, sorry.
I've got two jobs and plenty of money; I don't get fired.
I've held my current programming job ever since 1993.

> We/I may be doing some UTF-8 related work in a little while.

Welcome to the 21st century.

When I address someone who uses a terminal-based newsreader,
-- like slrn, tin or nn -- I (usually) post PlainText.
Same for ForteAgent and 40tudeDialog users.

When I address GoogleGroups and/or MozillaThunderBird users;
I post simple subset of "Text/HTM" because, otherwise,
a proportional font would be used, and WhiteSpace would be altered.

The "OCR A" font ( Optical Character Recognition ) is best.
Smarter newsreaders, including slrn, use other fonts too,
depending on the glyph.

Personally, I use "OCR A", "MS Mincho", "Segoe UI Symbol", 
"DejaVu LGC Sans Mono" and "nSimSun" -- all "Console" fonts, 
MonoSpaced ( some are double wide ).  Depends on the glyph.

[toc] | [prev] | [next] | [standalone]


#610167 — Re: My code is dense, and hard to read, like the Washington Post.

Frommoroney@world.std.spaamtrap.com (Michael Moroney)
Date2016-12-23 19:12 +0000
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<o3jsu7$he6$1@pcls7.std.com>
In reply to#610154
Jeff-Relf.Me <@.> writes:

>You ( Michael Moroney ) said I have to:
>> disable a zillion compiler warnings

>I turn on _all_ warnings, then I turn off
>the "level 4" warnings that are _worse_ than useless
>( they get in the way ).

Most of the time it means your code is mildly fsck'ed in some
way that the compiler figured out for you. You should fix or
remove the broken code.

>> He'd never make the cut here.

>You don't offer me anything worth taking, sorry.

I'm not trying to offer anything, just stating that you
simply couldn't make it here.  "Doesn't play well with others."

>When I address GoogleGroups and/or MozillaThunderBird users;
>I post simple subset of "Text/HTM" because, otherwise,
>a proportional font would be used, and WhiteSpace would be altered.

You don't know how they have their browser configured. Besides,
Google Groups is broken. The default for Usenet is fixed width
fonts, probably except for flowing text.

>The "OCR A" font ( Optical Character Recognition ) is best.

Fugly.  Why a font intended for computers instead of one for
humans?  Again, those who care configure their newsreader to
use the best font for them.  But nobody but you and the (now
quite rare) spammers use HTML on Usenet anyway.

[toc] | [prev] | [next] | [standalone]


#610171 — Re: My code is dense, and hard to read, like the Washington Post.

Fromchrisv <chrisv@nospam.invalid>
Date2016-12-23 13:27 -0600
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<mbuq5cpls71t5eoq0mqo32lspj1l3vjhsr@4ax.com>
In reply to#610167
Michael Moroney wrote:

> Jeff-Relf.Me <@.> writes:
>>
>>The "OCR A" font ( Optical Character Recognition ) is best.
>
>Fugly.  Why a font intended for computers instead of one for
>humans?

Because the kook fancies himself being "computer-like".  Like a
computer, he has no problem with code that is "dense and hard to
read".

-- 
"Peter the Klöwn and you both claimed that a 286 couldn't address more
than 1MB."  -  "Slimer", lying shamelessly

[toc] | [prev] | [next] | [standalone]


#610172 — Re: My code is dense, and hard to read, like the Washington Post.

FromPeter Köhlmann <peter-koehlmann@t-online.de>
Date2016-12-23 20:56 +0100
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<o3jveq$ll6$2@dont-email.me>
In reply to#610171
chrisv wrote:

> Michael Moroney wrote:
> 
>> Jeff-Relf.Me <@.> writes:
>>>
>>>The "OCR A" font ( Optical Character Recognition ) is best.
>>
>>Fugly.  Why a font intended for computers instead of one for
>>humans?
> 
> Because the kook fancies himself being "computer-like".  Like a
> computer, he has no problem with code that is "dense and hard to
> read".
> 

The only dense stuff here is the years old shit residing in Relfs head.
His "code" is ridiculous. It is an example how *not* to do it, in any 
circumstances

[toc] | [prev] | [next] | [standalone]


#610177 — Re: My code is dense, and hard to read, like the Washington Post.

FromSnit <usenet@gallopinginsanity.com>
Date2016-12-23 13:32 -0700
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<D482D7F6.85EDE%usenet@gallopinginsanity.com>
In reply to#610172
On 12/23/16, 12:56 PM, in article o3jveq$ll6$2@dont-email.me, "Peter
Köhlmann" <peter-koehlmann@t-online.de> wrote:

> chrisv wrote:
> 
>> Michael Moroney wrote:
>> 
>>> Jeff-Relf.Me <@.> writes:
>>>> 
>>>> The "OCR A" font ( Optical Character Recognition ) is best.
>>> 
>>> Fugly.  Why a font intended for computers instead of one for
>>> humans?
>> 
>> Because the kook fancies himself being "computer-like".  Like a
>> computer, he has no problem with code that is "dense and hard to
>> read".
>> 
> 
> The only dense stuff here is the years old shit residing in Relfs head.
> His "code" is ridiculous. It is an example how *not* to do it, in any
> circumstances

Would love for you to show how to do it right.



-- 
"When making pornography involves real abuse of real children ... that does
not excuse censorship. No matter how disgusting published works might be,
censorship is more disgusting." -- Richard Stallman

[toc] | [prev] | [next] | [standalone]


#610193 — Re: My code is dense, and hard to read, like the Washington Post.

FromPeter Köhlmann <peter-koehlmann@t-online.de>
Date2016-12-23 22:40 +0100
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<o3k5gr$c3c$1@dont-email.me>
In reply to#610177
The lying imbecile Snit Michael Glasser babbled:

> On 12/23/16, 12:56 PM, in article o3jveq$ll6$2@dont-email.me, "Peter
> Köhlmann" <peter-koehlmann@t-online.de> wrote:
> 
>> chrisv wrote:
>> 
>>> Michael Moroney wrote:
>>> 
>>>> Jeff-Relf.Me <@.> writes:
>>>>> 
>>>>> The "OCR A" font ( Optical Character Recognition ) is best.
>>>> 
>>>> Fugly.  Why a font intended for computers instead of one for
>>>> humans?
>>> 
>>> Because the kook fancies himself being "computer-like".  Like a
>>> computer, he has no problem with code that is "dense and hard to
>>> read".
>>> 
>> 
>> The only dense stuff here is the years old shit residing in Relfs head.
>> His "code" is ridiculous. It is an example how *not* to do it, in any
>> circumstances
> 
> Would love for you to show how to do it right.
> 

Actually, there are guidelines for that. Not that you would know anything 
about that, but those exist. For a reason: The code is better readable

https://isocpp.org/wiki/faq/coding-standards
https://google.github.io/styleguide/cppguide.html

Give some hints what to do and what to avoid. You should not look into it. 
You understand nothing

[toc] | [prev] | [next] | [standalone]


#610201 — Re: My code is dense, and hard to read, like the Washington Post.

FromSnit <usenet@gallopinginsanity.com>
Date2016-12-23 15:19 -0700
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<D482F0F8.85F48%usenet@gallopinginsanity.com>
In reply to#610193
On 12/23/16, 2:40 PM, in article o3k5gr$c3c$1@dont-email.me, "Peter
Köhlmann" <peter-koehlmann@t-online.de> wrote:

> The lying imbecile Snit Michael Glasser babbled:
> 
>> On 12/23/16, 12:56 PM, in article o3jveq$ll6$2@dont-email.me, "Peter
>> Köhlmann" <peter-koehlmann@t-online.de> wrote:
>> 
>>> chrisv wrote:
>>> 
>>>> Michael Moroney wrote:
>>>> 
>>>>> Jeff-Relf.Me <@.> writes:
>>>>>> 
>>>>>> The "OCR A" font ( Optical Character Recognition ) is best.
>>>>> 
>>>>> Fugly.  Why a font intended for computers instead of one for
>>>>> humans?
>>>> 
>>>> Because the kook fancies himself being "computer-like".  Like a
>>>> computer, he has no problem with code that is "dense and hard to
>>>> read".
>>>> 
>>> 
>>> The only dense stuff here is the years old shit residing in Relfs head.
>>> His "code" is ridiculous. It is an example how *not* to do it, in any
>>> circumstances
>> 
>> Would love for you to show how to do it right.
>> 
> 
> Actually, there are guidelines for that. Not that you would know anything
> about that, but those exist. For a reason: The code is better readable
> 
> https://isocpp.org/wiki/faq/coding-standards
> https://google.github.io/styleguide/cppguide.html
> 
> Give some hints what to do and what to avoid. You should not look into it.
> You understand nothing

Interesting at your level of understanding you would interpret my request as
one to point to coding standards. I can see that from someone who has no
clue what coding even means. I am always amazed at how lost you are. Anyway,
the idea was to have you show some of YOUR code... but you don't have any to
show. No big deal. 


-- 
"I started Linux as a desktop operating system. And it's the only area
where Linux hasn't completely taken over. That just annoys the hell out
of me." -- Linus Torvalds

[toc] | [prev] | [next] | [standalone]


#610246 — My C++ Coding Standards ( apologies to Bjarne Stroustrup ).

FromJeff-Relf.Me <@.>
Date2016-12-23 17:06 -0800
SubjectMy C++ Coding Standards ( apologies to Bjarne Stroustrup ).
Message-ID<Jeff-Relf.Me@Dec.23--5.06P.Seattle.2016>
In reply to#610193
My C++ Coding Standards ( apologies to Bjarne Stroustrup ):

1. If everything ( but the top node ) were local,
   then you'd be spending all your time traversing trees,
   like an ant, instead of doing real work.

   So use Global Variables/Functions early and often.
   This, the common way, is ambiguous:

     if ( HandleEvents(1) ) ...

   Instead, use globals (below), like this:

     WaitForClick = 1, HandleEvents();  if ( Click ) ...

   Globals:

     int WaitForClick, Click ;

     void HandleEvents() { MSG  Msg ;
       GetMsg:   PeekMessage( &Msg, 0, 0, 0, PM_REMOVE );
       Click = Msg.message == WM_LBUTTONDOWN ;
       //  Handle system events, like WM_NCACTIVATE...  Blah Blah.

       //  When WaitForClick == 1, Exit if-and-only-if there's a Click:
       if ( Click || !WaitForClick  ) { WaitForClick = 0 ;  return ;   }

       //  Draw Stuff... Blah Blah.
       goto GetMsg ;  }

2. InLine Conditionals ( Bool ? True() : False() ) are nice and concise.
   For example:

     inline  int  TheSmaller( int X, int Y ) { return X < Y ? X : Y ;  }

     #define  FlagTheNym   /*  'V' is for Visitor. */  \
        Nym.Trusted ? 'T' : Nym.Dropped ? 'D' : Nym.Kid ? 'K' : Nym.Adult ? 'A' : 'V'

3. Simplify Odd system calls, like this:

     wchar  aString[999];
     Str( aString, L"A 32 bit, unsigned Random Integer: %I64d", Rand32 );

     Globals:

       typedef wchar_t  wchar ;
       unsigned int  uiRand ;  
       #define  Rand32 ( rand_s( &uiRand ), uiRand )  //  Seeding is implicit.
       #define  Str  swprintf  //  Print to a Unicode string, "printf" style.

4. A variable's declared type isn't always appropriate; so Type Cast.

     #define  szStr  (int)wcslen  //  Return the length of a Unicode string.

     #define  Zero( X )  memset( & X, 0, sizeof X )  //  Implicit cast to (void*).

     Zero( aStruct );

5. Create fewer/larger functions.
   Put everything in a single, large .CPP file -- don't create .H files.

6. Local, ShortTerm variables are nice.  Like:

     wchar _T[999], *P = _T ;

     Loop(3) { _Loop(4) P += Str( P, L"( %d, %d )%s", J, JJ, J == eJ ? L"\n" :  L" " );  }

     printf( _T );

     Globals:

       #define   Loop( N )  int         eJ = ( N ) - 1, J = -1 ; while ( ++J <= eJ )
       #define  _Loop( N )  int JJ = J, eJ = ( N ) - 1, J = -1 ; while ( ++J <= eJ )
       #define  Str  swprintf
       typedef  wchar_t  wchar ;

     Output:

       ( 0, 0 ) ( 1, 0 ) ( 2, 0 ) ( 3, 0 )
       ( 0, 1 ) ( 1, 1 ) ( 2, 1 ) ( 3, 1 )
       ( 0, 2 ) ( 1, 2 ) ( 2, 2 ) ( 3, 2 )

See X.CPP in "Jeff-Relf.Me/X.ZIP". 

[toc] | [prev] | [next] | [standalone]


#610261 — Re: My C++ Coding Standards ( apologies to Bjarne Stroustrup ).

FromPeter Köhlmann <peter-koehlmann@t-online.de>
Date2016-12-24 10:40 +0100
SubjectRe: My C++ Coding Standards ( apologies to Bjarne Stroustrup ).
Message-ID<o3lfnv$lg9$1@dont-email.me>
In reply to#610246
 wrote:

> My C++ Coding Standards ( apologies to Bjarne Stroustrup ):
> 

Yes, we know. Shitty beyond belief

[toc] | [prev] | [next] | [standalone]


#610267 — Re: My code is dense, and hard to read, like the Washington Post.

Fromjmfbahciv <See.above@aol.com>
Date2016-12-24 14:04 +0000
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<PM000544680A6FE0AF@aca40c25.ipt.aol.com>
In reply to#610172
Peter Köhlmann wrote:
> chrisv wrote:
>
>> Michael Moroney wrote:
>>
>>> Jeff-Relf.Me <@.> writes:
>>>>
>>>>The "OCR A" font ( Optical Character Recognition ) is best.
>>>
>>>Fugly.  Why a font intended for computers instead of one for
>>>humans?
>>
>> Because the kook fancies himself being "computer-like".  Like a
>> computer, he has no problem with code that is "dense and hard to
>> read".
>>
>
> The only dense stuff here is the years old shit residing in Relfs head.
> His "code" is ridiculous. It is an example how *not* to do it, in any
> circumstances

Has the meaning of the term "dense" changed in the computing biz?

/BAH

[toc] | [prev] | [next] | [standalone]


#614049 — I explain each of the warnings I disable, and why.

FromJeff-Relf.Me <@.>
Date2017-01-19 03:00 -0800
SubjectI explain each of the warnings I disable, and why.
Message-ID<Jeff-Relf.Me@Jan.19--3.00A.Seattle.2017>
In reply to#610151
Speaking of me, Michael Moroney wrote:
> it's amusing he has to disable a zillion compiler warnings in his code.
> He'd never make the cut here.

Thank God for small favors, no ?

Here, I explain each of the warnings I disable, and why:

  http://Jeff-Relf.Me/C++CodingRules.HTM

[toc] | [prev] | [next] | [standalone]


#614050 — Re: I explain each of the warnings I disable, and why.

FromPeter Köhlmann <peter-koehlmann@t-online.de>
Date2017-01-19 12:09 +0100
SubjectRe: I explain each of the warnings I disable, and why.
Message-ID<o5q6n4$21u$1@dont-email.me>
In reply to#614049
 wrote:

> Speaking of me, Michael Moroney wrote:
>> it's amusing he has to disable a zillion compiler warnings in his code.
>> He'd never make the cut here.
> 
> Thank God for small favors, no ?
> 
> Here, I explain each of the warnings I disable, and why:
> 
>   http://Jeff-Relf.Me/C++CodingRules.HTM

No need to explain that you don't have any clue whatsoever about 
programming.
You don't, and it can easily be seen in the shittiest code known to mankind. 
Your code

[toc] | [prev] | [next] | [standalone]


#614233 — Re: I explain each of the warnings I disable, and why.

Frommoroney@world.std.spaamtrap.com (Michael Moroney)
Date2017-01-20 04:29 +0000
SubjectRe: I explain each of the warnings I disable, and why.
Message-ID<o5s3ng$405$2@pcls7.std.com>
In reply to#614049
Jeff-Relf.Me <@.> writes:

>Speaking of me, Michael Moroney wrote:
>> it's amusing he has to disable a zillion compiler warnings in his code.
>> He'd never make the cut here.

>Thank God for small favors, no ?

Yes. I would hate to have to maintain/improve/fix that mess of yours.
I get to modernize/improve/fix code from all kinds of people.

[toc] | [prev] | [next] | [standalone]


#614275 — Re: I explain each of the warnings I disable, and why.

Fromchrisv <chrisv@nospam.invalid>
Date2017-01-20 06:48 -0600
SubjectRe: I explain each of the warnings I disable, and why.
Message-ID<fh148cdahqk619il3a1u7n8qi2nm597j64@4ax.com>
In reply to#614233
Michael Moroney wrote:

> Jeff-Relf.Me <@.> writes:
>>
>> Michael Moroney wrote:
>>>
>>> it's amusing he has to disable a zillion compiler warnings in his code.
>>> He'd never make the cut here.
>>
>> Thank God for small favors, no ?
>
>Yes. I would hate to have to maintain/improve/fix that mess of yours.

I would tell the boss that there's no way.  I'd tell him that we would
have to "suck it up" and re-do it from scratch.

-- 
"What's wrong with it?"  -  "DFS", regarding Relf's use of a #pragma
to disable 17 different types of compiler warnings

[toc] | [prev] | [next] | [standalone]


#614297 — Re: I explain each of the warnings I disable, and why.

FromPeter Köhlmann <peter-koehlmann@t-online.de>
Date2017-01-20 16:52 +0100
SubjectRe: I explain each of the warnings I disable, and why.
Message-ID<o5tblg$6b1$2@dont-email.me>
In reply to#614275
chrisv wrote:

> Michael Moroney wrote:
> 
>> Jeff-Relf.Me <@.> writes:
>>>
>>> Michael Moroney wrote:
>>>>
>>>> it's amusing he has to disable a zillion compiler warnings in his code.
>>>> He'd never make the cut here.
>>>
>>> Thank God for small favors, no ?
>>
>>Yes. I would hate to have to maintain/improve/fix that mess of yours.
> 
> I would tell the boss that there's no way.  I'd tell him that we would
> have to "suck it up" and re-do it from scratch.
> 

Right. I would not support such shitty code even if paid good sums
I would tell them to scrap it and write it new

[toc] | [prev] | [next] | [standalone]


#614048 — It's fucking email ! !

FromJeff-Relf.Me <@.>
Date2017-01-19 02:53 -0800
SubjectIt's fucking email ! !
Message-ID<Jeff-Relf.Me@Jan.19--2.53A.Seattle.2017>
In reply to#610149
Speaking of my HTML, flatfish wrote:
> 40Tude displays fonts so small I need a magnifying glass to read it.
> I was playing with slrn the other day, when I open his messages it
> asks if I want to process a MIME article.  Weird stuff.

The big players, Google Groups, Outlook and Mozilla Thunderbird,
handle it just fine ( because it's fucking email ! ! ).

Variable Width Glyphs, with trashed whitespace,
are the defaults, usually, so I use <PRE> ( HTML ).

When addressing those who, like you, never left the 80's,
I use PlainText ( like this post ).

[toc] | [prev] | [next] | [standalone]


#610150 — Someday, if you're lucky, you'll know the freedoms I enjoy.

FromJeff-Relf.Me <@.>
Date2016-12-23 08:05 -0800
SubjectSomeday, if you're lucky, you'll know the freedoms I enjoy.
Message-ID<Jeff-Relf.Me@Dec.23--8.05A.Seattle.2016>
In reply to#610146
I have a 4K IPS arm-mounted monitor, swung over my bed;
so, unlike cell phone users, I enjoy 236 columns of text.
How I use the white space is up to _me_, and it varies.

"Michael Moroney and gang" aren't paying me -- couldn't pay me;
so they have no say in the matter.
Someday, if they're lucky, they'll know the freedoms I enjoy.

When/while debugging a problem area,
I might use a lot of white space... including comments;
othewise, not so much.

From X.CPP in "Jeff-Relf.Me/X.ZIP", here's some 
"random" (to you) code I wrote/modified today,
with the actual, unmodified WhiteSpace/LineLengths
( with some added comments ):

  float  DaysAgo, Oldest = 0 ; int  cnt_MIDs = Ls.PP - Ls.BB + 1 ;  LsA B_MIDs, E_MIDs ;
  E_MIDs = B_MIDs = ( LsA ) MallocTmp( rv = cnt_MIDs * szPtr );
  memmove( B_MIDs, Ls.BB, rv ); E_MIDs += cnt_MIDs ;
  Sort_MIDs_by_ASCII( B_MIDs, E_MIDs - 1 ), Sort_Posts_by_Recent( Ls.BB, Ls.PP );
  const int TooManyPerDay = 5, minPostingSpan = 7, mxAge = 32 ; 

  //  Expire old Posts.  Count how many times a nym used a "BadRig".
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;  NymT &Nym = *Msg.Nym, &Rig = *Msg.Rig, &Ser = *Msg.Ser, &Sbj = *Msg.Sbj ;
      if ( DaysAgo = Msg.DaysAgo, DaysAgo >= mxAge ) { Msg.Expired = Msg.Reddit = 1 ;  continue ;  }
      if ( Msg.ID = ++Nym.Cnt, Rig.Cnt++, Ser.Cnt++, Sbj.Cnt++, !Nym.hardRank && !Nym.Dropped ) Nym.CntBadRigs += Rig.Dropped || Ser.Dropped ;
      if ( DaysAgo > Oldest ) Oldest = DaysAgo ;   if ( DaysAgo < Nym.Newest ) Nym.Newest = DaysAgo ;  if ( DaysAgo > Nym.Oldest ) Nym.Oldest = DaysAgo ;
      if ( DaysAgo < Rig.Newest ) Rig.Newest = DaysAgo ;   if ( DaysAgo > Rig.Oldest ) Rig.Oldest = DaysAgo ;   if ( DaysAgo < Ser.Newest ) Ser.Newest = DaysAgo ;
      if ( DaysAgo > Ser.Oldest ) Ser.Oldest = DaysAgo ;   if ( DaysAgo < Sbj.Newest ) Sbj.Newest = DaysAgo ;   if ( DaysAgo > Sbj.Oldest ) Sbj.Oldest = DaysAgo ;  } }

  //  Expire old Nyms.  "Reddit Drop" (untrusted) nyms that _always_ use a "BadRig".
  { LoopXx( Nm, Nm ) { NymT &Nym = *P ;   if ( !Nym.Cnt ) { Nym.Expired = 1 ;  continue ;  }   Nym.Dropped |= Nym.CntBadRigs == Nym.Cnt ;  } }

  //  (Re)Build all "References:" lines ( using a binary search ).  Flag direct/indirect relpies to "(R)" nyms ( e.g. "JeffRelf(R)" ).
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;   if ( Msg.Expired ) continue ;   NymT &Nym = *Msg.Nym ;   Nym⁺mID_T  *pLX = &Msg.H.L0 ; int ReplyDepth = 0 ;
    { Loop( mxDepth ) { Nym⁺mID_T  &Parent_Nym⁺mID = *--pLX ;  if ( !Parent_Nym⁺mID.MID ) break ;
        LsA BB = B_MIDs, PP = BB, EE = E_MIDs ;  LsP  P, Parent = 0 ; int X ;
        Find:    if ( BB >= E_MIDs ) goto New ;
        PP = BB + ( EE - BB ) / 2, P = *PP, X = strCmp( P->H.L0.MID, Parent_Nym⁺mID.MID );
        if ( X > 0 ) { if ( BB = ++PP, BB > EE ) goto New ;  goto Find ;  }
        if ( X < 0 ) { if ( EE = --PP, EE < BB ) goto New ;  goto Find ;  }
        if ( Parent = P, !Parent_Nym⁺mID.Nym ) Parent_Nym⁺mID.Nym = Parent->Nym->Name ;
        New:    if ( Msg.Cat == Cat_Mid && ReplyDepth != cMe && gMeOrMine( Parent_Nym⁺mID  ) ) ReplyDepth = vMeOrMine ;  Msg.Elders[ Msg.cnt_Ances++ ] = Parent ;
        if ( !Msg.FromDisk && J < mxDepth - 1 && Parent && Parent->H.L1.MID ) pLX[-1] = Parent->H.L1 ;  } }

    if ( !Msg.Reddit && ReplyDepth ) Msg.ToMeOrDeepMine = 1, Msg.Cat = Cat_Top, Nym.Special = !Nym.Dropped ;  } }

  //  Flag/Count "Kids" and "Visitors/NymShifters".
  int cntDropped, cntKids, cntAdults, cntVisitors ;  cntDropped = cntKids = cntAdults = cntVisitors = 0 ;
  { LoopXx( Nm, Nm ) { NymT &Nym = *P ;   if ( Nym.Expired ) continue ;   Nym.Regular = Nym.Oldest - Nym.Newest >= minPostingSpan ;
      if ( Nym.PostsPerDay = Nym.Cnt / ( 1 + Nym.Oldest ), !Nym.hardRank && !Nym.Dropped ) !Nym.Regular ? ( Nym.Visitor = 1 ) : Nym.PostsPerDay <= TooManyPerDay ? ( Nym.Adult = 1 ) : ( Nym.Kid = 1 );
      cntDropped += Nym.Dropped, cntKids += Nym.Kid, Nym.Adult ? cntAdults++ : !Nym.Regular ? cntVisitors++ : 0 ;  } }

  //  Limit "Kids" and "Visitors/NymShifters" to their 5 most recent posts, last 24 hours.  "Reddit Drop".
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;   if ( Msg.Expired ) continue ;   NymT &Nym = *Msg.Nym ;
      if ( !Msg.Reddit && !Msg.ToMeOrDeepMine && !Nym.Special && ( Nym.Dropped || !Nym.Adult && ( Msg.DaysAgo >= 1 || Nym.cnt_unReads >= 5  ) ) ) Msg.Reddit = 1 ;
      Nym.Expired ? ( Msg.Expired = 1 ) : !Msg.Reddit ? Nym.cnt_unReads++ : ( Msg.Minimal = !Nym.Me || Msg.ID > 9 );  } }

[toc] | [prev] | [next] | [standalone]


#610181 — Re: My code is dense, and hard to read, like the Washington Post.

FromGreyCloud <mist@cumulus.com>
Date2016-12-23 13:49 -0700
SubjectRe: My code is dense, and hard to read, like the Washington Post.
Message-ID<o3k2iu$pm$1@dont-email.me>
In reply to#610146
On 12/23/16 06:54, chrisv wrote:
> Michael Moroney wrote:
>
>> Jeff-Relf.Me<@.>  writes:
>>
>>> I'll tell you ( yet again ) what I told them:
>>
>>>   My code is dense, and hard to read, like the Washington Post;
>>>   sorry, but it's _not_ like an advert, or comic strip,
>>>   with lots of graphics, big fonts, color and WhiteSpace.
>
> How ironic, from someone who posts HTML to USENET.
>
>>> I won the day; I retained control; I get paid -- They lost.
>
> You're a sociopath.

Says the pot.

>
>> Peer code review works very well here. Sometimes a bug gets
>> found the original author missed.  The maintainability/
>> legibility get checked if necessarily, since it is
>> expected that someday, someone else (perhaps one of them)
>> may have to maintain it.
>>
>> "Dense code" is for executable files, the output of compilers
>> and linkers.  Source code exists for humans as few humans
>> ever write in the machine language of the target computer,
>> humans use computer languages.
>>
>> Again, code for your own use or one-offs that aren't part
>> of the product can be anything, but professional coders
>> write with future maintainability in mind.
>
> He's had all this explained before.  You may as well be talking to a
> brick wall.
>

[toc] | [prev] | [next] | [standalone]


#614043 — Whitespace and (borked) comments.

FromJeff-Relf.Me <@.>
Date2017-01-19 02:24 -0800
SubjectWhitespace and (borked) comments.
Message-ID<Jeff-Relf.Me@Jan.19--2.24A.Seattle.2017>
In reply to#610066
Michael Moroney wrote:
> professional coders write with future maintainability in mind.

One doesn't buy a Ferrai becuse it's "maintainable".

Running the code, testing it,
is how one knows what's up, not whitespace and (borked) comments.

If whitespace and (borked) comments is what you need/like,
then add them yourself, later... _I don't want to see that crap.

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | sci.physics


csiph-web