Click here to Skip to main content
15,895,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordpress observations Pin
Tonasik20-Sep-15 6:53
Tonasik20-Sep-15 6:53 
GeneralRe: Wordpress observations Pin
Mike Hankey20-Sep-15 6:58
mveMike Hankey20-Sep-15 6:58 
QuestionQuestion on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 0:46
professionalSlacker00718-Sep-15 0:46 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Abhinav S18-Sep-15 0:52
Abhinav S18-Sep-15 0:52 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:17
professionalSlacker00718-Sep-15 1:17 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Ygnaiih21-Sep-15 6:49
professionalYgnaiih21-Sep-15 6:49 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
F-ES Sitecore18-Sep-15 0:54
professionalF-ES Sitecore18-Sep-15 0:54 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Nagy Vilmos18-Sep-15 0:56
professionalNagy Vilmos18-Sep-15 0:56 
The greater the scope, the bigger the name is as good a maxim as you'll get:
Java
class Stuff
{
  private int variable;

  void doSomething (int thing)
  {
    Random rnd = new Random();
    for (int i = 0; i< thing;i++)
    {
       int x = rnd.nextBoolean() ? i * 2 : -i;
       this.variable += x;
    }
  }

}

God that looks silly Smile | :)
veni bibi saltavi

GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:22
professionalSlacker00718-Sep-15 1:22 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Nagy Vilmos18-Sep-15 1:30
professionalNagy Vilmos18-Sep-15 1:30 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:58
professionalSlacker00718-Sep-15 1:58 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
gggustafson21-Sep-15 5:28
mvagggustafson21-Sep-15 5:28 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
archimboldo21-Sep-15 9:25
archimboldo21-Sep-15 9:25 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
gggustafson21-Sep-15 9:53
mvagggustafson21-Sep-15 9:53 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
archimboldo21-Sep-15 10:39
archimboldo21-Sep-15 10:39 
AnswerRe: Question on variable naming style (i.e. r versus random) PinPopular
Agent__00718-Sep-15 0:57
professionalAgent__00718-Sep-15 0:57 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:20
professionalSlacker00718-Sep-15 1:20 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
User 1013254618-Sep-15 2:22
User 1013254618-Sep-15 2:22 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
den2k8818-Sep-15 0:57
professionalden2k8818-Sep-15 0:57 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:24
professionalSlacker00718-Sep-15 1:24 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
den2k8818-Sep-15 2:04
professionalden2k8818-Sep-15 2:04 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Member 1070767721-Sep-15 9:08
Member 1070767721-Sep-15 9:08 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
den2k8821-Sep-15 21:12
professionalden2k8821-Sep-15 21:12 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Eddy Vluggen18-Sep-15 1:10
professionalEddy Vluggen18-Sep-15 1:10 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:20
professionalSlacker00718-Sep-15 1:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.