m.kelas-karyawan-ftumj.prestasi.web.id Layanan Informasi 17 Jam
Telp/Fax : 021-8762002, 8762003, 8762004, 87912360
HP/SMS : 081 1110 4824 27, 0812 9526 2009, 08523 1234 000
WhatsApp : 0817 0816 486, 0812 9526 2009
email : _Hubungi Kami__ silahkan klik
Chatting dengan Staf :
ggkarir.com
ggiklan.com
Pilih Bahasa :   ID   EN   Permintaan Katalog / Brosur (GRATIS via POS)   Kelas Karyawan   Reguler
Kedutaan KBRIKelas MalamS2PartaiUmumReferensi ICTAl Quran onlineSastraElektronikaAntPerangkat Lunak (Software)Debat PolitikPendidikan

   
Cari  
    Informatika Komputer

    Sebelumnya  (Comparison of video player software) (Comparison of VoIP software)  Berikutnya    

Perbandingan -- Visual Basic and Visual Basic .NET

Contents

On the surface

Visual Basic.NET was initially released in 2002 as the next iteration in Visual Basic. To the dismay of existing Visual Basic programmers, however, the new platform bore little resemblance to its predecessor[citation needed]. Whilst development houses expected to be able to recompile their Visual Basic source to a .NET target, the reality of the situation was that Visual Basic.NET was a vastly different paradigm. Microsoft has made nothing unclear about the fact that Visual Basic.NET is provided as a bridge or stop-gap for developers coming from Visual Basic and has never given the language the same attention as C#.[citation needed]

In all fairness, though, obvious syntactic differences aside, Visual Basic.NET provides much the same functionality as C# (since they both compile down to MSIL, with the most glaring difference being the case insensitivity of Visual Basic.NET, maintaining the original case-insensitivity of Visual Basic), which is more of a problem for C# programmers trying to inter-operate with Visual Basic.NET developers than anything else.

The basic syntax remains very similar: conditions, loops, procedures, sub-routines are declared and written in the same manner (see Visual Basic). However, the underlying libraries are vastly different and the dream of recompiling for the .NET target should be quickly forgotten[citation needed]. Mobility from prior Visual Basic iterations to Visual Basic.NET really are ports of existing code : programmers with experience in both worlds are required to effectively target the new platform with older logic. The Visual Basic.NET developer will have to learn the use of the basic .NET types rather than what they have been used to in Visual Basic.

A programmer who has only worked with Visual Basic may have a bit of a learning curve to migrate to Visual Basic.NET. A programmer who is versed in another language or who has had exposure to the .NET runtime should be able to cope. It would be better to think of Visual Basic.NET as an interface to .NET rather than a continuation of Visual Basic[citation needed]

Taking a (slightly) closer look

There are some immediate changes that developers should take note of:

More C-like syntax

Visual Basic.Net allows for the += and -= operators so that longer lines like:

variable = variable + 1

can now be written as:

variable += 1

However, increment and decrement operators are not supported

Short-circuited logic

In prior iterations of Visual Basic, all statements in a condition would have been evaluated even if the outcome of the condition could be determined before evaluating a condition. For example:

If foo() And bar() Then  ' code here is executed if foo() and bar() both return True, however, if foo() returns False, bar() is still evaluatedEnd If

This was not only inefficient, but could lead to unexpected results for any person used to another language. In Visual Basic.NET, the new AndAlso and OrElse[1] operators have been added to provide short-circuit evaluation like many other languages.

Explicit pointer-like types are no more

Var* variable types are deprecated in Visual Basic.NET. The common runtime decides which types are reference types and which types are value types so this is no longer the domain of the programmer.

Default values for types: no longer your choice

A not-often-used feature of Visual Basic was the ability to define default values for types with Def* statements. This has been deprecated but shouldn't affect many people.

Properties: Let and Set

Class properties not longer require the Let and Set statements

Debug printing

Debug.Print is replaced with Debug.Write and Debug.WriteLine

Procedures

A procedure call must have parentheses in Visual Basic .NET.

Visual Basic .NET requires a ByVal or ByRef specification for parameters. In Visual Basic the specification could be omitted, implying ByRef by default. Most development environments, such as Visual Studio .NET, will automatically insert a ByVal, so in effect the default is ByVal, not ByRef. There are tools to convert Visual Basic code to VB.NET, such as the Visual Basic Upgrade Wizard that was included in Visual Studio .NET 2002 and 2003. Conversion tools automatically insert a ByRef if necessary, preserving the semantics of the Visual Basic application.

Zero-based arrays

Visual Basic has traditionally employed 1-based arrays. This was the source of many out-by-one errors in Visual Basic programs, most especially when dealing with interoperability across program library boundaries. While the .NET Common Language Runtime can support arrays with any base value, Visual Basic.NET and C# provide only zero-based arrays and lists, and the .NET Common Language Specification requires zero-based arrays for interoperability between .NET languages.

