Jakobsson

Stories submitted by Jakobsson

Front end performance, the key to success - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 3 months ago

Only about 5 - 15% of the load time from a common website is from the actual server side rendering. The rest of the time is spent downloading scripts, stylesheets, images etc. So, the question is, why do we spend so much time trying to fix our "slow" sql queries? read more...

add a comment |category: |Views: 6

tags: another

My experiance with the prototype framework - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 4 months ago

It has been a long time now since my last post. I have simply not found the time to write anything. But today I have a little spare time, so I tought I'd write a little bit about my experiance with the prototype javascript framework. read more...

add a comment |category: |Views: 4

tags: another

The war of the var keyword continues(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 6 months ago

I don't know how many times I have read articles about the var keyword, and how "dangures" it is to the readability of your code. Yesterday Steve Wellens about how misused the keyword is. I have to say that I couldn't dissagree more. read more...

add a comment |category: |Views: 10

tags: another

Handling image uploads with Asp.Net Mvc (mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 6 months ago

A very common taks in web development is uploading images. This isn't realy a hard task in it self, but it can be pretty frustrating to write the same code over and over again even if its only a few lines. read more...

add a comment |category: |Views: 316

tags: another

What my toolbar looks like - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 7 months ago

I guess that most developer have their favorite set of libraries that they use in just about every project. Atleast I have such a toolbox. They are tools that I find myself using constantly and that I feel help me in my development. Here comes my list. read more...

add a comment |category: |Views: 9

tags: another

Using partial views for javascript - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 7 months ago

Lately I have been working on a web application that requieres quite a bit of javascript. I decided to use the Mvc pattern here that I have written about before to see how it works out and to get a more readable and seperated javascript code. I did want to seperate the view, model and controller from each other in different files to be able to get a better overview of the javascript code. It can be very hard to read javascript if you have line after line in the view it self and to be able to reuse the same parts in different similar views. read more...

add a comment |category: |Views: 6

tags: another

Why code blocks in the UI is a good thing - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

A very common argument against the asp.net mvc framework is that people don't want to use server side code in the same place as you have the html code. Some say it makes the code unreadable or that it is a step backwards in development and closer to asp 3. In my opinion, this is a very thin argument that comes from developers that haven't even tryed the framework. read more...

add a comment |category: |Views: 7

tags: another

Using the MVC pattern in javascript - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

As anyone who have ever worked on a javascript heavy page knows, javascript can very easily get out of hand and become a mess. Roy Osherove thinks we should fix this problem by generating our javascript using a server side programing language. I didn't realy like this idea, nor did Jimmy Bogard. But the other day my friend, Magnus Bertilsson, showed me this nice article where Jonathan Snook talks about implementing the MVC pattern on the client side. read more...

add a comment |category: |Views: 5

tags: another

What I look for in a ORM - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

In just about every application I build that use a relational database, I also use a orm tool to handle my data access. The reason I do this is to save myself the time it takes to handroll a data access layer in ADO.Net and to eliminate buggs that can come from writing sql queries. I do have a few things that I look for in a professional orm that I think is important. read more...

add a comment |category: |Views: 8

tags: another

Promise only what you acn keep - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

When I write a method I often try using interfaces as return type and parameters, as long as it's not a method that should return a domain object. The reason for this is that I don't wan't to promis to much to the calling code. read more...

add a comment |category: |Views: 6

tags: another

Building a forum application, Part 9 - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

I have now been refactoring quite a bit more. This time I have been focusing on the views and controllers. I have refactored the way I handle the model on my view. Before I have used a "data everywere" approach. I didn't realy like how that turned out, so I decided to go for some other alternative. read more...

3 comments |category: |Views: 221

tags: another

Do not be afraid of adding new files to a project (mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

Is it wrong to have a lot of files in a project? Is it hard to maintain a application that has a lot of files? Well, my answer to those two questions is: No, It is not. Its quite the opposit in my opinion. In my opinion a file should only have one public type, and be named after that. This makes it a lot easier to maintin. read more...

add a comment |category: |Views: 7

tags: another

I would not abstract away my javascript(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

Yesterday I saw this post by Roy Osherove where he talks about Script# and writing c# code to generate javascript code. I dont realy like this idé, as javascript and c# are two very different languages. While c# is a static programing language, javascript is a dynamic scripting language and it would be impossible to write everything with c# that you can in javascript. read more...

add a comment |category: |Views: 7

tags: another

Fluent twitter search API - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 9 months ago

The other day I was working on a application at work that needed to use the twitter search api. I Figured I might just as well build a small wrapper for the api as I will probably use it in other applications as well. I decided to make a fluent interface, as I think that is the most readable way of cunstructing a query like the one I need for the api. read more...

add a comment |category: |Views: 65

tags: another

A application isnt stronger then its weakest layer(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 10 months ago

When you want to increse the preformance of one of your web applications, what is the first thing you look at? For many developers, the answer is the data access. How can I write this query in a more sufficiant way, so that I can get preformance gain? In my expreiance, we tend to think that this is the part of the application that we can optimize the most. read more...

add a comment |category: |Views: 6

tags: another

Building a forum application, Part 8 - mattias-jakobsson.net(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 2 years, 10 months ago

I have had time to think a little bit about how to continue with the application. And I have decided to do a little bit of refactoring. This will probably be quite a lot of refactoring, so I will split it up in two or three posts. In this post I will write about how I refactored the initialization part of the application. read more...

add a comment |category: |Views: 6

tags: another