Post Redirect Get Design Pattern

November 21, 2014

Reading time ~1 minute

Post Redirect Get is a typical web development Design Pattern that solves the problem of sending duplicate post request on page refresh (F5 problem). This problem has been known for many years and there are many solutions, but the simplest and most common one is the Post Redirect Get(PRG) pattern. Not everyone knows that this solution is actually classified as design pattern due to its simplicity.

So as I said the solution is very simple:

  • Submit the form via POST.
  • Submit the changes in database.
  • Redirect the user to another page or the same page with optionally displaying the success.

Here is an image from wikipedia that illustrates the above steps.

PRG Pattern

Release early, release often (REPO) strategies

In this post I will try to review some of the things that every company should do in order to have better product releases. Continue reading

New things in C# 6

Published on December 22, 2014

ECMAScript 6 - The new JavaScript Part 2

Published on December 07, 2014