Variant data type is gone

In languages compiling down to .NET platform, types are strict. Whilst the runtime allows for anonymous object which don't have a pre-defined, named type, the type of a variable may not change over the course of its life-time, hence the need to drop the Variant data-type. The loss of the type is, however, a good thing: the Variant data type imposed a performance overhead.

True OOP

Visual Basic developers always had the "nearly" OOP language. You can create classes, sure, but that's about where it stops. Visual Basic.Net introduces, for the first time to the Visual Basic community, the concept of true object-oriented programming with the following new features:

  1. inheritance
  2. function overloading

Although no language targeting .NET allows for multiple inheritance for classes—but multiple inheritance of interfaces is supported.

Forget COM... Mostly

Whilst the IDE does a reasonable job of hiding the fact, the dependence on ActiveX objects is dropped in Visual Basic.NET (although there are mechanisms for interfacing with COM in .NET [2]) in favour of .NET components offering similar functionality. This shift is good for the Visual Basic developer since much of the performance issues in Visual Basic arose around the cost of the COM interface.

Elementary geometry management via the Forms designer

One of the true banes of a Visual Basic developer's life has always been writing resize code. Whilst the WinForms paradigm leaves a lot to be desired in the geometry management department in the face of toolkits like Qt and GTK+, at least the developer can anchor widgets on forms instead of having to write reams of code in OnResize handlers.

Option Explicit is not an option anymore

