Ways to define functions in javascript

There are basically two ways to define functions in JavaScript

//Defining function by name (Named functions/function declaration)


function getName(){
return true;
}

this one is similar to this function declaration

window.getName = function(){
return true;
}

uses:

Usually made for global access.

//Function expressions

Functions expressions can be named or anonymous

make a variable and assign an anonymous function to it.

var myFunc = function(){//named function expression
alert('Owais');
}

you might remember using a code like this,

$.(document).ready(function(){//that's an anonymous function
alert('I'm loaded');
});

var myObj = {//Object literal property method (named function)
name : 'Owais',
myFunc : function(print){
alert("you said: "+print);
}
}

Expanding Your Career Through LinkedIn

Yesterday I attended a seminar in my university related to job finding ,it was titled somewhat “Expanding your career through LinkedIn“ , I did learn some good points, I’m summarizing those points here for others.

Speaker’s Profile:

Mr.Asif Iqbal is a trainer, an entrepreneur, a speaker, and a SEO guru who has been engaged in internet marketing since its infancy in Pakistan. He is currently heading 5iCreations (Pvt.) Ltd and A.I. Training & Consultancy .You can contact him on asif@asif-iqbal.com.

Know Your Dream Company.

  • Identify and understand your dream company,gather information about it,find its employees and connect with them.
  • Ask directly about jobs availability to H.R department because it’s a good source of information regarding job offerings.
  • You may find Director or CEO of the company on social media platforms; get to know them, because usually the final interview is usually with the CEO of the company.

Identify Top Personality Of Your Field:

  • Do you know who the best in your relevant field is?
  • If you don’t, find it out, and try learning from them by making them your source of inspiration.This helps you in places where you lack, so you can improve yourself and brighten your chance of success.

Is Your C.V Ready All The Time?

  • You should update your C.V as soon you have something new to add.Don’t forget to redesign it or just improve it.
  • How many of you have made your C.V by yourself? , well most of the people don’t make their C.V by themselves they either copy paste it or ask someone else such as “Computer Café Wala” to do it for them.
  • Most of the employers find it irritating that career objective is usually copied and most of the time it’s very generic like “to be part of the organization”, in simple words you can ask yourself what is your objective? , No one knows better than you, so take your time and rewrite you career objective.

Respect Yourself:

  • Know about yourself;who you are!
  • You should know about yourself so that you can understand your weaknesses and strengths.It is also a common question among interviewers; interestingly most of the candidates find this question hard to answer!
  • Never underestimate yourself.If you have completed any project, even a small scale one,it deserves a place in your C.V.
  • Don’t overestimate by exaggerating your personality or any project you have done.Don’t write any stuff on your C.V which you can’t prove.

Get Recommendations From Your Peers and Colleagues:

  • Acknowledge other’s accomplishments and work.It not only reveals others,but also shows your positive attitude towards others.
  • It’s also true that if you recommend others, they would most-likely recommend you in return. But you have to be careful and don’t point a characteristic of a person which they don’t possess. This leaves a negative impact on your credibility and presents you as you recommended other person just for the sake of friendship or to get a recommendation in exchange.

Understanding Expression Suite

I was browsing one day over the web for explanation regarding expression studio ,I found one interesting ,simple and brief one.I’m reproducing it with some formatting.

Expression Web is a newer version of Front Page (which product line was discontinued), and is essentially a web design tool for you to create standards based websites, comparable to tools like Adobe Dreamweaver.

Expression Design is a graphic design tool where you design your graphical assets, and despite being a vector design tool, it comes with some nifty features to add bitmap effects too, comparable to Adobe Illustrator.

Expression Blend is the Application GUI design tool, allowing you to create and design WPF and Silverlight applications (Expression Blend 2 supports only Silverlight 1.0, where Expression Blend 2.5 June Preview supports both Silverlight 1.0 and Silverlight 2). For each of your animations, you could create interactive animations, style and manage your controls, forms, and other assets of you animation. You could also effectively collaborate and work with Visual Studio. For building WPF and Silverlight applications, the basic workflow is to use Expression Blend for GUI design, styling and animating your application, and using Visual Studio to do the back-end coding. It is comparable to Adobe Flash.

I might as well also mention the other two tools of the Expression Studio suite, Expression Media allows you to effectively catalog and manage your media assets, and Expression Encoder allows you to encode video for the Web.

To create a Website, for example a ASP.NET Web application with a Silverlight Media Player, you would be using:

  • Expression Web to do your Master Pages, HTML, CSS, etc and lay out your Website structure and design
  • Expression Design to design your website’s graphical assets like a banner placed on the header, icons, transparent PNGs etc.
  • Expression Encoder to encode a video and generate a Silverlight Video Player, which is then added to your Website.
  • Expression Blend to style the Silverlight Video Player, and further customize the colors and animation to make it fit to the look and feel of your Website’s color scheme, theme, etc.
  • Expression Media, not really included in the workflow of building Websites, but could be used to manage and catalog all the graphical assets you created so you could easily find them later on.

You could check out the links to the various video, tutorials, self-study labs and stuff in the Learn section of the Expression Community. If you have any more specific questions on anything about Expression Studio you would like to know please do not hesitate to drop more questions.

Hope this “crash course” gave you a better picture of how to work with the various tools of Expression Studio 🙂

Reference:


http://social.expression.microsoft.com/Forums/en/general/thread/d219acbf-1635-4d6f-8f04-f85f78379fa9