Swinburne Sarawak Student Forum
Welcome to Swinburne Sarawak Student Forum
Please register with us for more fun and discussions.

We hope you see you guys chatting and make discussion using this forum all the time. Thanks for your support ^_^


HomeHome  ­PortalPortal  ­CalendarCalendar  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)

View previous topic View next topic Go down 
AuthorMessage
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 7:28 am

Introducing...Lunan...as a developer...XD

Shall we start?
btw this first post...will be an index...so if there are no meaningful post here...forgive me


C# Class programming and Logic (Intermediate) - Page 1
Tricks and Tips for XHTML CSS (Beginner) - Page 1
MYSQL Beginner Guide (Beginner) - Page 1


Last edited by lunan on Wed Jun 17, 2009 9:42 am; edited 4 times in total
Back to top Go down
View user profile
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 8:33 am

This topic dedicated to the intermediate, not usable for beginner, especially in .NET
ASSIGNMENT CLASS LIBRARY (DLL)
IOCONTROL CLASS
Spoiler:
 


USER CLASS
Spoiler:
 



INVENTORY CLASS
Spoiler:
 
Back to top Go down
View user profile
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 8:34 am

CHECKOUT MODULE
Spoiler:
 




Big time mistake of mine is when i design the database, i should have separate the checkout module of getting transaction ID and Quantity separate. put that in 1 table where there are multiple entries rather than consolidating them in the string. which rather confusing enough as it is.

so, tips for developer who are working with data. DESIGN YOUR TABLE FIRST.....unlike me who just go with the flow, and rather regretting it

and you can see from the programming, im so lazy to implement the correct exception handler present (i should throw an exception...). but all in all, .NET provides nice exception, unlike c++ which if you have problem, its just crash.

sorry for splitting topic like this...got error where msg too big XD

1 more about formatting...its kinda hard to read. so...i hope you understand
Back to top Go down
View user profile
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 9:19 am

Tips and Trick for XHTML CSS
1.Use FIREFOX to develop apps. Reason why?
EXTENSION - Firebug(The Kings of Extension), ColorZilla,HTTPFOX,FirePHP,HackBar,and VIEW DEPENDENCIES(very important)
i'll add later on

2.NEVER EVER USER DREAMWEAVER TO DO DRAG AND DROP !
Reason why?dreamweaver preview is screwed, BIG TIME. try using it, but dont complain when things go awry. My suggestion is to use Microsoft Expression Web 2 if you wish to drag and drop. (1 more thing, dreamweaver is fine for coding...just preview and debug it using web browser..)

3.Split your CSS and XHTML coding, which provide cleaner look, and optimise your image, dont put like 100KB small image...its just wasting bandwidth

4.If you can, screw EM(CSS style for width height)..or variable witdh and height. nice when you resize browser, or targeting lots of monitor res...but screw the whole layout. use fixed width and height instead

5.Avoid table to do the layout. Table is not meant to be used for layout. only forum, and some highly advanced website use it. do DIV styling with float instead.

6.Avoid using XHTML attributes, instead use css.

7.Many teacher and many of your assignment will ask about the w3c compliance, XHTML and CSS. My opinion? can you create site, with multiple browser compatibility, and still compliant? Unless you are an expert user, it might be hard.
so, do you sacrifice cross-browser for compliant ? or the other way around, like ME Very Happy
CSS RESETTER (google for the definition.i cant explain much...) basically forces your css to be compatible across browser, but somehow resetter didnt pass compliance. i'll put my past project underlining this soon.


EDIT:Putting CSS RESETTER


Last edited by lunan on Wed Jun 17, 2009 1:16 pm; edited 1 time in total
Back to top Go down
View user profile
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 9:41 am

MYSQL Guide

1.Dont create composite key
if you have primary key that is used in another table, dont create a weak table of composite key. The big reason why is the performance problem when searching later on. Instead, create another table to hold that as a foreign key

EX: you have customer table and Inventory table. you want to make a Transaction record. Dont just create a weak table consists of a composite key, from 2 table, but create a table, with transaction ID as a primary key and use the other as a foreign.

2.Do the Normalisation Process up to 3NF or 5NF, to obtain a good table.

3.Ensure that you are using unique primary key. dont use product id or even some kind of data value as primary key. you will regret it soon. create a new field like product_primary with INT as the base, from 0 or 1 counting up.

that's it for now. (no more ideas Very Happy)
Back to top Go down
View user profile
Lance
Administrator
Administrator


Number of posts: 779
Registration date: 2008-06-21
Points: 975
Reputation: 1

Character Recognitions
Special Status:
Nil

Awards & Medals:
Monthly Top Poster Token
2008 Beijing Olympic Games Forum Event Medal (Gold)2008 Merdeka Eve Forum Event Medal 2008 Christmas Wishing Well & 2008 New Year Eve Forum Event Medal

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 12:47 pm

Free lesson? XD

_________________
No one knows everything, and everyone knows something a bit different from others. We are all teaching each other as we go along. - James Nachtwey
Back to top Go down
View user profile http://darklancer.blogspot.com
lunan
Junior Member
Junior Member


Number of posts: 258
Course / Major: IT in Computing
Registration date: 2008-08-18
Points: 771
Reputation: 1

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 1:13 pm

sure why not?im just sharing how life of a developer XD
more like...sharing the code and good practices...why quite lack in swinburne (they still teach table based layout at WWW internet...)

will put some tutorial and lesson too...if i have time (holiday comin soon and me without internet). probably i'll compile the article first,then bam, when comin back, post all the articles Very Happy

i create this place coz there's no place to share knowledge at swinburne, especially IT Razz

will post some of the project i done too (while i work part time and several library and assignment)
but 1 thing though, this was not meant to replace your teacher, or lecture Razz just supplemental.

also, you are free to ask, and i'll do what i can to help you Very Happy
Back to top Go down
View user profile
Lance
Administrator
Administrator


Number of posts: 779
Registration date: 2008-06-21
Points: 975
Reputation: 1

Character Recognitions
Special Status:
Nil

Awards & Medals:
Monthly Top Poster Token
2008 Beijing Olympic Games Forum Event Medal (Gold)2008 Merdeka Eve Forum Event Medal 2008 Christmas Wishing Well & 2008 New Year Eve Forum Event Medal

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Wed Jun 17, 2009 5:01 pm

Keep it up lunan! It's good for one to put lots of effort in the things you like to do~ Too bad my interest is not in the same field as yours.

_________________
No one knows everything, and everyone knows something a bit different from others. We are all teaching each other as we go along. - James Nachtwey
Back to top Go down
View user profile http://darklancer.blogspot.com
mandy
New Member
New Member


Number of posts: 22
Course / Major: Marketing
Registration date: 2009-09-26
Points: 351
Reputation: -20

PostSubject: Re: Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)   Sat Sep 26, 2009 7:33 pm

Thats ri!ght
Back to top Go down
View user profile
 

Lunan Programming Corner (XHTML,CSS,ASP.NET,C#,MYSQL)

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Swinburne Sarawak Student Forum :: Life Style :: Computer and Technology-
Post new topic   Reply to topic