TIPS Menjadi Programmer Handal

Berikut akan saya share tips2 bagai mana menjadi seorang Programmer yang handal, semua yang saya tulis ini berdasarkan pengalaman saya selama menekuni dunia pemrograman selama bertahun tahun semenjak saya lulus kuliah di Jurusan Informatika Komputer di salah satu Lembaga Pendidikan di Jakarta. Untuk dipahami derenungi dilaksanakan tentunya.. ok..

1.  Menyukai Bidang Pemrograman atau yang hubungannya dengan Software :

Kenapa harus seperti itu (Menyukai) Karena Dunia Perograman selalu berkembang berubah2 dan banyak sekali ragamnya… dan banyak pula bahasa pemrogram sekarang ini dan masing-masing punya kelebihan dan kekurangan masing-masing, jadi tidak boleh bosan-bosan apalagi bete dilarang keras… (Harus Menyukai) kalau perlu mencintai. sebab kalau sudah begitu pasti tidak akan bosan.

2.  Cara Belajar haruslah Benar :

Karena jika cara belajar anda tidak benar dalam arti tidak baik maka bisa dipastikan belajar anda cuma jadi kenangan saja…, Cara belajar yang benar adalah a. Cari Referensi Program dari bari bahasa yang anda sukai bisa dari Buku, Modul Kuliah, Internet, Teman, Dosen Dll cari referensi Sebanyak mungkin Sesuai dengan kebutuhan anda, Kalau Sudah ada Usakan Langsung mempraktekan di komputer anda langsung buat program sesuai refernsi yang ada (catatan tidak menghapal tapi memahami dan terus berulang2 dengan sendirinya otak akan menghapal) jika anda sudah mempraktekan langsung maka nanti anda akan ketemu masalah-masalah baru dalam program yaitu : Contoh, Program Tidak Jalan, Program Error, File Error dll.. , Contoh ini adalah yang akan membuat anda PINTAR dalam MEMBUAT PROGRAM. Karena anda akan mencari kenapa program ini error anda membenarkannya, Kenapa Program ini tidak jalan Anda harus membenarkannya… jika anda berhasil2 juga teruss cobaa terusss coba lagi dan coba lagiii teruuusss jangan bosen. kalau memang sudah mentok anda bisa meminta bantuan kepada teman yg lebih paham dan usahakan tanya apa yg tidak anda tahu.., kalau memang tidak ada teman atau sahabat atau guru yg bisa membantu anda anda bisa mencarinya di INTERNET Karena disana banyak sekali info2 ilmu perograman yang anda butuhkan..

3.  Program yang anda buat haruslah sesuai dengan kebutuhan..

Contohnya : Kalau anda ingin membuat program desktop berbasis windows Anda bisa menggunakan VB, kalau Anda ingin membuat Program WEB basis linux anda bisa menngunakan PHP,JSP, dll.., Sehingga Program yang dihasilkan dapat berguna sesuai tujuan dalam jangka yang cukup panjang

4.  Tidak mudah menyerah apabila ketemu kesulitan2 dalam membuat program..

karena selama pengalaman saya selama membuat program semua kesulitan pasti akan ketemu juga jalan keluarnya..

5.  Saling menghargai sesama programmer

6.  Suka memberikan ilmu kepada orang lain :

karena kalau kita memberi ilmu kepada orang lain biasanya kita akan mendapatkan ilmu2 baru yang lebih bagus…

7. Mutlak harus mempunyai komputer!!!

Tidak harus canggih yg penting sesui kebutuhan

8.  Selalu mengikuti perkembangan bahasa pemrograman yg sedang naik daun

9.  Selalu mencari sesuatu yg baru didalam program jangan monoton

10. Beli buku atau File eBook Tentang perograman..

Kalau jalan2 ke toko buku ada buku pemrograman bagus beli aja.. walaupun tidak terpakai saat itu, pasti suatu saat akan terpakai juga buku yg kita beli tadi…

11.  Bergaul dengan sesama Programmer…

SALAM PROGRAMMER…

Create Setup Installer in VB.net

Deploying Applications

Once an application is developed and if we want to distribute that application, we need to deploy that. Deployment is the process where we create an executable file which can be installed on any machine where the application can run. We can use the built-in deployment feature that comes with Visual Basic to create a Windows Installer file – a .msi file for the purpose of deploying applications.

Let’s look at the process with an example. Let’s assume we have a form with a TextBox and a Button. When the Button is clicked the TextBox should display “This application is Deployed”. Let’s name this application as Deploy. The code for the click event of the Button looks like this:

Private Sub Button1_Click(By Val sender as System.Object, By Val e_
as System.EventArgs)Handles Button1.Click
TextBox1.Text=”This application is Deployed”
End Sub

Next, we need to create an executable (exe) file for this application. To do that select Build->Build from the main menu which builds Deploy.exe. Next, we need to create an installer file for Deploy (which is the example) which is a file with .msi extension. To do that, select File->Add Project->New Project which opens the new project dialogue. Select “Setup and Deployment Projects” icon in the projects type box and Setup Wizard in the templates box. It looks like the image below.

Click OK to open the Setup Wizard. The Setup wizard window looks like the image below.

