Discussion about tools.
#1

How do you guys feel about using tools? Tools such as missing bracket finders, auto script makers, and others. Do you think they teach you bad habits since you have the ability to easily create or fix something? Do you think they're the best thing in the world? What's your opinion on it?
Reply
#2

For my opinion. They create a little bit bad habits and little bit lazy.
Because, The tool do it for you.
Unlike the old times of SA-MP which there is only quite tools.
Reply
#3

We can say "yeah its a great think to reduce our load" but for some, coding is an "adrenaline rush" without relying on these tools a programmer can do his stuff with loads of fun! The machine ain't right every time. Don't forget that "Computer has 0 IQ, we(humans :P) are the most intelligent thing on the Earth, none can replace us."
Reply
#4

Depend on the tools you use. When I start the development of Scripting Machine, it was just for beginers, but then I thought: "Hey, this ain't just for them, it's faster to do some things with this app, let's make an application that save scripter time by reducing some easy but slow task, so he can focus his effort on important things". I've personaly think I didn't got that yet, but I'm trying to.

The point is, if by using a tool you save time, so you can spent that time by scripting something more difficult, or thinking new ideas, then that app is a very good app. Otherwise it's not that great. But this is just my opinion.
Reply
#5

Tools are for tools. If you want the job done properly, do it properly. Indentation is, and always will be; the best way to create and efficiently manage code. Auto script generators are just lazy, however, such things as mass converters etc. I think are very handy and useful tools for saving time and effort.
Reply
#6

I think it will be fine to compare such tools to the use of "pragma tabsize"; I mean, if you got some warnings about the indentation of your code, you should indent your code as needed, and not to use some definition to make the job easier.

As with bracket finder; you shouldn't have problems finding bracket if you write your code correctly. And even if you do have, it would be much better to find them yourself and fix the errors, so you'll have experience for the next time. If you use a tool to do anything for you - you haven't done a thing. We can create a tool that used to create gamemodes and script the way we want, without any coding. But how can we call ourself scripters if we're using that tool?
Reply
#7

Tools are good if they save time and don't promote bad practice.

I really don't get why people ever need to use a missing braces finder. If you add both braces before you put any code inside them you will never need to use such a tool.

pawn Code:
if(something == something_else)
{
}
Then put code in between the braces, extremely simple yet still many people have problems with this. I have always done this since i started coding, and never once in 4 years have i need a missing bracket finder.

Couple of tools i have used and recommend:

Sa-mp Script King Good reference for working offline.

X-Treme San Andreas Multiplayer Ultimate Visual Mapper Good for getting positions ect.
Reply
#8

Quote:
Originally Posted by iggy1
View Post
Tools are good if they save time and don't promote bad practice.

I really don't get why people ever need to use a missing braces finder. If you add both braces before you put any code inside them you will never need to use such a tool.

pawn Code:
if(something == something_else)
{
}
Then put code in between the braces, extremely simple yet still many people have problems with this. I have always done this since i started coding, and never once in 4 years have i need a missing bracket finder.

Couple of tools i have used and recommend:

Sa-mp Script King Good reference for working offline.

X-Treme San Andreas Multiplayer Ultimate Visual Mapper Good for getting positions ect.
There are also some IDEs that automatically add a closing brace and indent for you when you press enter.
Reply
#9

PAWNO has auto-completion too, and reads "native" declarations directly.

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
There are also some IDEs that automatically add a closing brace and indent for you when you press enter.
Notepad++ plugins! Frankly Notepad++ is the only tool I use, and I don't even have Slice's setup on it.
Reply
#10

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
PAWNO has auto-completion too, and reads "native" declarations directly.



Notepad++ plugins! Frankly Notepad++ is the only tool I use, and I don't even have Slice's setup on it.
It's not my only tool, due to school I got quite comfortable with Visual Studio, but I always prefer Notepad++ due to it's lightweight and flexibility.
Reply
#11

