Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Removing of prefix "class", "abstract", "interface" Suggestions (http://www.mysidiaadoptables.com/forum/showthread.php?t=4675)

FounderSim 10-04-2014 07:49 PM

Removing of prefix "class", "abstract", "interface" Suggestions
 
I been programming for awhile now. Some of you know me from a few other sites.

I just finished my first mod for mysidia in about 10days ACP and player side for a friend. I ran into a few problems since I didnt have no damn error reporting on the site, but thats whole other story. I never used mysidia before.

Heres a few of my suggestions that bugged the hell out of me while trying to find stuff I needed for my mod.

All "classes", "interfaces" and "abstart" start with there coresponding name. I really see no use for this because they are placed in folder. I need to scroll threw 226 files/folders in the "class" directory while searching for a class I am pretty sure exists. Sometimes I know it exists, but I dont know what Class its extending or the method name/paramaters to call. I need to scroll and look carefully for the filename.

I for one would find it much simplier to just open up this class directory press "i", be somewhat near the "Item" or "Inventory" class, maybe have to scroll 10 files, instead of 100? If mysidia gets to popular. People will have hundreds of mods, thousands of class files. And a lot of scrolling.


I do have some other suggestions to the code itself to help developers/modders, but I will save that for another time.

IntoRain 10-04-2014 07:55 PM

Support for this. The scrolling through classes is a bit bothersome. If the name 'class' needs to be there, at least adding it to the end of the filename should help (AdoptClass.php instead of class_adopt.php)

Hall of Famer 10-05-2014 09:25 AM

Well they will be gone in Mys v1.4.0. The reason for such prefixes was that back in the old days we have both function and class files, so the prefixes functions_ and classes_ are used to distinguish them. In Mys v1.4.0, every php file is a class/object file, so theres no orphan function files, which eliminates the needs for this.

IntoRain 10-05-2014 05:35 PM

Awesome, thanks :D


All times are GMT -5. The time now is 01:17 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.