JScript Editor Extensions for Visual Studio

Microsoft have done a really good job by giving developers a great environment to do their work in; namely the Visual Studio suite with all its variants. This IDE’s intellisense is one of its strongest points, but anyone that’s tried to write javascript code has probably felt a bit lost.

Intellisense, brace-highlighting, current variable highlighting, code comments…all gone….until now!

Microsoft Corp has just released JScript Editor Extensions, a Visual Studio extension that enables all of the above, along with code outlines. I admit it’s nothing revolutionary compared to other well-established web-IDE’s, but it’s still great to have extended tooling support within Visual Studio itself.

Here’s a look at what the IDE looks like with bracing support and outlining. Notice the collapsed ‘complete’ and ‘success’ functions

Brace-highlighting, collapsible code

 

 

Head over to the Visual Studio Gallery and try out JScript Editor Extensions.

 

Microsoft PDC ’09 Videos

Some of you might know that Microsoft recently held its yearly Professional Developer Conference (PDC) in LA. They had an awesome lineup of “stars” lined up to talk about the latest microsft technologies, as well as  shedding some light as to the direction in which the technology is progressing.

I wasn’t one of the lucky to be there, but I got to watch the live-stream of the keynotes and some of the Channel 9 live stuff. Also, another GREAT feature is that most (if not all) the talks are available for viewing on the PDC site.

Some of the big stuff that was released were:

So, lots of videos on exciting topics, including stuff on C# 4.0, Windows 7 and more… Check them out.

Microsoft Facebook SDK now officially supported

The Microsoft SDK for Facebook Platform has reached version 3.0 and is now officially supported by the Facebook Development Team. The team recently announced this on their dev-blog, which is great news for all .NET developers wanting to develop applications against the Facebook Platform.

..This SDK contains rich social features and offers something for almost any kind of Facebook developer who is building with Microsoft technology, whether you’re implementing Facebook Connect or are building a Web-based or desktop application…

Microsoft has also supplied a great SDK Overview that will get you started with facebook development in technologies like Silverlight, WinForms, WebForms /ASP.Net, ASP.Net MVC. There are several examples along with the documentation that should be more than sufficient to get the ball rolling.

Share your url to Twitter

twitter logo

So, you’ve written that great article, you’ve shared it to your friends on facebook, and you’re looking to spread the word even further. Through Twittter, your url can reach entire diffrent audiences than Facebook sharing. Getting those first few important re-tweets on Twitter will start to spread your new blogpost like wildfire.

If Twitter is still a great mystery to you, I’d recommend Scott Hanselman’s introduction to twitter. You may also be interested in reading Twitter’s own brief “about us” page.

Time to get our hands dirty

It’s extremely simple to send an update to twitter using their public share url like so:

http://twitter.com/home?status=Currently reading http://pavsaund.wordpress.com/2009/11/04/share-your-url-to-twitter-share

So now you know how to do it, there’s no reason not to just add a tweet this icon! tweet this

Sharing links to Facebook

sharetofacebook

Need to spread the word on your latest blog-post or article? Look no further than the Facebook sharer! Facebook has over 300 million users world-wide, and the chances are good that you can recruit readers. Adding a “share to facebook” icon easily allows your readers to spread YOUR word. This can be accomplished by using plugins for your blog-service, or “share-all” widgets like AddThis or ShareThis. The problem with these services, are that they over-complicate the simple share functionality that’s often wanted. That’s where implementing specefic Facebook-share functionality comes in very handy.

The Facebook sharer

Facebook has a large development community that uses its extensive API to publish applications, and advanced Facebook features on their sites. The simplest way to spread the word is the basic facebook sharer-url.

http://www.facebook.com/sharer.php?

By visiting the facebook-sharer page, you can get code to copy/paste into your site to enable sharing fast and simple. All you need to do is choose the desired look of your link, and copy the accompanying code-snippet.

Facebook provides 4 options here:

  • fbshare_icon
  • fbshare_text
  • fbshare_icontext
  • fbshare_javascript

Linking to the sharer

