Amazon Ad

Friday 18 March 2011

How a professional ASP.NET Developer Works

There are many ways an asp.net developer works. There are three types of developers i catgorize them as
1. Beginners
2. Intermediate
3. Advanced

1. Beginners -: Beginners concentrate how i will do it. Their main focus is on not how the flow would work but rather concentrates on how i will do it. Beginners use ADO.NET, DataSet,XML,File Handling in beginners way.

Technologies Beginners would use
a. ADO.NET (DataSet,DataReader) -: Beginners i have seen use DataSet in ASP.NET which is not correct. DataSet creates a cache and creates extra pressure. If a query requires to retrieve 10000 records from a table dataset would create a lot of cache and would create havoc situation. Rather i would advice beginners to use DataReader instead of DataSet  in web based projects i.e ASP.NET.Instead users can create their own class file for connecting, disconnecting and executing sql queries.The file may contain function that accepts control name and query and binds them automatically on the page. This is quite good as it saves a developer from coding a lot of code for just binding a single control.

b.SQL Sever Queries -: Beginners also don't care about SQL Queries they are using. "select * from table_name" is different from "select col1,col2,col3....coln from table_name". First query creates extra pressure on server for retreiving query result i.e don't use '*' in sql queries rather use column names.

Beginners also don't use Indexing on tables. Creating indexes of table other than primary keys also speeds up retrieval of records. But indexes needs to be chained again when database gets bulky.

c. Front End -: Beginners use common asp.net controls which creates lots of viewstates. More asp.net controls on a page more pressure would be on the server to generate html for the concerning controls.
For e.x same functionality can be achived by using html <a> tag instead of using ASP.NET Hyperlink and ASP.NET LinkButton Control.

2. Intermediate -: Intermediate concentrates on flow of work and they basically use their own business logic, instead of using DataSet and DataReader they use LINQ,ORM's for their business logic

a. ORM's -: ORM's are now the life of developers instead of creating a seperate code for inserting updating and deleting. Developers may opt for a good ORM and can generate class files based on the database they are using. Class files are automatically generated as per the database tables, stored procedures and this creates a lot of coding and time.

b. Front End -: Instead of using postbacks and microsoft ajax, Intermediate asp.net developer uses jquery and simple html for asp.net pages with webservices to get data using ajax.

c. Web Services -: Web services can be used to get data from database using ajax. They provide a secure and good way to get data into the page. Intermediate users use ASP.NET Web services to get data from the database. Web services may contain webmethod that returns a complete grid data. Webservice speeds up asp.net page performance with ajax.Webservice may contain ORM generated classes that helps to insert,update,delete or retrieve the data.

3. Advanced -: Advanced user concentrates on how can i make my code and flow more better than previous. Advanced users use ORM's or Rather they prefer to create own business logic.

Advanced Users concentrate on how they can make their project more secure, fast and as per the industry standards. Advanced users use WCF for retrieving data from the database. Advanced users may use ORM or instead of ORM they create their own classes just like ORM's to generate database tables classes.

Advanced users completly takes cares of database architecture and does the coding and logic as per the flow of the database.

Advanced users may use Flash 4 and develop the application in Flex to make the application more secure.

All the above text is as per my experience and knowledge. If i am missing something i would definitly bring it in light next time!!

Ritesh Tandon
http://www.jalandharsearch.com/

How to implement Captcha v3 in ASP.NET

 I was facing an issue of dom parsing in my website. I finally resolved it by using Google Captcha V3. Step 1: Get your keys from https:...