Hello. Today I was wondering how a hook system should work. If you dont know what a hook system its where you can 'hook' a function to the execution of another function. This would make it easier for developers to create plugin's and modifications.
Well I was creating some ideas on how you could possibly do it and I wanted to know if anyone else any ideas.
Idea 1 - Create a class named HookManager. This would class would have add_hook, run_hook, hook_exists, remove_hook.
Now when you create a function you would use global to get the hookmanager. Then at the topc of the function before anything starts add $hookmanager->run_hook("currFuncName", "before");
which will run all the functions for currFuncName before the function start.
Then at the end add $hookmanager->run_hook("currFuncName", "after");
Any other ideas?
|
1
on: July 09, 2009, 04:15:04 AM
|
||
| Started by coolhome - Last post by coolhome | ||
|
2
on: June 21, 2009, 06:54:09 AM
|
||
| Started by coolhome - Last post by robber | ||
|
I use Notepad++ since the layout options are pretty good and you can have your coding side by side and when you close the program down, it remembers what you had up, and will display the same layout, postions in the files and format options, so it makes it really easy to put down and pick up coding, as well as being able to save the layout options so that you can pull up different projects if you wanted too
|
||
|
3
on: June 15, 2009, 08:02:20 AM
|
||
| Started by coolhome - Last post by coolhome | ||
|
Hello! Ive tried all these IDE's and personally I think only two are good minus notepad. So im going to talk about why I like which ones.
Notepad Its on every window's pc. So I can use it everywhere however its just text. I like my code to be highlighted. Dreamweaver I used dreamweaver for coding a lot back in the day however the FTP support was kind of lame. Zend Studios 5.5 I used this a lot! Zend Studios 6.0 Doesn't even work on my computer. Just lags when I try to type. phpDesigner Lately ive been using phpDesigner. Its been working like a dream. It has FTP, highlights code, and so much more. Its just amazing. I would recommend this one. NetBeans I just tried this today. I love it. Its so quick and is like phpDesigner. However a set back is the auto completion you have to press ctr + space to show. Hopefully soon they will make it after a few letters typed it will show up. Eclipse PDT I thought was slow and the FTP was bad! Others: Zend Studio 7.0 Works a little better then 6 but still is crap. |
||
|
4
on: June 10, 2009, 01:09:37 AM
|
||
| Started by coolhome - Last post by coolhome | ||
|
Hello everyone! Whats LOLCode? Its a crazy coding language created by people who dont know how to spell things out and they dont even spell correctly. These people probably have no life. So im guessing I have no life for implementing a compiler for it.
LOLCode Website: http://lolcode.com The compiler is writting in C#. I only got variable set up at the moment. Ill keep you guys updated if I make any more progress. Peace, Preston Alvarado (coolhome) |
||
|
5
on: June 03, 2009, 04:29:17 PM
|
||
| Started by coolhome - Last post by coolhome | ||
There's a double of album. I believe the latter one should be track? It's also missing a save button. Ahaha as I state its the alpha. No saving at the moment. Still planning where im placing other things. |
||
|
6
on: June 03, 2009, 01:36:20 PM
|
||
| Started by coolhome - Last post by comiza | ||
|
There's a double of album. I believe the latter one should be track? It's also missing a save button.
Looks cool so far. Simple and clean. If you like I could help with the graphics, that is, if you want it to have any. Or you could just keep it simple and default like that. But if I were to do any I'd probably keep them simple and clean as well. But it serves it's purpose like that anyways. |
||
|
7
on: June 02, 2009, 12:20:34 PM
|
||
| Started by coolhome - Last post by Carbo | ||
|
looks cool makes me want an xbox instead of a wii
![]() |
||
|
8
on: June 02, 2009, 12:07:35 PM
|
||
| Started by coolhome - Last post by coolhome | ||
|
Hello everyone! I've created a spore API a while back and well I never posted it on my web site. So here we go.
Features:
Bugs: No bugs have been reported Upcoming Features If there are anymore features that could be added please tell me. Download Current Version: 1.1.0 Archive: 1.0.1 | 1.0.0 |
||
|
9
on: June 02, 2009, 12:01:27 PM
|
||
| Started by coolhome - Last post by coolhome | ||
|
Ive been working on a tag editor for the past few days. Im going to show you a screenshot of an alpha version.
Please note im only around 13% done. ![]() Im creating this in C# with Taglib. |
||
|
10
on: June 02, 2009, 11:55:47 AM
|
||
| Started by coolhome - Last post by coolhome | ||
|
Anyone excited for them?
|
||


