₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,219 members, 8,510,723 topics. Date: Friday, 30 October 2026 at 10:36 PM

Toggle theme

Fdeveloper's Posts

Nairaland Forum › Fdeveloper's Profile › Fdeveloper's Posts

1 2 3 4 5 6 7 (of 7 pages)

Programming › Re: Firebird Or Oracle by Fdeveloper(m): 10:15am On Mar 27, 2007
I'm with sbucareer on this one. Products such as Firebird, MySQL etc. are great for learning and developing small to medium sized solutions however there are sound reasons why the large blue chip companies almost always opt for Oracle.

When you look at the range of features offered and myriad configuration options, I wouldn't expect Oracle to be easy to install and/or configure and frankly I don't think that ease of installation should be a major consideration in view of the fact that installation is not done every day.
Programming › Re: I Have A Problem With Raise Event In C# by Fdeveloper(m): 4:21pm On Mar 21, 2007
It's pretty similar to VB as both languages are based on the.NET kernel

First you have to write a class which inherits from EventArgs to act as a container for the parameters of your event as follows:

   /// <summary>
   /// Event handler implementation for a new message
   /// </summary>
   public class NewEventArgs : EventArgs
   {
      private string message;

      /// <summary>
      /// Event message setter & getter
      /// </summary>
      public string m_message
      {
         get { return message; }
         set{ message = value; }
      }

      /// <summary>
      /// Class constructor
      /// </summary>
      /// <param name="message"></param>
      public NewEventArgs(string message)
      {
         m_message = message;
         return;
      }
   }


You then need to declare a delegate method to handle the event as follows:

   /// <summary>
   /// Delegate declaration
   /// </summary>
   /// <param name="objectSender"></param>
   /// <param name="newEventArgs"></param>
   public delegate void NewEventHandler(object       objectSender,
                                        NewEventArgs newEventArgs);
                                       

Note that both of the above can be in the same source file


The following is an example class which has a method that receives a string and raises an event                                       
   
   public ReceiveString
   {
      /// <summary>
      /// New event delegate
      /// </summary>
      public event NewEventHandler newEventHandler;
     
      /// <summary>
      /// This method receives an external message from somewhere
      /// </summary>
      public string NewMessage(string message)
      {
         // Raise a new event and pass the string we received
         RaiseNewMessageEvent(new NewEventArgs(message));
      }
     
      /// <summary>
      /// This method raises a new event
      /// </summary>
      /// <param name="newEventArgs"></param>
      protected virtual void RaiseNewMessageEvent(NewEventArgs newEventArgs)
      {
         // It's important to check that there is an active listener
         // before raising the event
         if(newEventHandler != null)
         {
            // This actually raises the event
            newEventHandler(this, newEventArgs);
         }
      }     
   }

   
Finally, you can now write the class that will consume the event
   
   public ConsumeEvent
   {
      // Instance of the class that will raise the event
      public ReceiveString m_receiveString;
     
      /// <summary>
      /// New event delegate
      /// </summary>
      public event NewEventHandler newEventHandler;
     
      /// <summary>
      /// Class constructor
      /// </summary>
      public ConsumeEvent()
      {
         // Define the callback method that will catch the event
         m_receiveString.newEventHandler += NewMessageEvent(NewEventHandler);
      }
     
      /// <summary>
      /// Event handler for new message
      /// </summary>
      /// <param name="objectSender"></param>
      /// <param name="newEventArgs"></param>
      void NewMessageEvent(object objectSender, NewEventArgs newEventArgs)
      {
         MsgBox(newEventArgs.getMessage());
         return;
      }     
   }

   
Note that I haven't included any error handling in the code and this should certainly be done before deploying your application in the real world.

One final point is that this is a perfect example of why it is always a good idea to investigate and fully understand what a wizard in the IDE is doing. The aim of a wizard is so speed up your development however it is in your interests to learn and understand the underlying principles involved.

Hope this helps!
Jobs/Vacancies › Re: Computer Ability Test Of Virgin Nigeria by Fdeveloper(m): 8:55am On Mar 15, 2007
I think Duwizzle got it absolutely right. I always think of every interview and/or test as a learning experience and surely the positive thing you can take away from your experience is that it would be useful to learn the common shortcut keys for all the office applications.
Programming › Re: Strictly Newbies! by Fdeveloper(m): 10:58am On Mar 14, 2007
kazdax:
Oh yes I am a good programmer even thou I have only messed around with C most of my Life . I can do alot with that Tinny Yucky language than most of you would not in this life time be able to do with VB or Java . Go Figure
The first thing I find strange is the fact that on 7th March 2007, you admitted you are not much of a programmer (despite the fact you have been programming for 4 years) in this thread you created about learning assembly  https://www.nairaland.com/nigeria/topic-43709.0.html but within the space 6 days, you are now a "good programmer" as you put it?  In any case, I think this statement proves that you are perhaps not the good programmer you think you are because all really good programmers can work in many languages as each language has is advantages and disadvantages depending on the solution.  To answer your point, I would be interested if you could  explain in technical detail how you would develop a J2EE solution which is also EJB 3.0 compliant and can be deployed in either Windows or UNIX in C?

