• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

code standards for smilies?

 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a nagging suspicion that this might have been discussed a while back - but what the heck, it's MD.

If you're using smilies in an environment that, unlike JavaRanch, doesn't convert them (in other words a colon followed by a right paren doesn't turn into a yellow smiley face), how do you handle the situation when you want your smily inside a parenthetical clause?

Assume that "x)" is a smiley, what do you think of these?:

1 - What's the difference (wait for it x) ), between a duck?
2 - What's the difference (wait for it x)), between a duck?
3 - What's the difference [wait for it x)], between a duck?
4 - What's the difference (wait for it x), between a duck?
5 - What's the difference {wait for it x)}, between a duck?

Others?

(BTW, a well known wag recently commented "The baby Jesus cries when parens are unbalanced" )
[ February 22, 2008: Message edited by: Bert Bates ]
 
Ranch Hand
Posts: 376
Scala Monad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I usually go for option 1, but always with a feeling that something is not quite right
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the smiley actually contains a closing parenthesis -like :-) but unlike :-( - then I go for #4. Otherwise #1.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean  ?

option 1 for me.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a guy in my office who writes his smiles left-handed. For example"

(-;

this would eliminate the confusion when it comes at the end of a parenthetical:

What's the difference (wait for it (x ), between a duck?

however, it always throws me for a loop when i see it wherever it is.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I try to avoid that situation altogether, so I don't have a personal standard. I usually do either #1 or #3 when I need to.
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Option 2.

My logic is, why do we need extra space (or where it comes from) #1? Why to switch to angle bracket or curly braces #3 and #5? Where is closing parenthesis #4?

And why to think a simile is special. Let�s consider it text.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used to do option 1 but now I prefer not to repeat characters (and do option 4 ;)
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Option 1
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a frequent user of both smilies and parentheses, but I'd consider just dropping the smilie when they intersect. Otherwise I would most commonly use

6 - What's the difference (wait for it), x) between a duck?

To be fair I usually am in an environment that does convert smilies to a graphic when I do that. But I would still prefer to move the smilie away from whatever punctuation is confusing the issue.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
option 7

What's the difference -- wait for it -- between a duck?
 
Bert Bates
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I gotta say, in my book Michael scores with a big sideways leap
 
reply
    Bookmark Topic Watch Topic
  • New Topic