What is better
#2

In that specific example, both versions are equally horrible. Functions can have parameters. Use them.
Global variables are evil. Avoid whenever possible.
Reply


Messages In This Thread
What is better - by AntonioCroatia - 17.05.2015, 17:11
Re: What is better - by Vince - 17.05.2015, 17:37
Re: What is better - by icra - 18.05.2015, 04:02
Re: What is better - by EBook - 18.05.2015, 05:09
Re: What is better - by AntonioCroatia - 22.05.2015, 12:53
Re: What is better - by AntonioCroatia - 23.05.2015, 14:57
Re: What is better - by Ghazal - 23.05.2015, 14:59
Re: What is better - by SickAttack - 23.05.2015, 15:04
Re: What is better - by AntonioCroatia - 23.05.2015, 15:04
Re: What is better - by SickAttack - 23.05.2015, 15:14

Forum Jump:


Users browsing this thread: 2 Guest(s)