Tagbangers Blog

Blog

How Networking Between a Client and a Server Works

When I started to work here I was creating a web server for learning, but I did't have a chance to complete it.  So recently, I started to work on it again to have a better understanding about the web. In this article, I'm going to right about how networking between a client and a server works. To s...

I Tried Real Hard to Think How Java Feels

You know what "import" is in Java, right? But how do they accurately choose the right classes to import in the first place? And how do they call the methods? Well if you were to call PrintTagbangers from a Main class, it should look something like this: Main.java package com.example.sample2; impo...

Naming Test Methods

If you're a programmer, at some point you should have faced the struggle of coming up with a good name for your classes, methods, and variables. You should have regretted looking back at your old code, thinking something like "how the hell did I come up with such a lame name?", or "I should've named...

Note about printing out a web page in Chrome

When you try to print out a web page using Chrome, the background of the page would disappear by default.  Usually this is not a bad thing, considering the appearance of the page and the amount of ink that can be saved by erasing the background. But sometimes, you might want to print out the whole t...

Post-Redirect-Get Pattern in Spring MVC

These are examples that implement the Post-Redirect-Get pattern in Spring MVC. Code is also in GitHub. https://github.com/tagbangers/spring-best-practice... Pattern1: Not using the session package practice.post_redirect_get; import org.springframework.stereotype.Controller; import org.springframew...