Programming

JavaScript DOs and DONTs

JavaScript DOs and DONTs   1.     Use Shortcut Notations:   This code [Avoid] Is the same as [Use Instead]   var lunch = new Array(); lunch[0]=’Dosa’; lunch[1]=’Roti’; lunch[2]=’Rice’; lunch[3]=’what the heck is this?’; var lunch = [    ‘Dosa’,    ‘Roti’,    ‘Rice’,    ‘what the heck is this?’ ]; Read more…

By whatsq, ago
Programming

Tips on setting up a Junit test case

Do not use the test-case constructor to set up a test case [Junit]   Context:   Setting up a test case in the constructor is not a good idea. Consider: public class SomeTest extends TestCase    public SomeTest (String testName) {       super (testName);       // Perform test set-up    Read more…

By whatsq, ago
Programming

Tips for Swing UI Layout

Tips for Swing UI Layout   1. Avoid using JEditorPane and JTextPane: Most Swing components in Java 6 have a meaningful baseline. However, some seem to have no correct baseline (for no apparent good reason). JEditorPane and JTextPane are examples of such components. This means that it is impossible to Read more…

By whatsq, ago
Programming

Best Practices for Multithreading in Java

Best Practices for Multithreading in Java   1. Synchronization: If you have shared mutable data, synchronize access to it. Synchronization makes sure that an object is seen only in a consistent state by any thread, as it ensures mutual exclusion. It also guarantees reliable communication between threads as it ensures Read more…

By whatsq, ago
Programming

Character encoding in Java

Character encoding in Java   Java iterates through all the characters that the string represents and turns each one into a number of bytes and finally put the bytes together. The rule that maps each Unicode character into a byte array is called a character encoding.   So it’s possible Read more…

By whatsq, ago
Programming

Arrays Usage Tips

‘Return zero-length arrays, not nulls’   Some APIs intentionally return a null reference to indicate that instances are unavailable. This practice can lead to denial-of-service vulnerabilities when the client code fails to explicitly handle the null return value case.   For methods that return a set of values using an Read more…

By whatsq, ago
Programming

Programming tips for Performance Improvement

  a. Always try to avoid generating garbage, because this will reduce the need to run a garbage collection. Just think about three things:         1.Reuse existing objects       2.Avoid creating unnecessary objects       3.Create object pools (Use Object Pool only when object creation is very expensive like threads Read more…

By whatsq, ago
Newsletter

30 quick conversion tips

30 Quick Conversion Tips Every Marketer You have thousands of visitors coming to your site, but no conversions. So what do you do? Should you change your marketing campaigns?… Maybe redo your targeting? Or even worse, pause your SEO and content marketing efforts? Probably not. Before you modify your marketing Read more…

By whatsq, ago
Information Technology

SkyDrive

SkyDrive is a file hosting service that allows users to upload and sync files to a cloud storage and then access them from a Web browser or their local device. You've got access to everything on your SkyDrive wherever you are: Your photos, documents, and other important files are available on your phone, tablet, PC, or Mac. In short, your files and info aren't stuck on any single PC or device.

(more…)

By whatsq, ago
Information Technology

Cloud Computing

  • Cloud computing is the use of computing resources (hardware and software) that are delivered as a service over a network (typically the Internet). Cloud Computing is a general term used to describe a new class of network based computing that takes place over the Internet:

    (more…)

By whatsq, ago