One of the sources of strange bugs was the Option Explicit clause (or rather, the default stance that it wasn't required in Visual Basic programs). With Option Explicit omitted, the developer was free to not declare variables: defining a variable (setting it to a value) or, indeed, referencing a variable, brought said variable into existence. The problem with this feature is that if the variable hadn't been defined somewhere earlier in code, the default value for that type was assigned to the newly created variable. Other languages which allow variable declaration through definition (such as Python) will normally throw errors when attempting to reference an unbound variable. Visual Basic with Option Explicit omitted, would just substitute the default value for the type (e.g. 0 for an integer, an empty string for a string, False for a boolean) and continue with program logic, resulting in some of the most arcane bugs to track down. Visual Basic.NET is rebooted, essentially with Option Explicit turned on—all the time. The lazy developer will have to learn to declare her variables and the more pedantic developer will have an easier time debugging the code of his lazy co-worker.

External links

References

    Sebelumnya  (Comparison of video player software) (Comparison of VoIP software)  Berikutnya    





Tags: Comparison of Visual Basic and Visual Basic, NET, Informatika Komputer, 2243, Perbandingan Visual Basic and Visual Basic, NET Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations String functions List comprehension Object oriented programming Object oriented constructors Database access Evaluation strategy Daftar/Tabel, Hello World, programs ALGOL 58's influence on ALGOL 60 ALGOL 60: Compa, Comparison of Visual Basic and Visual Basic, NET, Bahasa Indonesia, Contoh Instruksi, Tutorial, Referensi, Buku, Petunjuk m.kelas karyawan ftumj, prestasi.web.id
 Program Magister Ilmu Komunikasi (MIKom, MIK)    Kepustakaan Bebas    Program Perkuliahan Paralel    Soal-Jawab Psikotes/TPA    Program Kuliah Gratis    Download Katalog    Bursa Karir
Perkuliahan Karyawan (P2K) (Hybrid)

Koleksi Jenis Foto
Penerimaan Mahasiswa/i
Program Studi
Layanan + Download
UU Sisdiknas & Pemerintah Mendukung
Perkuliahan Karyawan
(P2K)
(Hybrid)

Pustaka Khusus
Daftar Website Perkuliahan Karyawan
Daftar Website Kuliah Shift
Daftar Website Semua PTS
Daftar Website Program Reguler Pagi/Siang
Daftar Website Program Magister (S2)

 Kuliah Hybrid di 112 PTS Terbaik    Try Out Online Gratis    Pendaftaran Online    Permintaan Keringanan Biaya Kuliah    Berbagai Perdebatan    Buku Referensi    Jadwal Sholat    Qur'an Online    Kuliah Shift    Program Perkuliahan Reguler Pagi/Siang    Semua Publikasi
Penyemaian bibit Kacang Tunggak, Komposisi zat gizi Kacang Bogor, Cara budi daya benih / biji Kacang Gude di pot / polibag, dsb.
Manfaat dan khasiat Gendola (Binahong Merah)

Sampaikan ke Rekan Anda
Nama Anda

Email Anda

Email Rekan 1

Email Rekan 2 (tidak wajib)

Email Rekan 3 (tidak wajib)
⛧ harus diisi dengan benar

Permintaan Brosur
(GRATIS via POS)
Nama Penerima

Alamat Jelas

Provinsi & Kota

Kode Pos

Email (tidak wajib)

⊙ harus diisi lengkap & jelas
Atau kirimkan nama dan
alamat lengkap via SMS ke HP:
0811 1990 9026


Download BROSUR
Brosur Kelas Karyawan
Gabungan Seluruh Wilayah Indonesia

pdf (11,2 MB)ZIP (8,8 MB)
Image/jpg (36,2 MB)
Brosur Kelas Karyawan
JABODETABEK

pdf (5,5 MB)ZIP (4,4 MB)
Image/jpg (13,2 MB)
Brosur Kelas Karyawan
DIY,JATENG,JATIM & BALI

pdf (4,4 MB)ZIP (3,5 MB)
Image/jpg (14,5 MB)
Brosur Kelas Karyawan
JAWA BARAT

pdf (2,8 MB)ZIP (2,2 MB)
Image/jpg (7,1 MB)
Brosur Kelas Karyawan
SULAWESI

pdf (1,9 MB)ZIP (1,5 MB)
Image/jpg (5,6 MB)
Brosur Kelas Karyawan
SUMATERA & BATAM

pdf (2,2 MB)ZIP (1,7 MB)
Image/jpg (6,5 MB)
Brosur Kuliah Reguler
pdf (4,1 Mb)ZIP (8,4 Mb)
Strategi Meningkatkan
Kualitas Pendidikan, Pendapatan dan Sumber Daya PTS

pdf(6 Mb)Image/jpg(16 Mb)

STRATEGI Meningkatkan
Kualitas Pendidikan, Pendapatan dan Sumber Daya PTS
http://kpt.co.id
Terobosan Baru

PT. Gilland Ganesha
Membutuhkan Segera

  • Design Grafis
  • Web Programmer

Penjelasan Lebih Lanjut di :
Info kerja

Kumpulan foto kucing, karakteristik kucing, menjaga kesehatan kucing, dsb.
155 Jenis Kucing

Twitter Kuliah Karyawan

Tautan Elok
silakan klik
Ilmu Dunia

1. Cyber University - Universitas Siber Indonesia - Kampus :Jl. TB Simatupang No.6, RT.7/RW.5, Kec. Jagakarsa, Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12530
2. Fakultas Pertanian UMJ Jakarta - Fakultas Pertanian Universitas Muhammadiyah Jakarta - Kampus Pertanian : Jl. KH. Ahmad Dahlan, Cirendeu, Ciputat, Jakarta Selatan 15419
3. Fakultas Teknik UMJ - Fakultas Teknik Universitas Muhammadiyah Jakarta - Kampus FT UMJ : Jl. Cempaka Putih 2 Tengah No. 27, Jakarta Pusat
4. FISIP UMJ Jakarta - Fakultas Ilmu Sosial & Ilmu Politik Universitas Muhammadiyah Jakarta - Kampus FISIP - UMJ : Jl. KH. Ahmad Dahlan, Cirendeu, Ciputat, Jakarta Selatan 15419
5. FKM UMJ - Fakultas Kesehatan Masyarakat Universitas Muhammadiyah Jakarta - Kampus FKM UMJ : Jl. K.H. Ahmad Dahlan, Cireundeu, Kec. Ciputat, Kota Tangerang Selatan, Banten 15419
6. IBI Kosgoro Jagakarsa - Institut Bisnis & Informatika Kosgoro 1957 Jagakarsa - Kampus A : Jl. Moch. Kahfi II No 33 Jagakarsa Kota Jakarta Selatan - DKI Jakarta 13550--pemisahnya--Kampus B : Jl. Al Amanah No.1, RT.8/RW.10, Wijaya Kusuma,
- Kampus B : Jl. Al Amanah No.1, RT.8/RW.10, Wijaya Kusuma, Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11460
7. IBI Kosgoro Jelambar - Institut Bisnis & Informatika Kosgoro 1957 Jelambar - Kampus A : Jl. Moch. Kahfi II No 33 Jagakarsa Kota Jakarta Selatan - DKI Jakarta 13550--pemisahnya--Kampus B : Jl. Al Amanah No.1, RT.8/RW.10, Wijaya Kusuma,
- Kampus B : Jl. Al Amanah No.1, RT.8/RW.10, Wijaya Kusuma, Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11460
8. IKIP Widya Darma Surabaya - IKIP Widya Darma Surabaya - Kampus IKIP Widya Darma : Jl. Ketintang No. 147-151 Surabaya
9. IMA - Institut Miftahul Huda Al-Azhar - Kampus : Jl. Pesantren No.2, Kujangsari, Kec. Langensari, Kota Banjar, Jawa Barat 46324
stiewalisongo.web.id  |  programperkuliahankaryawan.com  |  polnas-denpasar.web.id  |  mhthamrin.web.id  |  vila-gilland.web.id  |  p2k.cyber-univ.ac.id  |  unismu.web.id  |  p2k.sebi.ac.id  |  stiepasim.web.id  |  uyi.web.id  |  unnur.web.id