4 Ways CSS Can Improve Your SEO

Rob Glazebroook post a new articleshoing how CSS can help in SEO. He writes:

«We all know the overt benefits of using CSS by now – being able to centrally locate all of our presentation, the ability to replicate design changes instantly over an entire website, and so on. But not everyone is sold on such details. These days, a lot of people are more interested in SEO (Search Engine Optimization, or making your pages look good in search engines) than anything else. So what happens if you have a client or an employer whose mantra is more along the lines of, “SEO at any cost, CSS be damned”?

Well, I have some good news for you! Using CSS (and its trusty sidekick, XHTML) is actually very beneficial to your SEO standings. Below, I’ve outlined four different ways that using CSS can help you improve your search engine optimization. Some of them happen automatically, while others require you make decisions.»

Source: CSSNewbies.

TestCase 2.0.2

TestCase is a light and friendly testing framework for JavaScript code. It is written in pure JavaScript and works with all the modern web-browsers.

TestCase offers full stack test-environment. You can write usual unit-tests, you can test your web-pages structures, styles and functionality. We have lots of nice and usefull tools you was dreaming about.

The new version has the following features:

  • Updated the ajax-mocking feature, now it works everywhere

  • Updated the styles-assertions, now they understand the css-level styles

  • The mocking interface revision

  • Various small fixes and updates

Source: TestCase.

JavaScript Event Delegation is Easier than You Think

Andrew Tetlaw post a new article about event delegation in JavaScript. He write:

«If you’re into adding a little JavaScript interactivity to your web pages you may have heard of JavaScript event delegation and thought it was one of those convoluted design patterns only hardcore JavaScript programmers worry about. The truth is, if you already know how to add JavaScript event handlers, it’s a snap to implement.

JavaScript events are the bedrock of all interactivity on web pages (I mean serious interactivity, not those dinky CSS drop-down menus). In traditional event handling you add or remove event handlers from each element as needed. However, event handlers can potentially cause of memory leaks and performance degradation — the more you have, the greater the risk. JavaScript event delegation is a simple technique by which you add a single event handler to a parent element in order to avoid having to add event handlers to multiple child elements»

Source:SitePoint.

Introduction to the Ninject IoC Container

DimeCasts aite post a new screencast abou Ninject. Here's the excerpt frofficial annotation:

«In this episode we will walk you through how to use the Ninject IoC (Inversion of Control) Container. This episode will also review the basics of the Strategy Pattern as it is critical to IoC.»

Source: DimeCasts.net

What a C# Coder Should Know Before They Write VB

Kathleen Dollard post an article in which she gave some advices to C# developers who needs to write some codeee in VB.NET. Here'd small excerpt from this article:

«I just had an e-mail exchange with someone looking for a VB lead in Colorado Springs. I think they are going to have trouble filling it with an existing VB expert, and it occurred to me that someone who had led a successful VB 6 -> C# project could fit the bill, if they knew some key things about VB. I told the recruiter I thought the right person with a C# background and the right (respectful) attitude could be a good fit with two weeks work. But in the back of my mind I’m thinking “what resource could she possibly access during those two weeks.”

I am sold on the concept of polyglot programming and think every C# coder should know enough VB to do Office, late binding, and XML work in VB. That’s not what I’m talking about. Those should be wrappers and really the quality of code doesn’t matter.

I’m talking about embracing the language enough to lead a team, and I'm assuming there's honesty on all sides so the C# coder is admitting they are growing and learning. The framework is so core to what we do that it doesn't make sense to demand one language or another. But it does make sense if your crossing over in either direction to embrace the elegance of the language you’re going to work in. »

Source:Leaning Into Windows.

Using LINQ in ASP.NET (Part 2)

Bipin Joshi posst the second part of article about using LINQ in ASP.NET. He writes;»

«In the Part 1 of this series I discussed the basic operations of LINQ to SQL. By default when you use LINQ to SQL queries as shown earlier, they internally use SQL statements i.e. INSERT, UPDATE, DELETE and SELECT. In many real world applications you use stored procedures. Luckily, LINQ to SQL has a way to call stored procedures from your application. It involves bit of a work as compared to almost automated way discussed earlier. In this article I will explain how stored procedures can be consumed using LINQ to SQL.»

You can also check the first part.

Source: DotNetBips.

Tips to design your site for mobile devices

Antonio Lupetti post an article about designing sites for mobile devices. He write:

