Tuesday, May 17, 2011

Create Offline Web Application On Mobile Devices With HTML5

Create Offline Web Application On Mobile Devices With HTML5: "The use of Web development in mobile applications is an increasing trend."

Should I use HTML5 or Silverlight? One man's opinion.

Should I use HTML5 or Silverlight? One man's opinion.: "

I was in Belgium and The Netherlands this last week presenting and talking to folks in the community. After I presented on ASP.NET MVC 3, HTML5 and jQuery, one fellow came up after and said, "Should I use Silverlight or HTML5. I don't understand what Microsoft's strategy is or what to use in my app."

Since I work for the Web Platform and Tools team (ASP.NET, IIS, etc) I spend a lot of time working, coding, and thinking about the web. However, I'm not an official strategist, or marketing guy.  But I do have an opinion; one that is mine and no one else's.

That said, I don't think it's that hard and I'm surprised there's so much confusion about this (both outside and inside Microsoft.)  Companies have their official positions but then there's the realities of the web. Here's what the young man asked me and what I told him.

NOTE: I'm talking only about Silverlight in web browsers, not Silverlight for Phone, Games, Out of Browser, High Trust, and other environments that are uniquely Silverlighty.

Should I use HTML5 or Silverlight in my Applications? If you're embracing jQuery, where does Silverlight fit in?

Even though browsers like Chrome release and update very often, not every company is going to upgrade all their browsers every week or even twice a year. Some enterprises will be on Firefox 3.6 for a while longer, or (hopefully not) IE6. Browser plugins like Silverlight and Flash can add new functionality faster. They are called plugins for a reason. They plug-in and add something.

HTML5 isn't 100% done, but today it's already a collection of things that can be used now. Your web apps should use techniques like progressive enhancement to detect available features. As newer browsers include useful features like geolocation and video that used to require plugins, then older plugins become unnecessary. Plugins rev and add new more advanced features like DVR-like video and hardware-accelerated 3D. Those features will eventually find their way into browsers in a few years and the cycle will continue.

Silverlight 5 will become Silverlight 6, Flash 10 will become Flash 11 and HTML5 will become HTML6. Each new spec will add new features, innovating, and pushing the others forward . The web will be pushed forward by all these and more.

There's no question that advanced media apps, 3d, DVR video scenarios shine on Silverlight. Silverlight CAN do some things that HTML5 can't.

If you are creating an application for the web that needs images, links and text boxes, some animations and interactivity, there's no reason you shouldn't use HTML. With new JavaScript libraries like Modernizr, jQuery along with Polyfills, you can even use many HTML5 features and still have good functionality on ALL major browsers - not just the most recent generation.

If your application is internal or a line of business app and is what I call a basic "text boxes over data" application, you have a few choices. You can certainly use Silverlight and its databinding features, or you can use JavaScript libraries like KnockoutJS and write it in HTML. It depends on where you and your company's core skillset lies. Both are good choices and both aren't going anywhere.

If Silverlight has a feature that you need that isn't a part of mainstream browsers, consider a web app that is both HTML/JavaScript and Silverlight. I'm consistently surprised that people feel the need to make Silverlight apps that fill the entire browser but consist of mostly text, images, links, etc. Don't try to make Silverlight act like it's HTML. It's not. Plugins are complimentary to the web, they are not the web. Use them in complementary ways to make the best experiences you can.

If you need basic video like YouTube, use <video> tags if your browser supports the codecs you need, and a plugin if not. However, if you need live video, adaptive smooth streaming, DVR functionality, H.264, or other features that aren't part of HTML5, then again, use a plugin.

Also consider your own productivity and happiness and the tools you want to use. Think about your users, your dev team and their overall happiness.

Apps in C and C++ have their place in games and uniquely native scenarios. Apps using managed languages and XAML balance easy development and deployment flexibility. Apps in HTML and JavaScript work everywhere on the web. Perhaps one day we'll be able to easily mix and match these styles in the best of all worlds.

Until then, it's simple. Use HTML when it makes sense to your solution. Use a plugin when it provides unique functionality. Rinse, repeat. Apply common sense, and a little hair gel.



© 2011 Scott Hanselman. All rights reserved.



"

