Chimanet's Posts
Nairaland Forum › Chimanet's Profile › Chimanet's Posts
1 2 3 4 5 6 7 8 9 10 (of 10 pages)
@lordzouga, from ur analogy i think wat u are trying to depicts using header file in cplusplus looks more lyk interfaces 2 me in java and csharp |
Pls o, The factory pattern doesnt apply 2 java alone, it i can b illustrated with any oop language lyk csharp easily, i use java 2 illustrate it cos is the language am more proficient with, and most design pattern books normally use java as d language of illustration. U can easily implement it wit dynamic languages lyk php and python and i think is even more simpler 2 write, bt d concept of d pattern might b harder to grasp. |
Wen u use a factory class, u jst do Factory.getVehicle(parameter), because d getVehicle method is jst lyk a global function. in java we call it a static method, u dnt need 2 create an instance of d factory class (object) in d jvm heap, cos creating an object wit d new operator in java eats up jvm memory and is expensive and cause tight coupling. So factory pattern saves memory, makes our objects loosely coupled, and our code even looks more elegant. No nid 2 b creating objects of factory classes wit new operator. Jst load d class in d jvm and use its static method. Shikena! |
For instance u have a code for returning a Vehicle object, all d different Vehicles instances lyk bus, lorry, saloon implement d Vehicle interface, u can have a factory class dat does nothing than using a a static method dat has a switch statement 2 return a particular implementation of Vehicle depending on d parameter u pass 2 it. public static Vehicle getVihecle(String type){.....} method. If you pass a bus string, it switches 2 bus case statement and instantiate a bus and returns 2 u. In an oop language lyk java, u can abstract all ur database connection creation code wit dis pattern since all d different jdbc implementation of database connection implements java.sql.Connection interface, oracle connection, mysql connection, etc, so u can easily swap d implementation of d connection u r using by jst changing d parameter u pass 2 a static getConnection method of a factory class. D purpose of d factory class is jst 2 return different implementations of connection objects shikena! |
The sdk u intend 2 use will abstract dat by providing a method u can us 2 compare 2 finger print objects |
Am chima, 08060880402, a java/j2ee developer. U can hit me up on my mobile lets knw wat d project is all about |
U didnt even bother 2 say d language u want d code in or even paste ur cold let c hw fa u have gone, i now see y d programming section is dieing slowly. Are u sure u wrote or even configured d first code urself at all? |
search for asterisk is a java API you can use, i think somebody on nairaland has use it some two years ago. dnt knw if they support windows, you nid a pbx box to make use of voip |
mehn thier so many opensource java project on that already, ok try google, stackoverflow |
may be each result class should have a scores list containing all the previous scores for that result with the currect score as the first element of the list. so to display a result, you output the first index(o)and if the list still contains more scores use a for loop and output them one after the othe. jst hope my advice helps u need a score class,result class, with a many to one relationship between them, |
simple excell file as backend should do |
Am currently in owerri, can you make it there? |
OP plesse go for Medicine since you are travelling to the UK, doctors make a lot of money in the UK, As per Mark Zuckerberg i will say his one in a million. Just know that all that matters in life is $money=>$success |
do u want the html to be writen to a GUI pane(JEditorPane i think) or a html file. it can be done na |
here is my number 08060880402, but really i that kind of app cant be done with 50k ![]() |
Am a developer that graduated from your school currently am not in owerri but will be their next week. i think i can help you out,here is my mobile 08060880402, or my email alaebo123@yahoo.com |
If you want to really learn OOP, Java is the language to start with, it might be difficult at the begining but ones you nail it, Java becomes the so cheap. I feel so comfortable when coding with java than php, python etc. C# is another very good language but will only appreciate it if you are coming from java background |
wow!! thanks bro |
pls kadeerna, do you have any video tutorial on backbone.js or may be recommend a very good ebook for me cos its really geting intresting,am a type that believes in seperation of concerns just as backbone does the model and view stuffs clearly |
90k will be ready in 2weeks |
Av checked it, mehn i think are will brush up on javascript fundamentals and face these frameworksnext week. thanks for the tutorial |
thanks man |
@Pc-guru Wont be bad if you start a tutorial right here! |
Really av been programming serverside scripting technologies, php, jsp for 2 years without considering learning javascript. av used JQuery without even knowing javascript. I think with all thes advances in clientside technologies, a modern web developer is supposed to have javascript and some of this clientside techology in his toolbox.I heard that GWT offers all this clientside functionalities but never used it before, anyway i think i need to get deep into javascript and it frameworks for the next 2months before i turn an outdated developer |
very gud advise |
This OP must be damnn tooo funny, naso u need work reach? |
U can contact me alaebo123@yahoo.com or try my mobile 08060880402, i have experience with working with different sms Api be it HTTP based or SMPP based |
DI is very important wen designing an enterprise level app. In java is all about defining some important components of your app in an extenal xml file and and loading d apropraite component without affecting other part of d application. Jst imagine a shoping site dat uses only paypal payment initially, i can abstract d payment component into a payment class and and inject paypal payment object which is a kind of payment 2 my app via xml. Later on d shop decides 2 introduce a payment method dat will accept masta card, paypal, nigerians atm cards etc. We simply create anoda payment object dat can handle all these different means of payment and inject it through d xml in place of d original only paypal payment object. Now our new payment component can handle different payments jst by making a new class and changing a single element of an xml file. We dnt need 2 touch other parts of our app. Also anoda example can b d case of wen we want 2 swap two different data layers of an app |
Then u can dial my number |
Am a freelance sofware developer that currently resides in d east, i do java, java ee technologies, python,c#, php, web development in general, u can contact me if u need any custom app or special training on those areas. U can reach me on my mobile, 08060880402 |
call 08060880402 chima |
@candylips well done for ur important contribution, my manager insist on we using hibernate for the project, anyway when am done with the project i will take my time and study ibatis wella. lyk for how long av u been using enterprise java? it seem u have much experience from your posts |
i will say his one in a million. Just know that all that matters in life is $money=>$success