«Some day ago my friend Lucas asked to me some suggest to design a mobile version of his blog. So, in this post I want to illustrate some simple tips about how to develop a mobile version of your site such as: choosing an URL address for your mobile site version, using a redirect script for mobile devices, designing a mobile-friendly layout using CSS and HTML and (if you are a WordPress user) using a free WordPress plugin to develop your mobile site quikly. »

Source: woork.

A sneak peak at ASP.NET AJAX 4.0’s client-side templating

Dave Ward post an article in which he tells about the new features of ASP.NET AJAX 4.0. he writes:

«Hot on the heels of the recent ASP.NET AJAX roadmap, Bertrand and team have released a limited preview of the new AJAX functionality coming in ASP.NET 4.0.

To see how the new functionality stacks up, I decided to recreate my recent jTemplates example, using only ASP.NET AJAX and its new templating features. Eventually, I settled on using the DataView class, which offers more advanced, repeater-like functionality.»

Source: Encosia.

ASP.NET AJAX 4.0 CodePlex Preview 1 available

Bertrand le Roy announce first preview for the new Ajax features in ASP.NET with following features:

  • Client-side template rendering

  • Declarative instantiation of behaviors and controls

  • DataView control

  • Markup extensions

  • Bindings

Source: Bertrand le Roy's blog.

Add jQuery Intellisense To Your Visual Studio

Amit Raz post an article in which he shows how to enhance Visual Studio with jQuery intellisense. Here's small excerpt from this article:

«Here is something nice I have found while wandering around the Internet. We all know jQuery, jQuery is a Framework written in JavaScript which makes client side and DOM work much easier and faster. If you don’t know it yet, be sure to check it out, it makes Web Developers life easy on the web. Shahar wrote a great article about Calling ASP.NET WebMethod with jQuery so check it out.»

Source: Dev102.

Building your own lightbox - part 1

Kilian Valkhof writes about creating your own lightboxes. He writes the following:

«A lightbox is a way of showing an image, a movie or an entire web page as an overlay on a website. It is often used in gallery style websites and for portfolio’s. This article will look into the basics of building your own lightbox for images.

Part 2, published next week, will look into some of the cooler stuff:

  • Loading in pages instead of images

  • Adding a loading animation

  • Adding a nice close button

  • Using cool different animations

  • Send some text along with an image and display it next to it

  • Display multiple lightboxes on top of each other

  • Combining all the above »

Source: Kilian Valkhoff blog.

Non-blocking JavaScript Downloads

Stoyan Stefanov post an article in which he tells about non-blocking loading JavaScript source files. He writes:

«Let’s first take a look at what the problem is with the script downloads. The thing is that before fully downloading and parsing a script, the browser can’t tell what’s in it. It may contain document.write() calls which modify the DOM tree or it may even contain location.href and send the user to a whole new page. If that happens, any components downloaded from the previous page may never be needed. In order to avoid potentially useless downloads, browsers first download, parse and execute each script before moving on with the queue of other components waiting to be downloaded. As a result, any script on your page blocks the download process and that has a negative impact on your page loading speed.

Here’s how the timeline looks like when downloading a slow JavaScript file (exaggerated to take 1 second). The script download (the third row in the image) blocks the two-by-two parallel downloads of the images that follow after the script:»

You can read more at the YUI Blog.

Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 12

Scott Mitchell post the next article from the series about ASP.NET Membership. This time he shows how to apply user- and role-based authorization rules to methods and classes. He writes:

«Several of the earlier installments in this article series examined how to apply authorization rules in order to prohibit particular users, roles, or classes of users from accessing particular resources. For instance, Part 2 how to define URL-based authorization rules in web.config for roles. With just a bit of XML markup, it is possible to block particular users or roles from visiting certain web pages. Just installments also looked at using the LoginView control, which displays different markup based on whether the user is authenticated or not (and can also be used to display different markup based on the currently logged in user's role). There are also programmatic techniques you can use to determine the identity of the currently logged on user and what roles she belongs to.

The URL-based authorization, LoginView control, and programmatic techniques can be used in tandem to ensure that a user does not visit a page or perform some operation if she is not authorized. But what if you forget to implement one of these safeguards? For example, imagine that you have a web page that includes a button that, when clicked, perform some task that is only intended for administrators. You could put this button in a LoginView control or you could use programmatic techniques to ensure that only users in the appropriate role (say, Admin) saw the button. But what if sometime later you, or another developer, removed this check by accident? The net result would be that any user visiting the page could perform the administrator-only operation! »

Source: 4Guys from Rolla.

Syndicate content