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 8427025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:41:08+00:00 2026-06-10T04:41:08+00:00

Someone who’s just getting started in programming asked me about the advantage of different

  • 0

Someone who’s just getting started in programming asked me about the advantage of different approaches programming languages take.

For example, some allow the programmer to omit variable declarations and just use them (like PHP). Others require declaration but not necessarily with a type. And others require a full declaration of the variable (including its type).

So what’s the advantage of each approach? Why is it better to (not) declare a variable and/or its type? The ones that don’t require a type I believe allow for more efficiency for the programmer. You can just take a variable and use it rather than think about what type it may have at the moment of needing it. And potentially you can change its type later on.

But is there more to it than that?

  • 1 1 Answer
  • 0 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-06-10T04:41:10+00:00Added an answer on June 10, 2026 at 4:41 am

    What you are intesrted in knowing is a core distinction between programming languages. You are describing statically and dynamically typed languages. There are a huge number of resources on this. http://en.wikipedia.org/wiki/Type_system
    http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)

    THere is a lot more to it then what you described. Both have their advantages and disadvantages. Neither is better, but each one might excel at certain tasks.

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

Sidebar

Related Questions

This is a question-loaded post from someone who is just getting started with BB
I'm working with someone who's looking to get back into programming after several years
I was talking to someone who was new to low level languages, and manual
For someone who’s been happily programming in C# for quite some time now and
I'm someone who writes code just for fun and haven't really delved into it
I am trying out THIS .NET MS Chart control. Could someone who knows about
This is a newbie question from someone who doesn't know much about HTTP caching
This may be quite a basic question for someone who knows linear programming. In
As someone who has spent around 10 years programming web applications with Adobe's ColdFusion,
As someone who is just starting to learn the intricacies of computer debugging, for

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.