kazdax:
Hi I am into .net , C , Assembly and java  . My interest is programming for different Chips and root Kernel Security and Basic IT security
karansandhu@hotmail.com
aeons_of_horus@yahoo.com

I am online everyday
I got the above quote from the "Programming Friends" thread https://www.nairaland.com/nigeria/topic-35291.0.html and I was shocked to read that you're also into .NET & Java too! What happend to "I have only messed around with C most of my Life"

kazdax:
Lets see . Was there a Reson to create the Syntax that way ? I mean just say Dim this and that is it . Store an Integer or a string dosnt matter ? How stupid is that ?
If you are going to criticise a language then you have a duty to have done some research first. Even in the early versions of VB, variable typing was available however it was optional and you could certainly argue that this was a weakness. VB.NET has strong variable typing so your statement is incorrect

kazdax:
Most of you programmers making a living by doing HLL apps while having no Idea about operating system, system call mechanisms and basic libraries
Just as you don't have to know how an engine works to drive a car, you don't need to have in depth knowledge of the operating system to develop an application. I agree that if you're working in C, you need to have a good understanding of memory management to ensure your application is efficient and performant however technology has moved on these days so that application developers can now concentrate on functionality in their applications without having to worry about memory management, garbage collection and all the other issues that plague applications developed in C.

I guess the point is if you are interested in developing operating systems or developing code for embedded systems, then I agree that C is a good choice however it comes down to choosing the right tool for the right job and as any seasoned developer will tell you, no single language is suitable for all jobs.

@segebee, Many apologies as we seem to have hijacked your thread and changed it's original purpose,
Programming › Re: Strictly Newbies! by Fdeveloper(m): 11:34am On Mar 13, 2007
Absolutely right they don't teach you that sort of stuff when you're learning a particular language and that is precisely why I made the point about learning the general principles of programming which are not language specific first before concentrating on a particular language. 

Like most serious programmers, one quality I have is the ability to research and proactively learn things by myself particularly in the current internet age, so the fact that I wasn't taught 2's compliment when I was learning a particular programming language hasn't prevented me from knowning what it is and surely that is the key point.

Just my 2 cents worth from your friendly neighbourhood wise guy,
Programming › Re: Strictly Newbies! by Fdeveloper(m): 8:33am On Mar 12, 2007
You can find a full expalnation at: [url]http://en.wikipedia.org/wiki/Two's_complement[/url]
Programming › Re: Java Programming For Dummies by Fdeveloper(m): 8:07pm On Mar 11, 2007
I would just like to emphasise the point that sbucareer has made by saying that in my experience the bulk of knowledge that really good programmers have is generally self taught following extensive research and practise. I believe that to be really good at it, you have to have a passion for programming and be proactive when it comes to learning and of course be willing to spend many sleepless nights learning your trade. There is no topic that isn't comprehensively covered by various sites on the internet and in fact learning how to harvest that data is one of the first vital skills that I think a good programmer needs.  The other point is that the learning never stops as software development techniques and methodologies are constantly evolving.

Yes, good programmers can earn very good money but as the famous saying goes, to whom much is given, much is expected and as sbucareer rightly says, you can't become a programmer just because you want to earn good money.  I have never met sbucareer but I have read enough of his posts to know that after he has given a comprehensive introduction to a topic, he would most likely respond better to questions such as "I have tried x and y but I still have problem z, do you have any suggestions?" rather than "How do I do x and y?". 

The bottom line is that you have to be single minded, self motivated and prepared to put in a lot of effort to succeed.
Programming › Re: Strictly Newbies! by Fdeveloper(m): 8:58am On Mar 11, 2007
@kazka, I don't understand why you say that VB is a "childish" language or that learning Java and/or C# would be a mistake. If you have ever browsed any IT recruitment pages, you would clearly see that those skills are in demand.  Incidentally, Java and C# in particular are generally more in demand than C++ so I  would be interested to know therefore why you advise segebee to disregard those languages?

Check out the following references:
- http://www.developerfusion.co.uk/Jobs/TopContract.aspx
- http://www.contractoruk.com/market_stats/index.html - Check out the table titled "Top Ten Programming Languages for Contracting"

