If you do this you are fired

SOFTengCOMPelec

Platinum Member
May 9, 2013
2,417
75
91

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
And then soon re-instated, as they discover that you are the only person who can now maintain the code.

:'( + :sneaky: = :thumbsdown:

NOT

Don't worry, I'm sure programmers (especially young ones, who are mobile this and that, mad), WON'T see these as cute, and start using them. (End of sarcasm).

All kidding aside, they are just symbols like any other symbols, but... gah my eyes.
 

SOFTengCOMPelec

Platinum Member
May 9, 2013
2,417
75
91
All kidding aside, they are just symbols like any other symbols, but... gah my eyes.

There are so many crazies, just in the standard AZ..0..9, already, we don't need any more causes of bugs.

Whoever invented the AZ alphabet, and the 0..9 digits, made the following mistakes:

0 <> o <> O (digit zero, letter o, capital letter O).

Some fonts also make it difficult to tell i, 1, l and j apart. (i.e. l <> 1)

6 and 9, should NOT be 180 degrees rotatably the same.

There are probably other weaknesses, as well.
 

SOFTengCOMPelec

Platinum Member
May 9, 2013
2,417
75
91
It will make programming job interviews, much easier and quicker.

Applicant, which is the best/coolest, variable name ?

(1)

(2)

(3) :whiste:

(4) :$

(5) :twisted:

(6) All of the above

(7) What is a variable ?

(8) None of the above
 

SearchMaster

Diamond Member
Jun 6, 2002
7,792
114
106
I'll probably use (or at least try) Swift on an upcoming project. I wouldn't mind naming one my methods "poop symbol". We'll see.
 

Zodiark1593

Platinum Member
Oct 21, 2012
2,230
4
81
I doubt end users would care if you Include a good Poop or two in your code.

Also, it would make it a PITA for others to use your existing code, thus making software engineers more valuable.
 
Last edited:

SOFTengCOMPelec

Platinum Member
May 9, 2013
2,417
75
91
The Obfuscated C Code contest, would be able to have the most ridiculously unreadable set of (almost) flashing images, one can imagine.

http://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest

Code:
#include                                     <math.h>
#include                                   <sys/time.h>
#include                                   <X11/Xlib.h>
#include                                  <X11/keysym.h>
                                          double L ,o ,P
                                         ,_=dt,T,Z,D=1,d,
                                         s[999],E,h= 8,I,
                                         J,K,w[999],M,m,O
                                        ,n[999],j=33e-3,i=
                                        1E3,r,t, u,v ,W,S=
                                        74.5,l=221,X=7.26,
                                        a,B,A=32.2,c, F,H;
                                        int N,q, C, y,p,U;
                                       Window z; char f[52]
                                    ; GC k; main(){ Display*e=
 XOpenDisplay( 0); z=RootWindow(e,0); for (XSetForeground(e,k=XCreateGC (e,z,0,0),BlackPixel(e,0))
; scanf("%lf%lf%lf",y +n,w+y, y+s)+1; y ++); XSelectInput(e,z= XCreateSimpleWindow(e,z,0,0,400,400,
0,0,WhitePixel(e,0) ),KeyPressMask); for(XMapWindow(e,z); ; T=sin(O)){ struct timeval G={ 0,dt*1e6}
; K= cos(j); N=1e4; M+= H*_; Z=D*K; F+=_*P; r=E*K; W=cos( O); m=K*W; H=K*T; O+=D*_*F/ K+d/K*E*_; B=
sin(j); a=B*T*D-E*W; XClearWindow(e,z); t=T*E+ D*B*W; j+=d*_*D-_*F*E; P=W*E*B-T*D; for (o+=(I=D*W+E
*T*B,E*d/K *B+v+B/K*F*D)*_; p<y; ){ T=p[s]+i; E=c-p[w]; D=n[p]-L; K=D*m-B*T-H*E; if(p [n]+w[ p]+p[s
]== 0|K <fabs(W=T*r-I*E +D*P) |fabs(D=t *D+Z *T-a *E)> K)N=1e4; else{ q=W/K *4E2+2e2; C= 2E2+4e2/ K
 *D; N-1E4&& XDrawLine(e ,z,k,N ,U,q,C); N=q; U=C; } ++p; } L+=_* (X*t +P*M+m*l); T=X*X+ l*l+M *M;
  XDrawString(e,z,k ,20,380,f,17); D=v/l*15; i+=(B *l-M*r -X*Z)*_; for(; XPending(e); u *=CS!=N){
                                   XEvent z; XNextEvent(e ,&z);
                                       ++*((N=XLookupKeysym
                                         (&z.xkey,0))-IT?
                                         N-LT? UP-N?& E:&
                                         J:& u: &h); --*(
                                         DN -N? N-DT ?N==
                                         RT?&u: & W:&h:&J
                                          ); } m=15*F/l;
                                          c+=(I=M/ l,l*H
                                          +I*M+a*X)*_; H
                                          =A*r+v*X-F*l+(
                                          E=.1+X*4.9/l,t
                                          =T*m/32-I*T/24
                                           )/S; K=F*M+(
                                           h* 1e4/l-(T+
                                           E*5*T*E)/3e2
                                           )/S-X*d-B*A;
                                           a=2.63 /l*d;
                                           X+=( d*l-T/S
                                            *(.19*E +a
                                            *.64+J/1e3
                                            )-M* v +A*
                                            Z)*_; l +=
                                            K *_; W=d;
                                            sprintf(f,
                                            "%5d  %3d"
                                            "%7d",p =l
                                           /1.7,(C=9E3+
                              O*57.3)%0550,(int)i); d+=T*(.45-14/l*
                             X-a*130-J* .14)*_/125e2+F*_*v; P=(T*(47
                             *I-m* 52+E*94 *D-t*.38+u*.21*E) /1e2+W*
                             179*v)/2312; select(p=0,0,0,0,&G); v-=(
                              W*F-T*(.63*m-I*.086+m*E*19-D*25-.11*u
                               )/107e2)*_; D=cos(o); E=sin(o); } }
 

