-
Notifications
You must be signed in to change notification settings - Fork 56
Experience in Installation of Ariel Kolikant (Leonidas)
installing inteliJ still installing inteliJ... inteliJ demands a license, choosing to evaluate for free got 30 days to test Leonidas, let's go! adding the Leonidas plugin trying to start a new project but it is unhappy with my jdk's trying to find my JDK found it C:\Program Files\Java\jdk1.8.0_111\bin\java.exe opening a new project seems to be taking a while.
so far project is great! but InteliJ setup is not :D
installing spartanizer... restarting inteliJ this is taking about 5 minutes now :O
seems intuitive, I made stupid code and it said "OI stop that!"
the blue underline says Spartanize this, but there is nothing there to click to actually spartanize it. searching how to spartanize marked code. by selecting all code, going to the toolbar and clicking spartanize? that can't be right. looking for a better way
made simple exceptionally stupid code and think I found a problem, always true statements were not removed
looking at the toolbox controller, I am unsure what any of them do. LispLatElement? LogicalConstraintsTester? I don't understand any of this :O
found the playgroundg it out. found some problems and opeed issues.
now copying the code of some of my projects to spartanize it all
mmmm, took a project from software design having six pages with over three hundred lines each....no spartanization option was promted which is strange. trying a different project then
tried a different project with twelve pages of thousands of lines each. still nothig was marked by the spartanizer ( I guess I write pretty good code) going back to typing my own codes
other than removing the bracets from if statements, am still unable to create any code to be marked by the spartanizer (all of the tool)
turns out I was using an out of date plugin so....yeah trying to install the updated version
restarting inteliJ now
oh wow, this is much much better! everything here is clear now and explained, clear workd as expected this is actually really great.
DAY 2:
turning on EVERYTHING in the toolbox there is no way to go back to default configurations... opened an issue about it. now putting my software design homework in intelliJ to see how it is effected
ah hah! in the thousands of lines of code, it has found three things to spartanize, let's see how it goes. clicked analyze and it showed me some places to spartanize, however the tippers it suggested have meaningless names, and no extra info as is in the toolbox. this extra data should be added to the analyze options.
trying to build my own tipper now one that changes 1==1 to 2==2 reading help since it is very unclear I have absaloutly no idea what I just read. I just want the help button to tell me what I have to put in inorder to get what out. am unable to add working new tippers. looking at the user guid now, read it, it is much clearer, the help button should point to this wiki instead of where it pointed me. still seems like a lot of work, gonna try again now. unsuccessfull in doing what I wante, but am now copy pasting the given example.
it seems that I can't delete the tippers that I've added, only deselect them (which is wierd) and that I can't edit them in case I made a mistake, only deselect and make a new one (which is double wierd)
I copied the given example and it doesn't seem to work, I guess I have a typo but I don't have a way to fix this, only make a new tipper tried again, looked closely to everything, example still doesn't work, does not suggest to replace xxx=5 to xxx=50
ah I see the problem now. (after copying it very slowly and making sure that it is identical before pressing apply as there is no way to edit) I wrote int xxx = 50. and it didn't consider that to be an assignment (I guess maybe an initialization?) when I wrote: int xxx; xxx = 5;
then it suggested to change it to xxx=50;
should add the code in need of seeing the example to the use guide, for it to be clearer.
this is strange since I was pretty sure that: int xxx; xxx = 50;
isn't spartanized code as clearly int xxx = 50; would be less lines of code, yet it doesn't seem to be suggested here even though all the tippers are on.
it is not completely clear, now that I am looking deeper into it, what are the options to use in adding the tippers other than the ones in the language example. and considering that where you add the matcher and replacer, doesn't have ide support, you can't see the options. so other than just knowing what you can do, there is no way to take advantage of the add tipper feature. either a library is needed to all the options (like cpp or oracle have) to be linked from the language example. or have the place where you add the matcher and replacer code, have ide support for us to be able to code in it normally
I am realy unsure what the analyze file option is suppoused to help with; there is no explanations on the options, there is no way to deselect stuff I don't want from here, there is no way to make changes to anything. just look at the displayed options with names I can't understand. should both add the same info given in toolbox, and the option to deselect some of the changes that it analyzed that it can do (thus making this page usefull in a way)
overall, very impressive project, some user experience improvements are needed for users who delv deper into the advanced options but it performs it's tasks wonderfully for someone who just wants to spartanize the code, which I assume is 98% of the users. does it's most used tasks very well, fast and usefully.