Sponsored Links

Showing posts with label web development. Show all posts
Showing posts with label web development. Show all posts

April 1, 2019

How to disable right click on web page using jQuery

There are certain ways to disable right click on web page. One of most common ways is using following jQuery code in the web page. Add following code at the end of body inside script tag. Note that it uses jQuery. So import jQuery first.

$(document).bind("contextmenu", function(e) {
     e.preventDefault();
});

November 12, 2018

Hottest Trend in IT 2018

From various research and usage, following seem to be hottest trend in the industry right now.

Front End Development:
ReactJs
Angular

Learn about progressive web apps because it will soon take over android and IOS native mobile apps.
Progressive Web Apps

Learn about big data, machine learning and AI
Tensorflow
Hadoop
Spark

Improve your programming skills on javascript, python, java . 

Awesome Tips for Developers


There are many tips for becoming better developer if you search for. Among many ideas and tips following four points have more striking effects. Please read it and implement right away.
  1. Learn to code by hand on paper and a whiteboard first and then throw it into an IDE for syntax highlighting, this should become second nature to you.
  2. Develop deep knowledge of data structures , their strengths, and weaknesses in comparison to each other. I discovered that implementing data structures and their behaviors from scratch taught me so much more than what i knew from their abstract concepts.
  3. Completely understand Big O notation for both time and space complexities, this will pair perfectly with your algorithm and sorting questions.
  4. Grasp all major sorting algorithms because the difference in time/space complexities have the potential to derail your optimum solution for an algorithm you're trying to solve.

August 19, 2018

Top 30 ways to become better developer

Here are top 30 tips for becoming a better developer. If you follow all these steps then you already are a better developer.
  1. Read other people's code:
    You need to make a habit of reading code written by other developers. You can learn many things from this. Obviously there are BAD CODES out there but you need to have sharp selection for reading quality code. This will help you learn new techniques, languages and quality code from other developers.
  2. Write shorter methods/functions:
    Always try to make your functions as short as possible and to the point. Writing short methods will help to organize, maintain and test the code. And always remember one tasks one method.
  3. Learn New Language:
    Try learning new language whenever possible. No language is perfect and learning new language helps you to know work around and quirks of languages.
  4. Write a test before coding:
    Before starting to code to develop features first write a test for the feature. It will help to develop feature without possible bugs and going out of track.
  5. Single Responsibility Principle:
    Give single responsibility for a class. It is best practice to give single task to each class. Any class with more than one major responsibility should be broken up into smaller classes.
  6. Learn to Debug:
    Debugging is one of the crucial part of developers. Debugging a problem can take nasty amount of time if you are not used to it. There are many debugging tools out there for you. Use them and get used to it. It will pay you off in future.
  7. Write clean code:
    Writing a clean code is something that is achieved by practice. It won't happen over night. You need to write many lines of code, refactor them and improve them time and again. Also you should be consistent while coding like proper spaces, variable naming, formatting etc. Your code should be readable for other programmers and can understand the motive of code once then read them. Try to make your code as simpler as possible.


...to be continued

December 14, 2017

Things to Remember If You Are Developing Your Website

If your are starting to develop your website or starting website development then you should consider user experience also. I am giving some tips to get started here. If you do not know anything about typography, but you care about readability, you should try this as a starting point.

  1. A minimum of 18px font size.
  2. Line spacing of 1.6
  3. #333 for color or thereabouts.
  4. Limit your lines to a width of 700px.
These are few tips for starting. I will keep updating it with other useful tips for starting as developer.

5 Tips to Become a Web Developer

If you ever wanted to become a web developer then here are the five tips to get started with.
  1. You can volunteer or intern in different companies. This is the quickest way to get hired or work as a web developer. So find any local companies or any around you and ask for volunteer.
  2. Your goal is to gain experience in the real world as quickly as possible and build your portfolio. So say yes to every websites including unpaid ones.
  3. You need to build your portfolio to make it strong. So where do you put your work? Well, this can be your own web site and I recommend this if you want to look professional. You can host it on GitHub.com and GitHub.io all for FREE and you can buy your own domain also if you like.
  4. Find a mentor and join local or online coding groups.
  5. There are plenty of open source projects today. You can contribute little by little in those projects to make familiar with the web development world

November 14, 2017

How to fix Duplicate error with ng-repeat in angularjs

While working with angularjs directive ng-repeat, you may have encountered with the problem of duplicate error with ng-repeat. Here is the proper description and problem and the solution of it.
In order for angular to know exactly what items have changed, it calculates a hash for each item within the ng-repeat. Otherwise, if you had 5 items with the exact same contents, how would it be able to determine which of those items was modified? When it determines that duplicates exist, it prints out that error.
In this case, to get around this, there's a track by expression that you can add to the end of the ng-repeat expression. This expression lets you define a property that uniquely identifies each item in the array. For arrays with primitive types, one approach is to use track by $index which tracks each item in the array by the objects position within the array.
  
<div ng-repeat="num in [1, 2, 2, 3] track by $index">
 {{num}}
</div>
  
 
By adding the track by $index, you will not get the duplicate error.