Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1024265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:45:13+00:00 2026-05-16T11:45:13+00:00

I know that each programming language has certain guideline and styles. My question is

  • 0

I know that each programming language has certain guideline and styles. My question is about two languages that I write code in, that isn’t very popular or documented.

I know this topic is very broad, and everyone has their own unique way of doing things. What I would like is to hear advantage, disadvantages to certain styles.

In order to explore this question, imagine you are writing your own programming language, based on what you’ve experienced in the past, what is the best way of going about things?

Remember, there may be ups and downs based on specific languages, so think if this language didn’t matter. I am still fresh to programming, so I want to get the best habits of making my code readable and easy to follow.

There are so many topics to talk about, Ill get run by the basics:

Global Variables
Should they start with _ and be all capitalized?

Local Variables
Should they end with _ and be always be lowercased?

Variable Names
If I am defining something like an employee’s hourly wage, should it be EmployeeHourlyWage, Employee_Hourly_Wage?

Variable Types
Should you include the type of variable it is in the name, for example if I define $Hours and it has stored to it an integer, should I name it $Hour_INT so that I know when referring to it what type it is? Who knows, I might have an $Hours_FLOAT

Curly Brackets
Should the brackets line up with themselves such, the words, or what? Which one of these are best, preferred, most readable?

IF ($Test) {
 //code
} ELSE {
 //code
}

IF ($Test)
{
 //code
} ELSE {
 //code
}

IF ($Test)
{
 //code
}
ELSE
{
 //code
}

Alignment
I am constantly lining up variables and their values so I have an idea where what goes where. Is this bad practice:

// Assuming GUI(TOP, LEFT, HEIGHT, WIDTH)

GUI( 23    , 44   , 245   , 2323    )
GUI( 232   , 4332 , 22    , 6576    )
GUI( 21    , 4    , 1     , 5       )
GUI( 34235 , 13   , 31237 , 4564665 )

// OR

GUI(23,44,245,2323)
GUI(232,4332,22,6576)
GUI(21,4,1,5)
GUI(34235,13,31237,4564665)

Indenting
Why do some coders use spaces instead of tabs? is there a amount of spaces that is recommended?


I understand all of these could be questions in their own. I am not sure where to get all this knowledge from? I could spend hours just asking you what is the best method. I am sure the more college courses I take, the more it will be hit on (or not).

It would be awesome if there was a site where programmers of all kinds talk/discuss/rate/wiki the best methods and practices of programming. Would also help serve future languages to better suit the needs. I guess if there was one right way, there wouldn’t be so many variations in languages and style. I just would like to know your arguments and whats mainstream so my coworkers know what I am coding.

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:45:14+00:00Added an answer on May 16, 2026 at 11:45 am

    These are all really subjective issues – people mostly disagree about these sorts of things, and to be honest it really doesn’t matter that much! 🙂

    I’d say that the only thing that you can actually do wrong is to be inconsistent about whatever pattern you do use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application, I have several components that have to know about each other,
I know that this sort of question has been asked here before, but still
I'm working on PostgreSQL 8.4 in read committed mode. I know that for each
I know that using the following codes will make each column have unique values,
I know that I should setup the trap service on each devices seperately but
I don't know how to convert the type for name so that each element
In jquery when I run: $('li').each(some-function(i){}); The IDE seems to know that some-function is
I know that Phonegap has an event for back button, but it's only available
In any programming language, I can trace any function and know which function is
I know HTML is not a programming language and so applying Object Oriented principles

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.