Jump to content

Should I use define or array for my modular system?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
hi guys

i want create a modular system,
i need help for create better system

for language: use define or use array variables?

i need better solution

thank you so much

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Both are good.
But I prefer using a xml file. It's easier for sending to the translator/corrector.
But if you don't need that, array or define will do the same job

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
You can always put hard coded configuration (database credentials, access right levels, etc.) in definition for ease of use, it really depends what you are doing.

A definition cannot really be an "array", so a variable may be more useful dependent on what it holds.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users