Stats: 3,189,362 members, 7,937,101 topics. Date: Sunday, 01 September 2024 at 01:24 PM |
Nairaland Forum / Heywhy824's Profile / Heywhy824's Posts
(1) (2) (of 2 pages)
![]() |
vscode still my favourite |
![]() |
izzy111:i've made v0.1.5 release, i included an example under folder app, you can download it and check it out. i would have loved to build a much more robust app, but that would be further releases for i'm kinda choked up right now. i hope u wil enjoy the library. thanks in advance. |
![]() |
izzy111:okay |
![]() |
izzy111:Since you asked for a cookbook i think i will b working on a mini app |
![]() |
izzy111:Thanks man for really wanting to git it a try, i really appreciate it. Yes i'm working on a mini mvc framework which will built on the bucketjs library, i released a new version 0.1.3, u can check it on github |
![]() |
Will be working on a mini javascript mv* framework soon, which will be built on BucketJS library, I think if the framework should be a success at least it will help in persuading people about the concept|idea behind BucketJS |
![]() |
I always love to contribute to the open source and that's why I decided to build the BUCKETJS Library, but ever since I started making posts about it I haven't seen any real contribution from developers, its not that I'm mad at that but I assume we should all learn to embrace other people's ideas and if it doesn't worth it or if there are things that can be done to improve it then you tell him to fix it. don't keep shut. Just passing by** |
![]() |
I love what's going on this thread so that's why I decided to post this: I'm happy to release v0.1.1 of the BucketJS library The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' version 0.1.1: * removed property fetch of the configuration object * added filters property to configuration options --* the aim is to allow path alias to a namespaces e.g. --* Bucket({ --* /** --* * if not set, defaults to app folder under webroot --* * every namespace which hasnt been filtered out will be --* * searched for in the directory --* */ --* base: 'mobile', --* filters: { --* /** --* * namespace id Bucket will be fetched from directory www/src/core --* */ --* 'Bucket': 'src/core' --* } --* }); * added variable B as alias to Bucket for conviniences * well descriptive comments updated. composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS |
![]() |
version 0.1.1: * removed property fetch of the configuration object * added filters property to configuration options --* the aim is to allow path alias to a namespaces e.g. --* Bucket({ --* /** --* * if not set, defaults to app folder under webroot --* * every namespace which hasnt been filtered out will be --* * searched for in the directory --* */ --* base: 'mobile', --* filters: { --* /** --* * namespace id Bucket will be fetched from directory www/src/core --* */ --* 'Bucket': 'src/core' --* } --* }); * added variable B as alias to Bucket for conviniences * well descriptive comments updated. Composer: require heywhy/bucketjs Github: https://github.com/heywhy/BucketJS |
![]() |
version 0.1.1: * removed property fetch of the configuration object * added filters property to configuration options --* the aim is to allow path alias to a namespaces e.g. --* Bucket({ --* /** --* * if not set, defaults to app folder under webroot --* * every namespace which hasnt been filtered out will be --* * searched for in the directory --* */ --* base: 'mobile', --* filters: { --* /** --* * namespace id Bucket will be fetched from directory www/src/core --* */ --* 'Bucket': 'src/core' --* } --* }); * added variable B as alias to Bucket for conviniences * well descriptive comments updated. Composer: require heywhy/bucketjs Github: https://github.com/heywhy/BucketJS |
![]() |
I'm happy to release the first official release of the BucketJS library version 0.1.0. The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS when defining a class if 'App' is not part of the definition it assumes that the namespace is a subpath in tbe app directory. e.g Bucket(['Core/Hello'], function(){ this.call = function(){ alert('hello'); } }); defaults to App/Core/Hello.js, if 'App' was included it is omitted before requiring the file; if a file has been require before it gets cached, while subsequent calls to file will be fetched from the cache instead of requesting it from the server, which can be an overkill. |
![]() |
@larisoft Thanks for the review the other time, please I will like you to kindly help review this update. I will be waiting for your feedback, thanks. |
![]() |
I'm happy to release the first official release of the BucketJS library version 0.1.0. The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS when defining a class if 'App' is not part of the definition it assumes that the namespace is a subpath in tbe app directory. e.g Bucket(['Core/Hello'], function(){ this.call = function(){ alert('hello'); } }); defaults to App/Core/Hello.js, if 'App' was included it is omitted before requiring the file; if a file has been require before it gets cached, while subsequent calls to file will be fetched from the cache instead of requesting it from the server, which can be an overkill. |
![]() |
I'm happy to release the first official release of the BucketJS library version 0.1.0. The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS when defining a class if 'App' is not part of the definition it assumes that the namespace is a subpath in tbe app directory. e.g Bucket(['Core/Hello'], function(){ this.call = function(){ alert('hello'); } }); defaults to App/Core/Hello.js, if 'App' was included it is omitted before requiring the file; if a file has been require before it gets cached, while subsequent calls to file will be fetched from the cache instead of requesting it from the server, which can be an overkill. |
![]() |
when defining a class if 'App' is not part of the definition it assumes that the namespace is a subpath in tbe app directory. e.g Bucket(['Core/Hello'], function(){ this.call = function(){ alert('hello'); } }); defaults to App/Core/Hello.js, if 'App' was included it is omitted before requiring the file; if a file has been require before it gets cached, while subsequent calls to file will be fetched from the cache instead of requesting it from the server, which can be an overkill. |
![]() |
when defining a class if 'App' is not part of the definition it assumes that the namespace is a subpath in tbe app directory. e.g Bucket(['Core/Hello'], function(){ this.call = function(){ alert('hello'); } }); defaults to App/Core/Hello.js, if 'App' was included it is omitted before requiring the file; if a file has been require before it gets cached, while subsequent calls to file will be fetched from the cache instead of requesting it from the server, which can be an overkill. |
![]() |
mokoshalb:Thanks man. And please drop a review when you are done. |
![]() |
Waiting for reviews... pls |
![]() |
Thanks man wil really appreciate that |
![]() |
I'm happy to release the first official release of the BucketJS library version 0.1.0. The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS |
![]() |
I'm happy to release the first official release of the BucketJS library version 0.1.0. The aim of the library is to implement namespacing system which is present in languages like c++, php and so on. I hope you guys can help embrace it and improving. Because having a class or context per file makes you more organized and its always easy to amend errors since you know the class having fault, you just go straight to file to fix it. I will be more happy if you all can embrace the concept. behind the library. I will like you all to give your comments for that's what help in improving the library. # BucketJS Library * it tries to help you make your codes well organised i.e. a class per file ...* var control = Bucket('App/Core/Controller') matches app/core/controller.js file in the base directory. ...* Bucket(['App/Game'], function(){ this.init = function(){ console.log('game started'); } }); // matches www/app/game.js ...* you will find some examples below * trying to implement Namespacing in the other languages * Include the src/Bucket.js file in your page and you are set to use it. * The dist directory consists of the different aspects implemented into the library it is very simple to use /** * the files are fetched from a default folder App e.g. www/app, www/js/app * you can also set the base directory where the app folder is * e.g. Bucket({fetch: true, base: js/app/}); * it will fetch the files from www/js/app directory */ // to define a class, the classname must match the path to the file // file: www/app/core/hello.js Bucket(['App/Core/Hello'], function(){ this.call = function(){ alert('hello world'); } }); // file: www/index.html including the library // to get the instantiated copy var hello = Bucket('App/Core/Hello'); hello.call(); // 'hello world' /** * defining a class with dependencies to other classes * a class can have as many dependencies as possible but they will all * be passed as parameters in the order they were declared to the class depending on them. * if a dependency depends on another class they all get passed for the library * is smart enough to sort that. */ // file: www/app/core/welcome.js Bucket(['App/Core/Welcome', ['App/Core/Hello', 'App/Core/Bye']], function(hello, bye){ // the hello param will be an object of App\Core\Hello::class this.welcome = function(){ hello.call(); } this.bye = function(){ bye.bye(); } }); // file; www/app/core/bye.js Bucket(['App/Core/Bye'], function(){ this.bye = function(){ alert('Thank you for trying me out. Courtesy: BucketJS'); } }); // file: www/index.html including the library // to get the instantiated copy var app = Bucket('App/Core/Welcome'); app.welcome(); // => 'hello world' app.bye() // => 'Thank you for trying me out. Courtesy: BucketJS' composer: require heywhy/bucketjs github link: https//github.com/heywhy/BucketJS |
![]() |
You can use the oop style, e.g. $db = new mysqli('host', 'user', 'pass', 'db'); $result = db->query('select * from rubbish" ![]() $rows = $result->num_rows; $data = $result->fetch_assoc(); You can try it out, and also search more about the oop mysqli |
![]() |
larisoft: Thanks man, I really appreciate the time you spent on it, still working on the readme aspect so as to mak .more explanatory as possible. I'm sorry for changing the repository and not updating it here, sorry man. Atleast getting a response from you its okay and make me more confident in devoting some time to the project. |
![]() |
Waiting for reviews please... |
![]() |
DanielTheGeek:Thanks man. |
![]() |
Waiting for reviews... |
![]() |
Waiting for reviews... |
![]() |
I' m happy to release the first version of BucketJS project which was built with my little knowledge of JavaScript. I will appreciate and be more happy if you guys can help review it. Critics is allowed for that's what keeps us on our toes. You can download using composer require heywhy/bucketjs or download through github https://github.com/heywhy/BucketJS thanks. |
![]() |
SeunLanLege:It helps prevent pollution of of the global scope [object window] and helps you from always typing the new keyword. You can give it a try, I will love to have a feedback from you. And thanks for the time that will spent reviewing it. |
![]() |
I' m happy to release the first version of BucketJS project which was built with my little knowledge of JavaScript. I will appreciate and be more happy if you guys can help review it. Critics is allowed for that's what keeps us on our toes. You can download using composer require heywhy/bucketjs or download through github https://github.com/heywhy/BucketJS thanks. |
(1) (2) (of 2 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 58 |