How To Set Goals and Achieve Them

How To Set Goals and Achieve Them: "

"I love deadlines.  I like the whooshing sound they make as they fly by."  -- Douglas Adams

I wrote a step-by-step How To on How To – Set Goals and Achieve Them on Getting Results.com.

I find setting goals and achieving them is a blend of art and science.  The art part is knowing how to frame the goal in a way that inspires you to action on a regular basis.  The science part is breaking the goal down into actionable steps that you can measure against targets.

Over the years, the three most important things I learned about goals are:

  1. Factor the inspiration from the perspiration.
  2. The "Why" behind the goal is everything.
  3. You can achieve big goals by taking little steps over time.

Factor the Inspiration from the Perspiration
Dream big.  Don’t hack up your dream into little insignificant parts right off the bat.  Inspire yourself with skill.  Find your buttons and push them until that little part of you that wants more from life wakes up and says, I want me some of that.

Goals are among the best way to change your life or change the world or simply move forward versus slide back.   Create inspirational goals, the kind that light your fire.  That’s your starting point.  That gets you ready for the tough part.

The perspiration of the goal, or the tough part, is translating the end-in-mind into action.   This is the part where you break the goal down into sub-goals, steps, and actions.  This is the part where you make the goal SMART – specific, measurable, actionable, relevant, and timely.  This is the part where you get clarity on what success looks like along the way, and how you will map out your path to get to your destination.

The simple lesson here is, dream up compelling goals first and get excited before you start applying the rigor and discipline of making them happen.  Then use the rigor and discipline of making them happen to inspire you along the way, as you make progress toward your goal.

The Why Behind the Goal is Everything
There are many ways to kill a dream or kill a goal.  The longer it’s spread out over time and space, the more hurdles and challenges you might have to deal with along the way.  But some goals are dead right out of the gate.

If your goal lacks life and has no compelling “Why” to drive it, it’s dead in the water.  It doesn’t stand a fighting chance.  If you want your goal to stand the test of time and to help you stay the course, then you need to have a compelling “Why” behind it.  The “Why” is the generator of your juice that makes you go.  You know it’s working when you simply remember “Why” and you are back on track.

You Can Achieve Big Goals by Taking Little Steps Over Time
The surprise is that consistent action really does pay off.  It’s a case of slow and steady wins the race.  The trick here is not to go intentionally slow and not to depend on baby steps.  Instead, it’s to find the way forward, and to keep taking action.  Sometimes that means taking little steps.  Those little steps add up over time.

I integrated these lessons into my How To – Set Goals and Achieve Them to stack the deck in your favor and to help set you up for success in achieving your goals.

"

Friday, May 13, 2011

Wednesday, May 11, 2011

5 Lightweight Alternatives to Apache and IIS Web Servers

5 Lightweight Alternatives to Apache and IIS Web Servers: "

Nearly everybody has heard of Apache and IIS web servers. They are the top two web servers in terms of popularity. But Apache and IIS are not the only capable web servers around.


"

Saturday, May 7, 2011

Application Performance and Architectural Problems You can Find in One Hour

Application Performance and Architectural Problems You can Find in One Hour: "Too many database statements, slow running queries, chatty or slow remoting calls, hidden exceptions, heavy garbage collection or problematic 3rd party code. These are the most common problems we find in most applications. In this blog I give you a quick overview of the problems you can find within an hour on the example of a distributed Java/.NET Enterprise Application.



Add to digg
Add to StumbleUpon
Add to del.icio.us
Add to Google



"

Friday, May 6, 2011

HTML5 and CSS3 Cheat Sheets

HTML5 and CSS3 Cheat Sheets: "

In doing research for this post I discovered that DevCheatSheet.com has an awesome collection of 22 HTML5 Cheat Sheets. I didn’t want to needlessly re-post what they already have so I cross-checked my collection with theirs and I’ve only shared below the ones you won’t find there.


HTML5 Cheat Sheets


These are not found at DevCheatSheet’s HTML5 Cheat Sheets




CSS3 Cheat Sheets


These are not found at DevCheatSheet’s CSS3 Cheat Sheets




Thanks DevCheatSheet.com for the awesome collection!



No related posts.





Comments"