@segebee, At the risk of being a geek, I would suggest that to be a good programmer, you should first learn the principles of programming such as [b]O[/b]bject [b]O[/b]riented [b]P[/b]rogramming (OOP) for example and then look for a language(s) with which you can implement the principles you have learnt. I have been programming for a long time and what I have found is that the real challenge is not so much learning the language but being able to design a system and fully understand the architecture.
Programming › Re: Installing Oracle 10g On Window Xp by Fdeveloper(m): 8:34pm On Mar 06, 2007
I have successfully installed Oracle 10g on a Windows XP machine without any problems.

It is possible that the distribution you are using is corrupt so if possible, can you try starting the installation on another machine just to see if it works. Alternatively you could download a fresh distribution from Oracle's website although I appreciate that this this may not be practical if you don't have access to a fast internet connection due to the size of the distribution.
Programming › Re: Daylight Savings Time And Robust Code by Fdeveloper(m): 3:04pm On Mar 02, 2007
I'm in full agreement with Bossman. It's the system administrators job to ensure that the solution is deployed in the correct environment as the developer has no way of knowing where the solution will be displayed. 

In essence, DST is an operating system environmental parameter and as such it's squarely the responsibility of whoever is maintaining the system.
Computers › Re: Are The Windows Xp Sp2 Upgrades Safe? by Fdeveloper(m): 2:43pm On Mar 02, 2007
It is not only safe but highly recommended by Microsoft (See http://www.microsoft.com/windowsxp/sp2/default.mspx) however as is always the case, you should ensure you have a full backup before upgrading.
Computers › Re: Pls Give Me The Necessary Suppot For Converting An Operating System From French by Fdeveloper(m): 2:40pm On Mar 02, 2007
Unfortunately, the only solution I'm aware of is to obtain the language specific version that you need (i.e. English). I don't believe that it's possible to change the language of an already installed operating system.
Computers › Re: The Pros And Cons Of Windows Vista by Fdeveloper(m): 5:33pm On Feb 20, 2007
I would strongly recommend anybody thinking of upgrading their machine to Windows Vista to first download and run the Windows Vista Upgrade Adviser available at http://www.microsoft.com/windows/products/windowsvista/buyorupgrade/upgradeadvisor.mspx

The utility will do a full analysis of your system and generate a report indicating the best version of Windows Vista for the machine in question and also crucially highlighting potential problems and steps that should be taken both before and after the upgrade. Believe me, you will save yourself a lot of unnecessary headaches by using this utility.
Programming › Re: Visual Studio Installation Files by Fdeveloper(m): 5:24pm On Feb 20, 2007
Are you sure you have a valid distribution of Visual Studio 2005? I say this because the file you mention is not included in mine and I should also say it's highly unlikely that anyone with a genuine distribution will send you the file even if they have it as that would not be in keeping with Microsoft's EULA (i.e. End User License Agreement)

P.S. I also very much doubt you will get the response you're looking for from your post in the MSDN forum but of course I could be wrong,
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1242444&SiteID=1
Programming › Re: Which Is Best? by Fdeveloper(m): 8:29pm On Feb 14, 2007
As always sbucareer makes some very good points!

I appreciate that your question was specifically about Sun however as an alternative, you may want to consider JBoss (http://www.jboss.org) which is open source and hence avoids any licensing issues. I have deployed solutions in JBoss running standalone and in a cluster which have supported systems handling thousands of transactions per minute without problems. JBoss is very popular with a large installed user base and as a consequence has a large number of very active support forums.
TV/Movies › Re: Celebrity Big Brother: Jade And Shilpa? by Fdeveloper(m): 3:31pm On Feb 01, 2007
I think that Jade Goody is further evidence if any were needed of the old saying "You can take a monkey out of the jungle but you can never take the jungle out of a monkey".
Computers › Re: Keyboad Short Cuts by Fdeveloper(m): 10:04am On Jan 18, 2007
It depends on the application that you are using. As a general Windows convention F1 brings up online help however to the best of my knowledge there is no preset function for the other function keys. You could say that the keys are available for application programmers to provide short cuts.
Programming › Re: Pls Need Help With Vb6 And Databases by Fdeveloper(m): 9:58am On Jan 18, 2007
Just a quick question, is there any particular reason why you are using VB6 and not .NET?
Programming › Re: Apple Introduces Iphone by Fdeveloper(m): 9:54am On Jan 18, 2007
It looks good and has some very cool features however not everything is as "revolutionary" as Steve Jobs would have us believe and I have the following reservations:

- Durability of the screen
- Battery life
- Typing on a non tactile keyboard is not easy

Having said that, if nothing else, the iPhone will force other device manufacturers to review their designs and perhaps implement some of the phone's cool features such as visual voice mail for example.

1 2 3 4 5 6 7 (of 7 pages)