Sunday, June 4, 2017
Monday, May 15, 2017
Generating and customizing Embedded twitter timeline
Generate Timeline widget
Customize timeline widget
https://dev.twitter.com/web/embedded-timelines/parametersThursday, April 6, 2017
Saturday, March 18, 2017
Thursday, March 16, 2017
Wednesday, March 15, 2017
Wednesday, March 8, 2017
Monday, March 6, 2017
Evolution of java from early web development days to Web Framework Spring
This is more of a dump of the reading material I went through alongwith my scribbled notes to understand how we development evolved in the Java ecosystem.
In the start there was darkness
Only HTML pages exist
then came the requirement to generate them dynamically - (server side generation of HTML started)
That's when SERVLETs came into picture - HTML code in Java
Servlets were processed by a web server container like Tomcat
It soon became unmanageable.
JSP came for the rescue. - Java code in HTML -
To reduce the amount of boilerplate java code in JSP, its language evolved. More complex constructs arrived
Standard Action - One level object hierarchy supported - attributes embedded within an object attribute of a bigger object wasn't accessible
Expression Language - Multi-level hierarchy supported - Iteration over collections wasn't possible
Tag Library - Looping over collections made possible - handled 99% of usecases
Custom Tags - for the remaining 1% of the requirements, developers were allowed to define their own custom tags
Bean - any simple class with setters and getters.
Servlet - A class inherited from HttpServlet which receives the http requests and generate the response of forward the request to another servlet or jsp page.
EJB - a class(object) which exists on a j2ee server and can be accessed remote(from another JVM).
In page-driven applications, each page not only contains the business logic required to generate the dynamic content, but also the control logic to determine application flow. Control logic became difficult to maintain because there was no central location or design paradigm to help you understand how a user passed from one page to the next. And as business requirements evolved to include features like authentication and authorization, page code became convoluted with additional logic that usually had to be duplicated across pages, even if it was irrelevant to the page being constructed. On a site with 1,000 pages, all with authorization mechanisms, who wants to update all 1,000 pages when those authorization mechanisms change?
The arrival of MVC architecture - Understanding 101
The core business value in adopting Spring is the separation between code and configuration, which leads to a more manageable application.
Webserver comes bundled up with Spring ()
you can choose Jetty / Tomcat
Source:
Forum question on servlet beans - not authoritative but gives pointers
Understanding Java version releases - http://www.tecmint.com/what-is-java-a-brief-history-about-java/
How and when IBM entered the Java scene - the internationalisation angle
Rahul Gupta
Saturday, March 4, 2017
Monday, February 27, 2017
Tuesday, January 31, 2017
Monday, January 30, 2017
Garbage Collection in Javascript
What Wiki Says
StackOverflow (SO) says
http://stackoverflow.com/questions/864516/what-is-javascript-garbage-collection
A reliable source of information on garbage collection in Javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management#Garbage_collection
A reliable source of information on garbage collection in Javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management#Garbage_collection
Understanding how a memory leak can happen in javascript
Insight with example on how to debug a memory leak
http://www.dwmkerr.com/fixing-memory-leaks-in-angularjs-applicationsNote: Garbage Collection is different from Automatic Reference Counting. From the name, it may look like a variant of reference counting used as a technique in Garbage Collection
Subscribe to:
Posts (Atom)