Red Squirrel

No Lifer
May 24, 2003
67,898
12,365
126
www.anyf.ca
Woah how does that work? They even have different colours, no way those are actual characters? What happens if you open that file with a hex editor or transmit it over a network? That looks more than just a text editor.

The C code obfuscation is pretty hilarious. :biggrin:
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,282
3,904
75
I doubt end users would care if you Include a good Poop or two in your code.

Also, it would make it a PITA for others to use your existing code, thus making software engineers more valuable.
Come to think of it, this could actually be useful for internationalizing source code. You could have libraries that map common keywords to matching symbols.

For instance, if JavaScript allowed this (which it doesn't ) you wouldn't say "document.cookie", you'd say "&#128240;.&#127850;". In whatever language, you could define the poop symbol as the equivalent of warn(), have the door symbol as exit(), and poop followed by the door as die().
 
Last edited:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,282
3,904
75
Nuts, it worked fine 'til I clicked Edit. Document.cookie should be &#55357;&#56761;.&#55356;&#57194;, and I'll try not to edit this one.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,448
10,117
126
Woah how does that work? They even have different colours, no way those are actual characters? What happens if you open that file with a hex editor or transmit it over a network? That looks more than just a text editor.

The C code obfuscation is pretty hilarious. :biggrin:

That reminds me of my early programming days on VAXen. I used a VT220 terminal, and it had certain escape codes. Rather than embed the escape sequences cleanly (programmatically) into my source code, I would just stick them embedded directly into the strings in the program, entering them from the terminal itself.

Sure caused the line printer to go spastic when it came to the end of the year and I tried to print out my source code!
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
The real trick is to use unicode characters that look like ASCII characters.
 

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
Hmm. TIL that c# allows greek and cyrillic letters in identifiers.

It is a bit selective, as it doesn't allow unicode dingbats; but it does allow right-to-left scripts and weird accented script characters.

The following seems to work fine.

Code:
        static void Main(string[] args) {

            string &#3585;&#3655;&#3655;&#3655;&#3655;&#3655;;
            float µ;  // this is the micro sign
            double &#956;; // this is the letter mu
            float &#64258;oat;
            double &#960; = 22.0 / 7;
            const int a&#1635; = 3; // Arabic-indic digits can be used, but like roman digits, not as the first character
            decimal c&#822;h&#823;a&#789;os&#802;;        
}
 
Last edited:

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Hmm. TIL that c# allows greek and cyrillic letters in identifiers.

It is a bit selective, as it doesn't allow unicode dingbats; but it does allow right-to-left scripts and weird accented script characters.

The following seems to work fine.

Code:
        static void Main(string[] args) {

            string &#3585;&#3655;&#3655;&#3655;&#3655;&#3655;;
            float µ;  // this is the micro sign
            double &#956;; // this is the letter mu
            float &#64258;oat;
            double &#960; = 22.0 / 7;
            const int a&#1635; = 3; // Arabic-indic digits can be used, but like roman digits, not as the first character
            decimal c&#822;h&#823;a&#789;os&#802;;        
}

Yes, for this you would also be fired.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,282
3,904
75
I'm going to start using µ and &#960;. Funny.

Code:
            float µ;  // this is the micro sign
            double &#956;; // this is the letter mu

Which one? Why do they have two anyway? And I can tell they're different because Firefox thinks the first is a misspelled word, but not the second.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |