Window.location= sending two calls to that URLs GET method

Important lesson learnt today (which ate my last 5 hours).. Consider an ajax code like this $.ajax({ type : "POST", url : "<url to hit>" success : function(response) { window.location='/cart'; }, error : function() { return false; } });   The objective of this code is to hit a particular url, on receiving success from …

Advertisements

JAVA 8 PROS AND CONS

Not going to say much, the first link that is coming on google related to streams in JAVA is : https://blog.jooq.org/2015/12/08/3-reasons-why-you-shouldnt-replace-your-for-loops-by-stream-foreach/   So, I started using streams and lambdas to get hands-on, and in between i stumbled on this article. So while this article gave me a very very simple example to start with to …