Tampilkan postingan dengan label technical. Tampilkan semua postingan
Tampilkan postingan dengan label technical. Tampilkan semua postingan

Technical Blogging Tips 1 million page views and lessons learned in technical blogging

Sabtu, 07 Juni 2014




Firstly, thanks to all my followers and readers for your support in reaching this milestone of 1 million page views.



Here are a few technical blogging tips based on my experience.

1. You need to be patient and keep at it

It took me around 9 months to go from 100 to 4000 daily page views. It was a gradual and slow process, and  I promoted my site via publishing articles at www.javalobby.com and helping out fellow professionals via industry specific forums like www.javaranch.com. Paid attention to Google key words that are not highly competitive and ensured that my contents had the key words to come up on google search for key words like "Java interview questions". The Google analytics revealed the following growth.






2. Sign-up to Google, and get the right tools 


  
-- track your progress and gather metrics (e.g. Google analytics) 
-- Sign up for Google adsense  to earn a small passive income.
-- Feedburner to enable your readers to subscribe to your bog feeds.
-- Google+ to network with your followers.



3. Pay attention to "repeated visitors" and "bounce rate" in Google analytics

Google analytics is a great tool to monitor how well your blog is doing. Two of the key metrics that I constantly look at are

The number of returning or repeated visitors. The slow and steady increase in this number indicates that you are getting some loyal readers who like reading your blog posts.

Jan 2012: 2,825 
Feb 2012: 4,007 
March 2012: 7,131 
April 2012: 10, 321
May 2012: 14,304 
June 2012: 19,122
July 2012: 22, 327 
Aug 2012: 24, 390 
Sep 2012: 25, 994

The "bounce rate" needs to be kept around  70% or less

You cant please everyone who comes to your site. Make sure that the landing page is interesting and informative enough to keep the bounce rate below 70%. If the bounce rate is high, then the problems may include irrelevant information, poor design or that your campaign is targeting unqualified visitors, too many advertisements putting people off, the content is not unique enough and freely available in many other sites, etc. You need to come up with an idea that will differentiate both your site and your content from others in the same niche. Not easy, but possible. For example, there are so many matured sites on "Java Tutorials" and very hard to compete on. The small number of tutorials provided in this blog are mainly to provide some familiarity with the sought-after technologies and frameworks.The real differentiating factor for this site is proving quality Java job interview questions with concise and easy to grasp answers.


4. Use the social media like "Facebook" and "Google+" to network and stay in touch with your readers.

It is vital to network and stay in touch with your readers and fellow professionals to open more doors. Help others and ask for feedback as to how you can improve the quality of your blog posts. Learn the problems faced by your followers and provide solution. Nothing beats the "word by mouth" marketing.


5. Sign up for "google adsense" and "infolinks" advertisements to earn a small pocket money

Dont place any advertisements until you get around 5000+ repeated visitors. Once you get enough repeated visitors you can sign up for "google adsense" and "infolinks" advertisements to be placed. Dont over do it as too many advertisements can annoy your readers. Generally, vertical and horizontal banners perform better. Set up custom adsense channels to see which advertisements are doing better. Dont expect too much from these advertisements, but can be a good passive pocket money in the order of $6.0 to $20.0 per 4000 page views.

6. The main reason for blogging is to open more doors in other areas


As an independent contractor, my blog helps me capture my experience and stay relevant.

Q. Why capture myexperience?
A.

  • Firstly, it will serve as handy notes for my future references.
  • Secondly, I can refresh or jog my memory prior to job interviews to provide a more convincing answers to open-ended questions like -- tell me about yourself? what are your strengths? give me an example where you applied your problem solving skills? what are your recent accomplishments?
  • Finally, my blog contents can potentially become an inspiration to self-publish my own book. Publishing my own book has never been easier with the advent of POD (Print On Demand) publishers like createspace.com, lulu.com, etc. 

It also gives me an opportunity to network. Some of my past and current employers have read my blog posts, and it has certainly helped me win new contracts. Also, it has improved my researching and written skills. In future, if you have a reasonable size followers, you could promote other products and services. You can increase your understanding of the fundamentals from relevant questions and intelligent doubts raised by your readers.


7. People dont have whole day to read your blog posts

So, it needs to be short and sweet. The headings need to be catchy and informative. For example, I have come across some catchy titles like "How I taught my dog polymorphism", "I quit my job today, and so should you", etc.  It needs to be laid out well enough to navigate between topics. Add diagrams and code snippets where applicable.  Consult the "google  key words tool" to optimize your blog titles for SEO.

8. You need to consistently post blog entries, and cant afford to be complacent.

The times that I had been a bit slack in posting new blog posts, my google search rank had dropped. Currently, I have about 135 blog entries. Post about 2 to 4 per week. Dont post multiple entries the same day. One entry per day. The way the SEO works for the blog posts, it not only looks at the backlinks and the key word concentration, but also the reader involvement in terms of the number of comments posted, site popularity with repeated visits, etc.
Read More..

Top 20 Java technical interview questions and answers for experienced Java developers

Rabu, 05 Februari 2014

If you are an interviewer -- it really pays to ask well rounded questions to judge the real experience of the candidate as opposed to just relying on the number of years.

If you are an interviewee -- You have no control over what questions will be asked in Java job interviews, but there are a few Java interview questions that are very frequently asked in job interviews, and it really pays to prepare for those questions. Here are a few such questions. This is based on some of my recent interviews. Brushing up on these answers will boost your success rate in Java job interviews.

The focus is on judging your experience. So, go through your resume and reflect back on your hands-on experience. Many of these answers will also serve you well in selling your technical strengths to open ended questions like -- tell me about yourself? , why do you like software development?, when reviewing others work, what do you look for?, what was your most significant accomplishment?, etc