I must use things like phpStorm (PHP) and netbeans (Java) for school, but whenever I can I use Notepad++. As Y-Less pointed out, there's not much the editor can't do what the more sophisticated IDE's can when you install the right plugins (auto code indentation, compiling, code-completion, ...).
Reply
#12

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
PAWNO has auto-completion too, and reads "native" declarations directly.



Notepad++ plugins! Frankly Notepad++ is the only tool I use, and I don't even have Slice's setup on it.
Quote:
Originally Posted by playbox12
Посмотреть сообщение
It's not my only tool, due to school I got quite comfortable with Visual Studio, but I always prefer Notepad++ due to it's lightweight and flexibility.
Checkout Sublime Text 2, I've never used Visual Studio, but I've used Notepad++, and Sublime Text is tons better IMO.
Reply
#13

IMO most tools are just toys for beginners. Why would you need to generate some code lines if you know their syntax, and why would you need a tool to find missing stuff if you know your script.
The only tool i use is notepad++ and my api generator (though im using it rarely as im too lazy to update often )
Reply
#14

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
Checkout Sublime Text 2, I've never used Visual Studio, but I've used Notepad++, and Sublime Text is tons better IMO.
I tried it out but I much rather use Notepad++ I just find it to conform my style much better. I do like the interface though, it has some neat features and I can't say it's bad because I haven't really coded in it.
Reply
#15

I thought I'd always use Pawno as I just got used to it (though the tab to 4space bug really irritated me!)

But Patrik356b showed me Sublime Text, and I never looked back!

Neat demo right on the front page!

It's the best text editor I've ever used, I'd recommend it for anything! I still use Notepad++ a bit but I think this is far more useful.

It scans your document and saves each "word", you can define what denotes or separates words in the config (spaces, punctuation, brackets etc) then pops up with all those words when you start typing (in order of use) I thought that feature would eat up memory on large scripts but it seems fine!

You can also place multiple carets, so for instance if you have a line of checks like this:

pawn Код:
if(gVariable == something1)
if(gVariable == something2)
if(gVariable == something3)
if(gVariable == something4)
You can place one big caret over all the 'gVariable' and re-write it wither with CTRL+LMB or click and drag to select text with MMB (it's basically like box-select but with text!).
It's like Search and Replace only much much better and greatly improves workflow!
Reply
#16

@Southclaw: Damn it looks pretty good.
Reply
#17

I can say with 100% certainty that I have never missed a bracket. I got in to the good habit of doing this:

if()
{
}

Then I fill in the if statement, then code inside the brackets. Also good for functions inside functions:

if()

if(GetPVarInt() == 1 && IsPlayerAdmin())

Then fill it all in. (That example wasn't great but I can't think of a better one.

I don't think the use of tools is 'cheating', but I do think prevention is better than cure (fix).
Reply
#18

I never miss any bracket, because before writing the code i open and close the brackets, then I go back and write into them.
Code:
if(a)
Code:
if(a)
{
Code:
if(a)
{
}
Code:
if(a)
{
    b();
}
Reply
#19

I never miss any bracket, because before writing the code i open and close the brackets, then I go back and write into them.
Код:
if(a)
Код:
if(a)
{
Код:
if(a)
{
}
Код:
if(a)
{
    b();
}
EDIT:

Quote:
Originally Posted by MP2
Посмотреть сообщение
I can say with 100% certainty that I have never missed a bracket. I got in to the good habit of doing this:
[...]
LoL, I didn't read your comment. I do the same thing as you when coding
When I was a beginner I didn't that and it caused me a lot of errors, but I never used any fixer, I always found my errors by counting the brackets one by one

Quote:
Originally Posted by MP2
Посмотреть сообщение
I don't think the use of tools is 'cheating', but I do think prevention is better than cure (fix).
100% agree

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
The only tool i use is notepad++ and my api generator (though im using it rarely as im too lazy to update often )
Also I'm used to Notepad++, I deleted pawno from my PC xD.
Reply
#20

@[GF]Sasino97: Same thing I do every time when I going to script something. And I hate tools like phpDesigner that automatically put brackets xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)