The sharer accepts 2 parameters when passing in the URL to share. Remember that each variable has to be encoded. Refer to the script provided by Facebook for the exact code for this.

  • u=
  • t=

This would give the following url

http://www.facebook.com/sharer.php?u=http://pavsaund.wordpress.com/2009/10/22/sharing-links-to-facebook/&t=Sharing links to Facebook

Help the sharer with !

The sharer-bot does a crawl of the url sent in, and extracts the title, page content and relevant images. The bot does this based on it’s own algorithm, and usually this works just fine. The problem occurs when you share a page filled with content and images that may confuse the bot. In these cases, the bot may share the wrong picture or unrelated content.

If you want to control exactly what’s shared then you need to include the following meta tags in your page’s head.

This way, you control exactly what the reader shares from your page. Consider also adding your blog-info in the content, as this rarely gets picked up by the bot (since this is reserved for the end of an article or a separate page)

A few things to keep in mind

The meta names title and description have to be lowercased for the bot to pick them up. Other wise it seemingly ignores them.

The facebook sharer states that when using meta tags, the minimum tags to include are title and description, otherwise metatags are ignored.

Beware when sharing sites with dynamic content linked to a static url. Facebook caches all pages it crawls and may store this cache for several weeks. This may also cause problems for sites with dynamic url, as it seems Facebook my have old DNS lookups cached.

Rounding up..

I hope this post is of some value to you. Feedback is always welcome!

‘Dev’casts

Podcasts

I haven’t really been much of a podcast-subscriber, but since getting an Ipod nano, I found them entertaining and practical. I tried subscribing to a couple of radio-podcasts (RadioResepsjonen, Pyro, Tinitus) from a few Norwegian station. This worked out pretty nicely while I was at work, but seeing that I’m now on paternal leave, I have no time to listen to them.

The Space-Time Continuum

Paternal leave gives me tons of time with my 10 month old son, but it exhausts me totally. So when he sleeps, I find myself on the sofa trying to get back my energy. I’m really, really loving the fact that I have the opportunity to spend so much quality time with my family, but I find that i don’t have the time to deep-dive into code and experiment, which was part of the plan for my leave. It seems that there’s always something that comes up that takes up the time, and I’m guessing this is just the start of it since we’re expecting number 2 in August 😉

Devcasts

I came over a blog by Scott Hanselman, and found his podcasts, Hanselminutes. I listened to one of the top-rated episodes: Be a better developer in 6 months. This was one of the largest motivational factors that inspired me to start this blog, and has really given me a strong drive to endorse myself in coding.

So..a strong interest for developing, and “no” time to endorse it.

Devcasts to the rescue! These podcasts by Scott really covered vast amounts of topics and gave good insight into coding techniques, patterns, technologies and much, much more … BabySmash!

I found that I could subscribe to these devcasts, rather than those radio shows, and listen to them while walking with my son in his stroller. It was, and still is a great way to really get my curiosity going and has given me a drive to make time to code 🙂

More Devcasts….

So Hanselminutes was the start, but it’s obviously good to get inout from other people. More variation, more opinions, more learning… That’s when I came across a great blog by Einar Ingebrigtsen, a Microsoft MVP situated in Vestfold, Norway. I first came across Einar through a dev-evening arranged through IKT-Grenland where he held a great session on silverlight 2.0. Einar also podcasts, or rather videocasts, which really are great. I listened to him interview Scott Hanselman the other day, and was hooked.

So now I’m a regular on Scott’s and Einar’s devcasts. Through these I’ve discovered several really, good blogs and also a podcast by StackOverflow

Devcasts, blogs, twitter…

So now I’m following blogs by Scott, Einar, Jeff Atwood (StackOverflow) and several others on a regular basis. Alongside this I follow several devs on Twitter that give me small 140 characters of inspiration (bite-size!). Twitter is a great way to keep get heads-up info on new topics, techniques, tips or just get solid good information.

So I’m slowly trying to expand my network, gathering more information from more devcasts, tweeple, blogs. I strongly recommend anyone who hasn’t listened to devcasts to give it a try.

Please feel free to drop off any comments