HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why do people think that JASS is a Bad Thing?

01-18-2004, 11:38 PM#1
LegolasArcher
I dont see why something made with JASS is a bad thing. In many cases it will run faster, and allow you to do what you want faster, and with less memory leaks.
01-18-2004, 11:40 PM#2
weaaddar
Oh yeah Items are now sellable droppable in DT4:A...

Jass usage shouldn't be seen as a bad thing. I used Jass for convience on my part as it was the only way to set up objects and give me full usage of my arrays so I didn't have to have like a 100. Limiting of Items was just a side effect of the slot system of DT4:A. Jass also allowed me to make my own functions so I wouldn't have to have as much recursion. And most of the really difficult functions barely make any calls and almost all are just variable manipulation. I really can't stand using the Point and click method as it so slow to do anything.

Your system is quite limited only 4 types, and still sets your inventory down to a paltry 6 items. 3 of which you can only have one of at all. Atleast with my code you can carry old swords and what not to market or give it to a friend who is using a crudier weapon.
01-18-2004, 11:55 PM#3
LegolasArcher
The functions, globals, and destroy functions were what I was refering to with run faster and smoother (as you said less recursion)
01-19-2004, 12:09 AM#4
Xinlitik
Quote:
I dont see why something made with JASS is a bad thing.


Ahh you misunderstood why people say that. The majority of mapmakers cant do anything with JASS, with the exceptions of little fill-ins (me included), so if it is a JASS trigger, it's unusable to the majority of people. He's saying it's not made of JASS so anyone can use it. JASS is better 99% of the time IMO, with the exception of the extra work load of doing everything yourself and having to learn the language.
01-19-2004, 12:45 AM#5
weaaddar
I find anyone complaining the learning of the language garbage. if you know a C like programming language or pascal you can take a quick visit to the jass manual. The volumes of information there are EXTREMELY beneficial.

And you don't have to do everything yourself, thiers functions in blizzard.j that do alot of things that you may want to do, and thiers functions that others wrote like myself up at the jass vault.
01-19-2004, 12:54 AM#6
LegolasArcher
Sorry for offtopicness:

I was beginning C++ and have had lots of experiance with PHP (great backend IMO), and I never took to JASS. Than a couple of days ago I decided to give it another shot, and I finnally got used to the syntax (Im so used to ending lines with semi-colons, lol andincludeing functions in brackets). Now I just coded a function to take to units (one attacked the other) and generate a weighted random number to represent location damage ://// (its for my Solo Secret(as of now) Project).

If they had locals in GUI, Id probally never use JASS, but there so useful, and they dont clutter up your global list. The only Thing I hate is how one error can make you restart the WE sometimes.

My 2 cents
01-19-2004, 02:07 PM#7
Vexorian
* Splitted the thread so the discussion goes here and the sent map goes to the repository *

In fact, after a while of practice, JASS is easier than gui triggers, Gui can be a complete mess when you become good with them, with JASS you can make your maps smaller and faster, and also get rid of dumb things like memory leaks or the way WE converts conditions into huge functions
01-19-2004, 03:46 PM#8
Narwanza
if-then-else statements generated by the WE are just insane. It creates a function that returns boolean for the if, which is just plain stupid. Here is an example.

Easy Way:
Code:
if ( i == 24 ) then
    set j = 1
else
    set j = 2
endif

WE normal way

Code:
function Trg_Spell_Func001001 takes nothing returns boolean
        return ( i == 24 )
endfunction

if ( Trg_Spell_Func001001() ) then
    set j = 1
else
    set j = 2
endif

the top option is definitly less writing and you don't have to have a function for every if statement.
[edit] ack sry, that looks messy, WC3C doesn't like whitespace i guess. I did indent the things in my post but it didn't show up when i posted.

Lord Vexorian Says: That's the reason the [code] tag exists

[edit]thx vex, I knew about it but just forgot
01-19-2004, 04:54 PM#9
weaaddar
There is some minor explanation for that atleast in the case of conditions which expect to take boolexpr which only a function can return.
However if then else take booleans and boolexpr so it just seems retarded.
01-19-2004, 08:17 PM#10
Extrarius
Many people don't like JASS because they aren't programmers and thus don't think the way you need to think to program. That makes programming very difficult, and every little thing helps (including the godawful GUI).

Despite being a programmer, I didn't like JASS at first because the text editor built into WE isn't even as functional as notepad. One day I decided to learn it, so I made Hero Run (which you can get at http://psychosanity.com/gamestuff/ , but I can't post in the complete maps forum due to the rules there =-/ ) to mess around with various things. It got rather difficult using the WE editor, so I took some time off and spent several hours running common.j and blizzard.j through various regexes to make syntax files for CrimsonEditor. After that, it was pretty easy to code JASS (syntax highlighting and basix text editor functionality like undo/redo and tabbing really help a lot).
01-19-2004, 08:48 PM#11
COOLer
jass is at least 10x better then gui you can make your own class of data if you wanted to!