Click next on the above pane to take you to second pane in the Wizard. The new pane allows us to create deployment projects both for Windows and Web Applications. Here, select the radio button which says “Create a setup for Windows Application” as this is deploying a windows application and click next. It looks like the image below.

Clicking next opens a new pane which has options like Deploying only primary output from the project or both the project and source code or content files. Check the checkbox which you want, in this case check the checkbox that says “Primary Output from Deploy” and click next. It looks like the image below.

Clicking next opens a new pane which asks if you want any additional files to be added. If you wish, you can include other files, like an icon for the application. In this example don’t include any files and click next. It looks like the image below.

Doing that brings up the last pane of the Setup Wizard which looks like the image below. Click Finish on this pane.

Clicking finish opens up a File System window which looks like the image below.

This window allows us to create shortcuts to the application on the desktop and in our Programs Menu. To create a shortcut, right-click on the folder “User’s Desktop” and select “Create Shortcut to User’s Desktop“. Rename the shortcut to “Deployment”. If we want a shortcut to the application from our Programs Menu, right-click on “User’s Program Menu” folder and select “Create Shortcut to User’s Program Menu“. Rename the shortcut to “Deployment”. Once you are finished with it, click on “Application Folder” and open it’s properties. In the properties window set the property “Always Create” to True. Set the same for “User’s Desktop” and “User’s Programs Menu” folders. If you want any additional information to include with the set-up project, like the manufacturer, author etc, click on Setup1 project and open it’s properties. You can set additional information here. Once your are done with it build the project by right-clicking on Setup1 and selecting Build. This builds the application. The setup file is created in the debug folder of Setup1 project.

Create Form And Properties

Now that we have a bunch of controls on the form, we have to jazz them up a bit. We do this by changing the Properties of the controls in the Properties window. Each control has a whole series of properties, most of which we won’t need right now. The ones we do need are:

Alignment = how text aligns in the control
BackColor = choose the color of the background
Caption = the text that will appear in the control
Font = choose the font type and size
ForeColor = choose the color of the text (foreground)

As with all Windows applications, you can select multiple controls with (Ctrl)+(Click) and change a property for all of them at once. For example, if all backgrounds are white, select all controls, change ForeColor to white and all of them are modified. Change your form to look like the one below. Note that you do not have to change the Caption for Label4, Label5 and Label6 and that you can’t change the color of the buttons. They insist on being what was called in the old days “IBM grey”. Don’t forget to save your project often as you go along!

If you Run the application at this point, you should see your Form appear, just the way you created it. However if you click on any of the controls, absolutely nothing happens! There are events that occur; the form opens, a button is clicked, etc. But, there is nothing that tells the form what to do when it sees an event. That is why we have to write code, also called script.

           

To switch between the Code window and the Form window, use the buttons just over the Project Explorer window (diagram on the left).
Once in the Code window, you have the option of seeing all the code for the Project or the code for one event at a time. Use the buttons in the lower left-hand corner (diagram on the right).
To select the object and the event you wish to code, use the two Listboxes at the top of the Code window. The one on the left for the object and the one on the right for the event. Start with General … Declarations and then Form … Load, etc.

At this point you might want to download the sample program and study it. In the following lessons we’ll add functionality to the exercice and we’ll explain what the code means. But for the moment, a good exercice would be to write part of the code and then try to figure out how to improve certain aspects of the program.

You can download the application here: FootScoreboard.zip

Now we can Run it and see something happen. When the Form loads, it will initialize the fields that we specified in the code.

Now code the Command1 button and Run it to see the result.

Creating New the Project in VB 6

First thing to do is to create a Directory where you will store all your VB Projects. Call it VBApps, for example. Then start VB. The first screen will ask whether you want to open a new project or an existing one – it’s obviously a new one and it will be a Standard EXE. Then, maximize all the windows (it’s easier to work with – some of the examples in the tutorial had to be reduced for the sake of the presentation). Now, save your project. It will first ask you to save the form – call it Score.frm – and then the Project – call it Scorebrd.vbp. From now on, do File–>Save Project very, very frequently.

Before you start to build-up the form, it will make it easier if you change the color of the form. Otherwise you will be working with grey controls on a grey background. To change the color, just click anywhere on the form, go to the properties window, find the property called BackColor and change it to the standard Window background (teal) or to any color you want in the palette.

In our first example we will need 6 labels and 2 command buttons. Each one of these objects that you put on a Form is called a control. To get a control you go to the Toolbox, click on the control you want, come back to the Form and click and drag the control to the size and position you want. Position the controls somewhat like in the diagram below.

IMPORTANT NOTE: If this is your first experience with VB, don’t be afraid to experiment. This is hands-on stuff! Remember that VB is a Microsoft product, therefore it works with the standard Windows interface. All the functions you know from MS-Office work the same way here: Copy, Cut, Paste, (Ctrl)+(Click), (Shift)+(Click), drag the mouse over a group of controls to select them all, etc. The Undo button is a nice one to keep handy – when you modify a control you can always Undo the change – remember this when you get to the part about aligning the controls, making them all the same size and so on. That part can get tricky. If you accidentally end up in the Code window while palying around, go down a few paragraphs and you will see how to get back to the Form. At this point the worst that can happen is that your Form will get all messed up. So what! You can just scrap it and start over again, but you will have learned something.
Create your own website, free on WordPress.com.Create your own website.
Start free