9
LEARNING TECH – WEEK 1 James Chen

Learning tech week_1_james

Embed Size (px)

Citation preview

Page 1: Learning tech  week_1_james

LEARNING TECH – WEEK 1

James Chen

Page 2: Learning tech  week_1_james

LINQ

• Similar to regular SQL

• fluent syntax

• Query syntax

var query = names.Where ( name => name.EndsWith(“y”) );

var query = from n in nameswhere n.EndsWith ( “y” )select n;

Page 3: Learning tech  week_1_james

LINQ

• joins

• grouping

var query =from c in Customersjoin p in Purchases on c.ID equals p.CustomerIDselect c.Name + " bought a " + p.Description;

from p in Purchasesgroup p.Price by p.Date.Year into salesByYearselect new{

Year = salesByYear.Key,TotalValue = salesByYear.Sum()

}

Page 4: Learning tech  week_1_james

jQuery

• jQuery Core• Selection

• EX: $( “div” )• Traversing

• EX: $( “#content” ).children( “div” )• Data

• EX: .data ( key, value )

$( "li" ).hover( function() {

$( this ).css( "border", "outset grey 3px" );$( this ).children().css( "color", "white" );

},function() {

$( this ).css( "border", "solid black 3px" );$( this ).children().css( "color", "grey" );

}).mousedown( function() {

$( this ).css( "border", "inset grey 3px" );$( this ).children().css( "color", "grey" );

}).mouseup ( function() {$( this ).css( "border", "outset grey 3px" );$( this ).children().css( "color", "white" );

});

Page 5: Learning tech  week_1_james

jQuery

• jQuery UI• free-source plugins• convenient way for interactive user interface

Page 6: Learning tech  week_1_james

MVC

• Basic understanding of MVC theory• Java• jsp• PHP

• Never used ASP.NET MVC• Mostly similar with pervious experience

Page 7: Learning tech  week_1_james

Combining

• Built sample testing website using MVC• Small sample DB• Some jQuery code• Display list, edit, create, delete• Planning to add more functionality if time allows

Page 8: Learning tech  week_1_james

Learning Experience

• Has experience with basic aspects

• More advanced than what was taught and used

• The more I read, the more I realize there is more to learn

Page 9: Learning tech  week_1_james

References

• Jquery.com

• http://msdn.microsoft.com/en-us/library/vstudio/67ef8sbd.aspx

• http://www.asp.net/mvc

• LINQPad4 samples