Comments (5)
Or at least have meaningful package structure, like: ui.NewProject
, or core.Compiler
from haxe-studio.
@gamedevsam : the prefix "plugin" are for grouping. this way, Developer can choose to code in HaxeJS target, pure Javascript or both.
the package name (similar to android) are to reduce plugin duplication. by entering name to the plugin name, it (somewhat) become an unique plugin.
for the lister, it's my practice to include the event's name so that it can be easily traced to the origin. Although it's best to follow the best practice, it (event's name) can be anything.
hmm.. maybe i add a wrapper as it is redundant / repeatable code.
for folder structure, i would love to remove the unnecessary folder prefix (source/plugin/misterpah/* to source/* ). But, i also want to remain the above feature.
from haxe-studio.
+1 to Samuel
from haxe-studio.
@gamedevsam
the beauty of javascript/ECMAscript is you can assign class to a variable.
var prefix = plugin.misterpah.Compiler;
var prefix_str = "plugin.misterpah.Compiler";
Main.message.listen("plugin.misterpah.ProjectTree:compile_Hxml",prefix_str,function(){prefix.compile_to_target("HXML");});
it removes some of the redundancy.
and with the help of hs_event_dashboard()
( which never been told to anyone. sorry about that.. 😄 ) its simplified alot of things. all events registered with Main.message.broadcast
& Main.message.listen
will be there.
from haxe-studio.
as for name redundancy, i strongly believe that Haxe Studio will have a lot of 3rd-party (free/paid) plugin (at least 1 3rd-party plugin, from my future company). that if a very good API documentation available.
plugin.<developerName>.pluginName
prefix are much better when there's a lot of people expanding Haxe Studio. Plugin developer always have their own plugin-space where he/she doesn't have to worry about other plugin-space.
sample :
plugin.haxefoundation.Debugger
plugin.gamedevsam.HaxeFlixelConsole
plugin.jgranick.StarlingPack
plugin.jgranick.NME
plugin.haxenme.NME
plugin.misterpah.SwimmingFish
user can choose which plugin they want to use (some might be released as MIT licence, others are premium licence) . Some plugin might have a powerful function but with very complex UI, and some have limited function but super easy to use. some plugin, plugin.misterpah.SwimmingFish
might be useless for someone, but might be someone like it.
from haxe-studio.
Related Issues (20)
- How to open plugin project in Haxe Studio?
- increase font-size. decrease font-size. HOT 1
- Can't use mousewheel HOT 8
- new project target HOT 3
- Typing * restarts program on Mac HOT 2
- Unable to save with keyboard shortcut on Mac
- Mysterious red dot on Mac HOT 1
- Double line break annoyance
- Removing semicolon after parenthesis on Mac restarts program HOT 2
- Haxestudio closes/crashes everytime I create a function HOT 4
- HaxeStudio web site is not working. HOT 3
- The iIDE is damn ugly HOT 6
- Non-commercial use? HOT 1
- Close new project dialog when user clicks create button(if there are no errors) HOT 1
- When files closed code editor is still shown HOT 1
- haxelib distribution HOT 1
- auto include library crash haxe studio
- OSX HD name with space fail HOT 3
- RUNTIME is gone...? HOT 2
- Can't change build target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxe-studio.