Thursday, 7 February 2013
Tuesday, 5 February 2013
Another Day With Queries
Today was another day of practicing SQL Queries. We found SQL quite
interesting and enjoyed it a lot though it is just the beginning and we
have to learn a lot.
Monday, 4 February 2013
C#.Net
C#(pronounced "C sharp") is a programming language that is designed for building a variety of applications that run on the .Net Framework. C# is simple, powerful, type-safe and object-oriented. The .Net Framework class libraries provides access to many operating system services and other useful, well-designed classes that speed up the development cycle significantly. It was developed by Microsoft as part of the .Net initiative and later approved as a standard by ECMA(ECMA-334) and ISO(ISO/IEC 23270)
Design Goals
- C# language is intended to be a simple, modern, general-purpose, object-orinted programming language.
- The language, and implementation thereof, should provide support for software engineering principles such as strong type checking, array bounds checking, detection of attempts to use uninitialized variables, and automatic productivity are important.
- The language is intended for use in developing software components suitable for deployment in distributed environments.
- Source code copmatability is very important, as is programmer productivity, especially for those programmers already familiar with C and C++.
- Support for internationalization is very inportant.
- C# is intended to be suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions.
C# 2.0 New Features C# 3.0 New Features C# 4.0 New Features
1.Generics 1.Implicitly typed local variables. 1.Dynamic bindings.
2.Partial types 2.Object and collection Initializers. 2.Named and optional arguments.
3.Anonymous methods 3.Auto-Implemented 3.Generic co-variance and
4.Iterators properties. contra variations.
5.Nullable Types 4.Anonymous types.
6.Private setters 5.Extension Methods.
(properties) 6.Lambda expressions.
7.Method group 7.Query expressions.
conversations(delegates) 8.Expression trees
C# Features
- There are no global variables or functions. All methods and menbers must be declared within classes.
- Local variables cannot shadow variables of the enclosing block, unlike C and C++, C# supports a strict boolean data tpye, bool.
- In c# memory adress ponters can only be used within blok specially marked as unsafe, and programs with unsafe code need appropriate permissions to run.
- c# is more typesafe than C++.
- C# provides syntactic sugar for a common pattern of a pair of methods, accessor and mutator encapsulating operations on a single of a class, in form of properties.
- Full type reflection and discovery is available.
C# Advantages
- C# borrows concepts from Java and C++, adopting only the good bits from those languages and eliminating overly confusing and error prone features, which are the major sources of bug in a code.
- C# is a terse language.Its very tiny even with the commands.
- C# supports effective and reusable componets.
- C# can programs can be written in as simple as a textpad and a command line which are common to any operating system provided the developer has installed the CLR and the Framework prior.
- C# provides the ability of code extension to the developers can produce extensions and wrappers to use the underlying library to behave the way developer want it to.
C# Disadvantages
- C# progrmas are largely for Microsoft Windows Environment which although happens to be the post widely used Operating system over te globe, but with open source technologies, especially platforms like Linux cathing up, C# still has to long way to go. This is one major shortcoming of C#.
- C# has eliminatwd the"unsafe" code funtionalities from C++; it has its own set of functionalities which are to be used with caution by the user.
- Although C# programs can be written as little as a text editor and compiled using command line, it still needs the .Net Framework to be present on the system , which cripples down the portability in the development of C# programs by a large amount, and makes it more Microsoft Windows dependent.
Friday, 1 February 2013
Practising SQL Queries
Today, SQL Server got installed finally since there was a problem in my Windows XP OS (Some dll files in the OS were missing). So yesterday I updated it to Windows 7.
Now since SQL Server is installed I have started working with the basics of databases such as creating a database,deleting a database,creating a table,updating a table etc.
Something About SQL Server
SQL Server 2012 is the latest version of a database server product that has been evolving since the late 1980's. Microsoft SQL Server originated at Sybase SQL Server in1987. In 1988, Microsoft, Sybase, and Aston-Tate ported the product to OS/2. Later Aston-Tate dropped out of the SQL Server development picture, and Microsoft and Sybase signed a co-development agreement to port SQL Server to Windows NT. The co-development effort cumulated in the release of SQL Server 4.0 for Windows NT. After the 4.0 release, Microsoft and Sybase split on the development of SQL Server, Microsoft continued forward with future targeted on Windows NT platform while Sybase moved ahead with releases targeted for the UNIX platform, which they still market today. SQL Server 6.0 was the first release of SQL Server that was developed completely by Microsoft, In 1996, Microsoft updated SQL Server with the 6.5 release. After a 2 year development cycle Microsoft released the vastly updated SQL Server 7.0 release in 1998.
SQL Server embodied many radical changes in the underlying storage and database engine technology used in SQL Server, SQL Server 2000, the accumulation of another 2 year effort, was released in September,2000. The move from SQL Server 7.0 to SQL Server 2000 was more than an evolutionary move that dint entail the same kind of massive changes that were made in the move from 6.5 to 7.0. Instead, SQL Server 2000 was build incrementally on the new code base that was established in 7.0 release. Starting with SQL Server 2000, Microsoft began releasing updates to the basic release of SQL Server in the following year starting with XML for SQL server web release 1, which added several XML features including the ability to receive the result set as an SQL document.
The next year they renamed the web release to the more succinctly title SQLXML 2.0, which among other thing added the ability to update the SQL Server database using XML updategrams. This was quickly followed by the SQLXML 3.0 web release which included the ability to expose stored procedures as web services. 2 years later, Microsoft SQL Server release history accumulates with the release of SQL Server 2005. SQL Server 2005 uses the same basic architecture that was established with SQL Server7 and it adds to this all the features introduced with SQL Server 2000.
SQL Server embodied many radical changes in the underlying storage and database engine technology used in SQL Server, SQL Server 2000, the accumulation of another 2 year effort, was released in September,2000. The move from SQL Server 7.0 to SQL Server 2000 was more than an evolutionary move that dint entail the same kind of massive changes that were made in the move from 6.5 to 7.0. Instead, SQL Server 2000 was build incrementally on the new code base that was established in 7.0 release. Starting with SQL Server 2000, Microsoft began releasing updates to the basic release of SQL Server in the following year starting with XML for SQL server web release 1, which added several XML features including the ability to receive the result set as an SQL document.
The next year they renamed the web release to the more succinctly title SQLXML 2.0, which among other thing added the ability to update the SQL Server database using XML updategrams. This was quickly followed by the SQLXML 3.0 web release which included the ability to expose stored procedures as web services. 2 years later, Microsoft SQL Server release history accumulates with the release of SQL Server 2005. SQL Server 2005 uses the same basic architecture that was established with SQL Server7 and it adds to this all the features introduced with SQL Server 2000.
The following timeline summarizes the developmental history of SQL Server
- 1987 Sybase releases SQL Server for UNIX.
- 1988 Microsoft, Sybase and Aston-Tate port SQL Server to OS/2
- 1989 Microsoft, Sybase and Aston-Tate release SQL Server 1.0 for OS/2
- 1990 SQL Server 1.1 is released with support for Windows 3.0 clients. Aston-Tate drops out of SQL Server development.
- 1991 Microsoft and IBM end join development of OS/2.
- 1992 Microsoft SQL Server 4.2 for 16 bit O/S 2 1.3 is released.
- 1992 Microsoft and Sybase port SQL Server to windows NT.
- 1993 Windows NT 3.1 is released.
- 1993 Microsoft and Sybase release version 4.2 of SQL Server for windows NT.
- 1994 Microsoft and Sybase code development of SQL Server officially ends. Microsoft continues to develop the Windows version of SQL Server. Sybase continues to develop the UNIX version of SQL Server.
- 1995 Microsoft releases version 6.0 of SQL Server.
- 1996 Microsoft releases version 6.5 of SQL Server.
- 1998 Microsoft releases version 7.0 of SQL Server.
- 2000 Microsoft releases SQL Server 2000
- 2001 Microsoft releases XML for SQL Server web release 1.
- 2002 Microsoft releases SQLXML 2.0 ( renamed from XML for SQL Server).
- 2002 Microsoft releases SQLXML 3.0.
- 2005 Microsoft releases SQL Server 2005 on November 7th,2005.
- 2008 Microsoft releases SQL Server 2008 on August 6th,2008.
- 2012 Microsoft releases SQL Server 2012 on March 7th,2012.
What is .Net Framework
.Net Framework
It is a software which masks the functionality of an OS and executes the .NET languages, compile IL code under its control providing the features like :
- Portability
- Security
- Automatic Memory Management
If we wanted to run the IL code on any machine it is must to install .NET framework on that machine.
In case of platform dependent languages like C,C++ etc the compiled code(machine code) runs directly under OS.
The code which runs under the framework is known as managed code and the code which runs under the OS is known as Un-managed code, where managed code provides features like portability, security, automatic memory management etc.
Development of .Net Framework
- Microsoft has started the development of software in late 90's originally under the name NGWS.
- To develop this framework: A set of specification have been prepared knows as CLI(Commom Language Infrastructure) specification.
- CIL specifications are open specification standardize under organization ISO and ECMA.
The CIL specification talks about four inportant things like :
- CLS(Comman Language Specification)
- CTS(Comman Type System)
- BCL(Base Class Library)
- VES (Virtual Execution System) or CLR(Common Language Run-time)
1.Common Language Specification(CLS)
It is a set of base rules all the .Net languages has to adopt to inter operate with each other. Most importantly after compilation of any .Net language program they should give the same output code i.e CIL code.
2. Conman Type System(CTS)
According to this all languages of .Net has to adopt uniform data type structure i.e similar data types must be same in size under all languages of .Net so that if any two languages want to communicate with each other size problems with same data type will not come. As most of the .Net laguages or extensions to some existing laguages like COBOL.NET extension to COBOL, VB.NET extension to VB etc. so the data types names will be different from language to language but even if names are different similar types will be uniform in size.
3.Base Class Library(BCL)
A libraby is a set of reusable funtionalities where each and every programming langauge has built-in libraries to it like header files in C,C++, Pacages in JAVA etc. Same as the above >net laguage are also provided with built-in libraries known as class libraries.
Base class libraries are best example for langauge interoperability because those libraries are developed in c# language and can be consumed from any .Net language.
4.VES os CLR
All .Net language once after compilation will generate the same type of IL code knows as CIL code is what we install on the client machines for execution. To run the CIL code on a machine, the machine should be installed with .Net framework and inside the .Net framework we have CLR or VES which converts CIL code into machine code accoeding ti he operating system and microprocessor.
.Net framework Versions
The development of .Net has been started in late 90's ant the first version of framework has been launched in the year 2000 as 1.0 beta(trial version) and officially it is launched into the market as with 1.0 RTM(Release to Manufacturer) in 2002.
2000 - .Net framework 1.0 (beta)
2002 - .Net framework 1.0 (trial)
2003 - .Net framework 1.1
2005 - .Net framework 2.0
2006 - .Net framework 3.0
2007 - .Net framework 3.5
2009 - .Net framework 4.0
2012 - .Net framework 4.5
Birthday Blast !!
Yesterday we had a Birthday celebration in the office itself of all the Employees working over here whose birthday fall in the month of January. This is an interesting trend over here, wherein at the end of every month we use to celebrate in combine.It was fun,we enjoyed and we had a cake and snacks. Felt quit relaxed at the end of the day.
Subscribe to:
Posts (Atom)
