You are here: Home >Archive for the ‘Programming’ Category

You Can Learn Software Development

If you’re interested in developing software for a living, or as a hobby, there is a lot you need to know. But do not get discouraged. Like anything in life, with the proper commitment you can do anything you set your mind to. You just cannot let that little voice in your head tell you otherwise. Oh, and believe me, there will be times that it will. That “little voice” will seem very loud at times and it may even seem like it has a point, but remember this. It never does. It is never right. It never has a good point. Never.

I always try to remember what a former martial arts instructor once told me. I asked him who he thought would win this one MMA fight that was being shown on pay-perview. He said “I have no idea by name who will win the fight but I do know it will be the guy who throws the last technique”. In other words, the guy that didn’t quit. Keep that in mind when the little voice of discouragement in your head gets loud. Be the student programmer who “throws the last technique”.

Once you start getting the general hang of it, you will find learning how to develop software gets easier. Listen close. I did not say it was easy. I just said, it will get easier in comparison to how you felt in the beginning. This will happen when you find the learning technique that works best for you. For me, I learn best in a classroom setting. Some people like to do it on their own by using Google, technical blogs and buying books. They spend many hours in front of their computer by themselves. While, I do that too and can find it effective, I think it is because I have years of learning behind me already. I have the foundation. However, I think for a new student programmer, you need a coach or mentor. You need a teacher. Otherwise, that little voice in your head has a better chance of getting in your way and when that happens, the drive to learn goes away. You will end up putting your plans to learn programming on hold for a bit….perhaps for months…perhaps years.

Tags: , , , , , , , , , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

How to Write iPhone Apps For Developers

In this article, I’ll discuss how to write iPhone apps from a developer perspective. Meaning, those that have written applications or designed websites.

Developing iPhone applications include two main areas of learning: the Objective-C language along with the iOS framework and provisioning mobile devices. Objective-C is the language used to write against the iOS framework. The iOS framework includes constructs that allow you to communicate with networks, process events within the application, and retrieve data from a database to name a few of its features. There are also subsets of the framework such as Mapkit, Notification Center, and Game Center.

The second area of learning is device provisioning. Provisioning is the process of making the mobile device trusted and copying your application from the computer to the mobile device. Creating trust usually consists of installing certificates on the computer and mobile device.

For those that have never developed on mobile devices, this can certainly be a time consuming area to learn because it is such a tedious process. Device provisioning is tedious because of the various and numerous number of errors one might receive. Lack of documentation on these issues can make provisioning a lengthy endeavor.

The iPhone development environment consists of Xcode. Xcode is an IDE (integrated development environment), designer, debugger, and includes instrumentation for testing performance. Xcode can be integrated with code repository products such as SVN. Xcode is free. However, to submit iPhone applications for sale, you must join the developer program, which costs $99 per year.

Apple has provided a large number of tutorials and documentation at their developer site. Additionally, the iPhone developer community is very active. There are a large number of forums for seeking help. As you work through your first few applications and begin running into problems that are taking some time to figure out, it is likely you will find others that have experienced the same issue.

Tags: , , , , , , , , , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Visual Web JSF

Auto Validation is a method/process to check each text fields automatically for the success or error message and throwing the message according to that.

This document shows the process to be followed to do the automatic validation to the field and send the corresponding message. Steps followed are:

Create a Page: First of all open/create a JSF page.
Add Components: Add the Label and TextField component on the page.
Let the label component be Input and textfield component be tf.

Bind TextField: Add binding attribute for the textfield. Right click on the textfield and click Add binding attribute…
Create Link: Now Link the label and the textfield. For this just press ctrl+ shift and drop the label field on the text field.

Auto validate: Click on the textfield and then open the Property window. From Property window under Behavior click autoValidate.

Validate method: Now right-click on the textfield and click edit event handler  validate.

This will create a method in a java class which takes three objects as arguments viz: context: Facescontext, component: UIComponent, value: Object.

Throwing a message:

Finally you need to throw a message corresponding to the text field. For that you need to add a message component in your page. In the palette window go to standard and then inline message.

Inline Message: This is use to display message for single component, such as validation or conversion error. Creating a link between text field and inline message: So add inline message and create a link by pressing ctrl + shift and dropping the inline message on the text field

Write validation method:
Now we can write any validation function or call it inside a textfield_validate() method.

Tags: , , , , , , , , , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Choosing a Programming Language to Learn

What programming language do you want to learn? In theory, this seems like the simplest of questions you could pose to a computing student or programming enthusiast. In practice, however, this is a hard question that requires careful considerations before an answer can be arrived at!

With hundreds of programming languages available out there, every computer science major ought to think about the implication of the choices they make as far as learning programming is concerned. Even after learning a programming language in class as part of study work, how good (proficient) one becomes actually depends on the practice one does outside the lecture hall! A lot of practical experience is required before any one can start working online or elsewhere as a programming guru.

When choosing a programming language, one should always consider what they aim to achieve by learning the language. For instance, one may realize that they need to learn programming so that they can make a great computer game! The same way, one may also need to learn programming so that they can be able to make a commercial business application for sale on the internet.

Among the ten most popular languages, Java has emerged the uncontested pick for multiplatform, mobile software programming. Windows alternatives such as C sharp (C#) and Visual Basic (VB) can also be used to achieve the same results as Java but only for computers running the windows operating system. When it comes to games programming, Python has earned a lot of popularity. This can be attributed to its dynamic nature and the fact that it has a smooth learning curve. PHP (Hypertext Preprocessor), ASP (Active Server Pages), Django Python framework and JavaServer Pages are languages you may need to learn in order to become an effective server-side web programmer. On the other hand, hardware programming requires a low level language that is able to abstract communication between the programmer and hardware devices. Today, C is the best modern programming language that can be used effectively to program not only microchips but also physical communication devices.

Tags: , , , , , , , , , , , , , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS