Csharpjava's Posts
Nairaland Forum › Csharpjava's Profile › Csharpjava's Posts
1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)
@Nov1ce Try these series of videos on youtube, I found it very helpful when I was doing the same module and after completed the module I felt writing programming codes was like child’s play ![]() 1.01 https://www.youtube.com/watch?v=RRXe1omEGWQ&feature=related 1.02 https://www.youtube.com/watch?v=WvAHT3V_dlw&NR=1 Note that the word 'stereotype' means inheritance or interface. You'll also find this presentation slide useful for turning your usecase diagram into class diagram: http://www.authorstream.com/Presentation/tallurijkumar-64216-class-diagrams-uml-final-science-technology-ppt-powerpoint/ |
My advice for you is to start with C# and ASP.Net, this will allow you to start developing web applications straightaway. |
Seun No Fayimora, that's not how we do it on Nairaland. We don't discourage newbies, we welcome them and we answer their questions.Thanks Seun, this is the kind of nonsense I find on other programming forums, they behave as if they own the programming language someone is asking for help about. |
A person that wants a career as a programmer should be ready to learn software architecture in addition to coding. In programming a programmer is an architect and a builder at the same time. Here are some useful links below relating to software architecture: https://www.youtube.com/watch?v=RRXe1omEGWQ http://www.agiledata.org/essays/objectOrientation101.html |
Otuabaroku You did not try at all. Why should you advise me to try it, when you know that it has an obvious short coming.I have not tried it yet. Have you? If yes what were the issues found? |
Just thinking aloud ;is there any possible issue developing Mail application with RMI instead of SMTP in javamail API?Try it with RMI and let us have the results of your Thinking Aloud Protocols so that we can analyse them here. |
candylips code with multiple interface inheritance can be nasty as well. sometimes u see code with an interface hierarchy running 10 interfaces deepWith multiple interface inheritance the methods are blank, the compiler will only use the methods you write in your class. But with multiple inheritance if there are two methods with the same name in the classes inherited and you do not sort this out in your class the compiller will pick anyone for you, this can lead to a serious bug in your program. Let me know if there are issues I have not covered regarding nested interface inheritance. |
When will u use abstract class instead or interface and vice versaWhen you need multiple inheritance from Abstact Classes in a language like Java that does not support multiple inheritance, then you'll need to use an interface. C++ allows multiple inheritance but you must be sure you know what you are doing. |
Otuabaroku @csharpjava , thank you for the explanation. From what you have explained, it seem to me they both have the same function and similar. The big question now is why should I use interface instead of abstract class or why should I use abstract instead of interface. Are there some occasion where abstract is better to use or are there some occasion where interface are better to use. What would inform your opinion when choosing between the two?In Java and similar languages you cannot inherit more than one class so if you need to inherit more than one class then you'll need to create an interface. See example below on how to inherit one class and implement more than one interface: public class SomeClass extends JFrame implements ActionListener, Shape |
For those that are interested in this information: An Abstract Class - Does not allow you to create objects, you can only inherit from an Abstract Class and you must use all the Abstract methods in an Abstract Class in the class that inherits from it. Interface - Is a class that only contains Abstract Methods, with no Attributes or Fields and you must use all the Abstract methods in an Interface when you implement it. It allows you to borrow from more than one class, by using the the word "implements" followed by a comma if using more than one interface Eg: public class SomeClass extends JFrame implements ActionListener, Shape - to as many as you want. [size=16pt]An Adapter Class - Allows us to use 419 when using an interface[/size]Abstract and Interface classes allow programmers to write applications that can work with each other. Eg: The software in a keyboard has an interface that allows it to work with the software in the monitor in order to display the characters on the screen. |
There are good video tutorials on youtude to get you started: https://www.youtube.com/watch?v=s1McIoTovsk I've just realised that this thread was started in December 25, 2008 @ 04:06 AM |
Dolemite The code should look like this: import java.awt.*; public class runMovingBox { |
Fayimora Way to goooo, Now we are talking, nice one @csharpNice to know we share a common ground on this occassion |
I commend you for your effort. Though I have not had the time to try out your software yet but when I do, I will check it for accessibility and usability, nowadays for a software to be very successful it has to undergo these accessibility and usability checks. You can find out more at: http://www.usabilityhome.com |
It will be easier for you to use tables to present the data from the database see example below: <html>Source: http://www.tizag.com/ajaxTutorial/ajax-mysql-database.php |
ogzille @csharpjava, he said web based!My suggestion is the first step to creating a web based application with C# on a windows computer, the second stage is to deploy the application onto a web server. The poster has not told us whether the application should be deployed onto a web server. |
I will recommend you use C# if you known some Java as the syntax are very similar. For the database I will recommend ms access. You will need to setup IIS on your computer so that you can test your application locally on a windows computer. |
A kid can easily master pseudo codes and algorithms in no time but what separates the boys from the men is software architecture or analysis, modelling and design. You can find out more about some of the processes that are required at this link http://www.agiledata.org/essays/objectOrientation101.html. So guys relax pseudo codes and algorithms are no big deal. Programming should be fun for those trying to learn it, so let us continue to provide codes for those who need codes. |
Try this youtube video it should make it simple for you to understand https://www.youtube.com/watch?v=3ILIFUoFxmE |
Everyone knows that its better to teach a man to fish than to feed him with fishAnd how do you teach a man to fish, tell him to go and read it in a book No you take him to the river and you show him step by step how it is done, there after he can read a book if he wants to have a technical understanding. Same with programming you give out the code first and then they can read the rest in a book.On this site you will see loads of code to help those that are trying to learn programming: http://www.java2s.com/Code/JavaAPI/CatalogJavaAPI.htm |
If you decide to use java then you need an emulator first so that you can run your mobile apps on a computer before deploying it on mobile devices. I will find time to come back and give you sample codes to get you started. |
Number_One So the chic was helped with her assignment. Nice. So much for HALF BAKED graduates.Who do you blame, HALF BAKED graduates or HALF BAKED lectures? You lack the exposure to what a computer science degree course should really be like, with the right lecturers and resources no one will come here asking for help. You cannot teach someone programming with pseudo codes and algorithms without first showing them the codes, you guys like doing your things the opposite way so that people can worship you. |
segsalerty I was asked to provide a link to show codes I have given out. At first I showed a comment I received for my codes but I was told that was not enough, see quotes below. Number_One So how many codes have you given out? (pls provide links to the codes so we can verify. Anyone can claim they have provided codes for others).Number_One P.S: Just like I thought, you didn't provide a hyperlink to the page where you posted your code. How can we verify it? |
Number_One P.S: Just like I thought, you didn't provide a hyperlink to the page where you posted your code. How can we verify it?Here is the link: https://www.nairaland.com/nigeria/topic-634619.96.html If someone has made the effort to write a piece of code and wants help with some coding then I don't see why we should not help provide the codes. |
Number_One So how many codes have you given out? (pls provide links to the codes so we can verify. Anyone can claim they have provided codes for others).Create your own programming language and then tell those that want to learn your language to follow your psudo codes and algorithms. But for Java and all the orther languages you did not create it is not your duty to tell others how they should learn it. People like you cannot make a bicycle spoke but you try to make it hard for people who want to learn how to ride a bicycle. Below is the comment I got from someone I helped with thier GUI coding on this forum. Oh wow man thank you!! soooooooooo much, you don't know how BIG this is for me THANKS!! |
Dolemite Oh wow man thank you!! soooooooooo much, you don't know how BIG this is for me THANKS!!This makes me feel better than all the pseudo codes and algorithms in this world ![]() |
Also, why the indirect speeches?My post is to anyone that believes the best way to help others is through pseudo codes and algorithms, I find this to be putting the cart before the horse, the best approach for those learning to program is to see the coding first then pseudo code and algorithms after. What makes me come to this forum all the time is because I admire the way people help by providing codes for others. |
Writing codes is no big deal, I don't see why people are not willing to give others the code they need to help them with their programming. All the coding for C# and VB.Net APIs are available for anyone to see. Those coming here to say they will not give codes to others, should know that they have not created any programming language of their own and the coding they don't want to give to others has already been written by those who created the programming language. If you feel you know how to write codes very well then you should go and develop your own programming language and then don't give codes to anyone trying to learn the language you have created and just tell them to use your pseudo code and algorithms. |
Fayimora The way i normally explain things are;You are from a computer science background, your approach is good in the lab as you have all the time in the world to keep going in a loop. In the real world of application development the approach is that of Software Engineering, which is “if a code already exist use it” if you ask me why? Well it is because if you have a deadline in which to complete a project, then you just need the code, but the algorithms you can work out after. This is the reason some people come here just for the code only. For algorithms and the pseudo code they can work that out after. |
Dolemite Oh wow man thank you!! soooooooooo much, you don't know how BIG this is for me THANKS!!No worries!! you can always give me a shout if you need anymore assistance. |
Dolemite These three classes should get you started just follow the way I have done it upto my comment "// This is where I have got to" in the AircraftGUI Class where all the GUI coding should take place. Create new JLabels and replace all the System.out.println with these JLabels. For the other methods just create new buttons, add addActionListener(this) to them and follow how I used the first button I named AddPassangerButton for the addPassenger method. import java.awt.*; public class Passenger { public class RunAircraftGUI{ |
Fayimora Programming is one of the few professions where programmers are very selfish in helping those that are learning, with coding. I'm sure you cannot work in an agile environment, in which pair programming is a must (an XP development technique used by agile methodology) in this type of environment you are not allowed to hide your codes. You start your programming career as a trainee and you are trained by advanced programmers, no amount of books you read can make you a very good programmer unless you see the way other programmers have written their codes. This is not a forum for those doing their PHD, so you need to stop asking those asking for help here to go and read books, they won't come here if they can find all the answers they want in books. |

;