Q1. Can you describe the high level architecture of the application that you had worked on recently? or Can you give a 100 feet birds eye view of the application you were involved in as a developer or designer?

A1. The purpose is to judge your overall experience. Here are a few links that will prepare for this most sought-after question, especially for the experienced professionals.



Q2. How would you go about deciding between SOAP based web service and RESTful web service?
A2. Web services are very popular and widely used to integrate disparate systems. It is imperative to understand the differences, pros, and cons between each approach. Recently, I have been asked these questions very frequently, here is the answer that discusses the pros and cons of SOAP vs. RESTful web services in detail.  

Q3.How will you go about ensuring that you build a more robust application? or How do you improve quality of your application?
A3. This question is very popular with the interviewers because they want to hire candidates who write good quality application. Here are some useful links to prepare for this question.


Q4. What are some of the best practices regarding SDLC? Have you worked in an agile development environment? Did you use test driven development and continuous integration?
A4. 
Q5: Can you write code? How would you go about implementing .....?
A5:  You will be asked to write a small function or a program. The interviewer will be looking for things like
  • How well you analyze the requirements and the solution? Ask relevant questions if the requirements are not clear. Think out loud so that the interviewer knows that how you are approaching the problem.The approach is more important that arriving at the correct solution.
  • List all possible alternatives.
  • Write pseudo code.
  • Write unit tests.
  • Where required, brainstorm with the interviewer.
  • Find ways to improve your initial solution. Talk through thread safety and best practices where applicable.
Here are some links to popular coding questions and answers.
  • Java coding interview questions and answers:. Covers a number of coding questions with answers. These are some of the popular coding interview questions like reversing a string, calculating the Fibonacci number, recursion vs iteration, equals versus ==, etc.

Q6. How would you go about designing a car parking station?
A6.
Map out the requirements:
  • The car park needs to cater for different types of car parks like regular, handicapped, and compact.
  • It should keep track of empty and filled spaces.
  • It should also cater for valet parking.
Map out the classes that would be required. Use a UML class diagram. Here are some points to get started.
  • A CarPark class to represent a parking station.
  • A ParkingSpace can be an abstract class or an interface to represent a parking space, and RegularParkingSpace, HandicappedParkingSpace, CompactParkingSpace, etc are subtypes of a ParkingSpace. This means a RegularParkingSpace is a ParkingSpace.
  • A CarPark has a (i.e. composition) finite number of ParkingSpaces. A CarPark also keeps track of all the parking spaces and a separate list of all the vacant parking spaces.
  • A Vehicle class uses a (i.e. delegation) ParkingSpace.  The Vehicle class will hold attributes using enum classes like  VehicleType and ParkingType. The vehicle types could be Compact, Regular, and Handicapped. The parking types could be Self or Valet. Depending on the requirements, the self or valet types could be designed as subtypes of the Vehicle class.


Q7: Can you design the classes that represent a restaurant?
A7: Very popular. Good understanding of OO design is vital to job interview success. Learn the SOLID design principles, know why you favor composition over inheritance, and dont under estimate the power of coding to interface.
  • Java OO Interview Questions and Answers. A step-by-step tutorial explaining how you would go about designing your classes. The "Core Java Career Essentials" PDF covers more examples on SOLID design principles with working code.

How would you go about identifying thread safety issues in an application? How would you go about identifying memory leaks issues? How would you go about identifying performance issues?, etc to judge your experience. I am yet to work on a project that didnt face problems relating to thread safety, memory leaks, and performance issues. Hence, it really pays to market your skills and experience in fixing issues relating to these common challenges.


Q8. How will you go about fixing memory leaks in Java?
A8. Again, a very common problem, and a thorough answer will go a long way in securing your next Java job.

Q9: How will you go about fixing performance issues in Java?
A9:
  • Detecting performance issues in Java. A basic tutorial covering -- how to detect performance issues.
  • Also, refer to the JMeter tutorials in this blog as to learn how you can put load on your application to simulate concurrent users.

Q10: How will you go about detecting and fixing thread-safety issues in Java?
A10: Debugging concurrency issues and fixing any thread starvation, dead lock, and contention requires skills and experience to identify and reproduce these hard to resolve issues. Here are some techniques to detect concurrency issues.
  • Manually reviewing the code for any obvious thread-safety issues. There are static analysis tools like Sonar, ThreadCheck, etc for catching concurrency bugs at compile-time by analyzing their byte code.
  • List all possible causes and add extensive log statements and write test cases to prove or disprove your theories.
  • Thread dumps are very useful for diagnosing synchronization problems such as deadlocks. The trick is to take 5 or 6 sets of thread dumps at an interval of 5 seconds between each to have a log file that has 25 to 30 seconds worth of runtime action. For thread dumps, use kill -3 in Unix and CTRL+BREAK in Windows. There are tools like Thread Dump Analyzer (TDA), Samurai, etc. to derive useful information from the thread dumps to find where the problem is. For example, Samurai colors idle threads in grey, blocked threads in red, and running threads in green. You must pay more attention to those red threads.
  • There are tools like JDB (i.e. Java DeBugger) where a “watch” can be set up on the suspected variable. When ever the application is modifying that variable, a thread dump will be printed.
  • There are dynamic analysis tools like jstack and JConsole, which is a JMX compliant GUI tool to get a thread dump on the fly. The JConsole GUI tool does have handy features like “detect deadlock” button to perform deadlock detection operations and ability to inspect the threads and objects in error states. Similar tools are available for other languages as well.

Java Interview Questions 11- 13 for experienced developers

Read More..