How To Pick Your First Programming Language (4 Different Ways)

Learning coding from scratch could be a tough task and it could take years of hard work to master a language. So here I am going to address the biggest problem a beginner faces: How to pick up my first programming language?
Recently I came across with a very enriching infographic that addressed the same question. Udacity has utilized the date of the top ten programming languages in the US (provided by IEEE Spectrum) to pick the best programming language for you as a beginner.
The basis on which this infographic is made varies from location, your lifestyle and the potential growth in career after selecting that particular language.
Based on the flexibility, Python or C++ comes first as it allows you work on the variety of fields such as gaming to making of embedded systems. JS or PHP prepares you for a web development career. Similar observations and trends are made based on the average pay per year, geography and popularity.
Take a look at the infographic below:

Did you find this infographic helpful? Share this article with your friends.

JavaScript Cheat Sheet Free Download

JavaScript cheat sheet for newbies learning JavaScript. This JavaScript cheat sheet is made by DavidChild from cheatography.com

Free Download: JavaScript Cheat Sheet 

Regular Expres­sions Syntax
^         Start of string

$         End of string

.         Any single character

(a|b)     a or b

(...)     Group section

[abc]     In range (a, b or c)

[^abc]    Not in range

s         White space

a?        Zero or one of a

a*        Zero or more of a

a*?       Zero or more, ungreedy

a+        One or more of a

a+?       One or more, ungreedy

a{3}      Exactly 3 of a

a{3,}     3 or more of a

a{,6}     Up to 6 of a

a{3,6}    3 to 6 of a

a{3,6}?   3 to 6 of a, ungreedy

         Escape character

[:punct:] Any punctu­ation symbol

[:space:] Any space character

[:blank:] Space or tab
JavaScript Event Handlers
onabort     onmous­edown

onblur      onmous­emove

onchange    onmouseout

onclick     onmous­eover

ondblclick  onmouseup

ondragdrop  onmove

onerror     onreset

onfocus     onresize

onkeydown   onselect

onkeypress  onsubmit

onkeyup     onunload

onload


JavaScript Dates
Date()               setMonth()

getDate()            setFul­lYear()

getDay()             setHours()

getMonth             setMin­utes()
 
getFul­lYear          setSec­onds()

getYear              setMil­lis­eco­nds()

getHours             setTime()
 
getMinutes           setUTC­Date()

getSeconds           setUTC­Day()

getMil­lis­econds      setUTC­Month()

getTime              setUTC­Ful­lYear()

getTim­ezo­neO­ffset()  setUTC­Hours()

getUTC­Date()         setUTC­Min­utes()

getUTC­Day()          setUTC­Sec­onds()

getUTC­Month()        setUTC­Mil­lis­eco­nds()

getUTC­Ful­lYear()     toSource()

getUTC­Hours()        toString()

getUTC­Min­utes()      toGMTS­tring()

getUTC­Sec­onds()      toUTCS­tring()

getUTC­Mil­lis­eco­nds() toLoca­leS­tring()

parse()              UTC()

setDate()            valueOf()


Pattern Modifiers
g    Global match

i*   Case-i­nse­nsitive

m*   Multiple lines

s*   Treat string as single line

x*   Allow comments and whitespace in pattern

e*   Evaluate replac­ement

U*   Ungreedy pattern


JavaScript Arrays
concat()  slice()

join()    sort()

length    splice()

pop()     toSource()

push()    toString()

reverse() unshift()

shift()   valueOf()


JavaScript Strings
charAt()       slice()

charCo­deAt()   split() x

concat()       substr()

fromCh­arC­ode() substr­ing()

indexOf()      toLowe­rCase()

lastIn­dexOf()  toUppe­rCase()

length         toLoca­leL­owe­rCase()

locale­Com­pare()toLoca­leU­ppe­rCase()

match() x      toSource()

replace() x    valueOf()

search() x


JavaScript RegExp Object
compile()   lastParen

exec()      leftCO­ntext

global      multiline

ignoreCase  rightC­ontext

input       source

lastIndex   test()

lastMatch
JavaScript Numbers and Maths
abs()     min()

acos()    NEGATI­VE_­INF­INITY

asin()    PI

atan()    POSITI­VE_­INF­INITY

atan2()   pow()

ceil()    random()

cos()     round()

E         sin()

exp()     sqrt()

floor()   SQRT1_2

LN10      SQRT2

LN2       tan()

log()     toSource()

LOG10E    toExpo­nen­tial()

LOG2E     toFixed()

max()     toPrec­ision()

MAX_VALUE toString()

MIN_VALUE valueOf()

NaN


JavaScript Booleans
toSource()     valueOf()

toString()


JavaScript Functions
decode­URI()           isNaN()

decode­URI­Com­pon­ent()  Number()

encode­URI()           parseF­loat()

encode­URI­Com­pon­ent()  parseInt()

escape()              String()

eval()                unescape()

isFinite()



Free Download: JavaScript Cheat Sheet 

Subscribe us for latest IT news and tutorials .

Don't forget to comment if you have any questions .



How to Clear Your Terminal History on Linux or macOS

Press the “up” arrow in the Mac or Linux command line and you’ll see the last command you ran. Keep pressing “up” and you’ll see more commands; you can go back days, months, or even years.
This is called your history, and it’s very convenient. If you made a mistake typing a long command, simply press “up” and fix the problem. If you want to re-connect to an SSH server you used the other day, simply press “up” until you see the relevant command.
It’s useful, but there’s also a potential security problem here, particularly if you accidentally typed a password in plain text at some point. How does one clear this history? Long story short, you can do so with two commands: history -c, followed by rm ~/.bash_history. Here’s what those commands do, for greater clarity.

Clear the Current Session’s History

Your history can be broke down into two chunks. There’s your current sessions’ history, and there’s your long-term history. Our first command, history -c, deals with the current session.
The history command is built into Bash itself, and the -c modifier tells the program to clear that history. This command will prevent anything in your current session from being written to your long-term history, but does not clear out that long-term history.

Clear All of Your Bash History

If you want to remove the entirety of your history, run the following command:
rm ~/.bash_history
If you don’t know, rm is a longstanding command for deleting files in UNIX-based systems. ~/.bash_history is a simple text document, which stores you Bash history.

Alternatively, you could open the file and delete any lines you’re concerned about. On a Mac, type open ~/.bash_history and your default text editor will open the file.
On Linux systems, replace open with the name of your preferred text editor, such as nanovim, or gedit. One you’ve opened the file, you can delete any lines you’d rather not keep by hand. Save the file, then restart your shell, and the lines you’ve deleted will stop showing up.

Clear Your Terminal for a Like-New Session

This one is mostly unrelated, but I’m mentioning it anyway. The command clear makes your Terminal look like you just opened a new session, which is useful if you take a lot of screenshots and want things to look tidy (or don’t want people over your shoulder to see what commands you’ve been running.)
This is entirely aesthetic: scroll up and you’ll still see your previous output. But if you’re in my line of work, it comes in handy.


What are the some of the best programming tips and tricks | Padsa Information

  • Readability is the path to more interesting projects within a career.
  • Readability is the path to knowing what you wrote 5 years ago, and makes code reuse actually viable
  • Readability is the path to acquiring protégées that can learn from your style.
  • Readability that is understandable by others allows people to appreciate your code at a level of architecture, not just functional.
  • Readability is the path of lease resistance when you have a bug in your code.
  • Readability is the how you put ideas into understandable text and syntax, much like writing a paragraph in natural language.
  • Readability is somehow not a priority for most other developers, however it’s probably pretty important to your development director, if you work for one.
  • Readability is more important than most believe. With moore’s law, it’s even more important to focus on readability than pre-mature optimization.
Here’s more:
  • Most schools and colleges teach computer science like trade school skills. How to fix a car. How to be a dental assistant. How to be an admin.
  • Most schools and colleges don’t realize there’s a difference between Computer Science and Programming. These are different.
  • Most of the people applying for job in California are Programmers, when the job actually requires a Computer Scientist.
  • Most people only know one or three programming languages. I personally believe you need to know between 7–8 of them to really master the idea of programming.
Psychology wise?
  • Most programmers are very insecure about their programming skills and end up in bandwagon debates over which programming language is better.
  • Following that, most don’t realize that each programming language is just a tool that’s better at something while other is better at something else… Like speaking Spanish while in Spain, or knowing Chinese in the middle of China down. Right tools for the job.
  • Most programmers are habituated to just google everything, that’s how they were taught.
  • Most insecure programmers rave about how “compact” their code is. Which serves very little purpose on compiled languages.
  • Most insecure programmers focus on hyper tuning a few lines of code. Good programmers focus on delivering functional and useable software.
Habits….
  • Most programmers follow the syntax and structure of the style they were taught. Very few question the style they were taught. Examples are {’s on the if-statement line, or on the next line vertically aligned with the }.
  • Most programmers don’t make diagrams before they begin experimenting. Many just copy some existing example and start their modifications from there (which runs the risk of adopting bugs from existing examples).
  • Most programmers don’t unit test. They believe they are better than that, or they are lazy.
  • Most programmers read xkcd.
  • Programmers that are computer scientists are better at computational problems.
What most don’t realize about computer science (as opposed to only programming.)
  • You can merge sort your socks.
  • You can apply scalability methods of algorithms to work labor level processes to improve business efficiency.
  • You can learn other fields and industries because CS is a catalyze for industries like physics, chemistry, rendering, etc…
  • You can apply CS methods to accounting, management, logistics, market trends, human resource management, workflow processing engineering, etc…
  • Computer science has philosophies within it that can change your mode of thinking.
Lots and lots. It’s amazing what you can do if you pay attention to the computer science bit, rather than only how to program software.
Computer science includes:
  • Hardware
  • Software
  • Programming
  • Algorithms
  • Problem solving
  • Efficiency measurement methods
  • Stability methods
  • Integration concepts
  • Computer architecture
And most importantly….
  • Computer Science History
You learn to appreciate these things when you take in CS and listen in beyond only the programming trade skill.
Either you are a viable employee… Or you’re an amazing one that could hold a position of technical leadership.
Take your time to comment on this article.

Here is How to run Kali Linux on your Android device | Padsa Information

This tutorial mainly created for Linux fans. Follow the given steps below to install Kali Linux on your Android phone.
Step 1: Install Linux Depoly on your Android Mobile.
Step 2: Now launch “Linux Depoly” and click download icon
Step 3: In Depol tab click and change the Distribution to Kali Linux
Step 4: Now Change the VNC settings according to your mobile screen.
Step 5: Once done click Install(Start GNU/Linux installation).
Note: This might take few minutes to be completed.
Tips: Recommended to do it on a Wi-Fi.
Step 6:  After installing Kali Linux now click Reconfiguration button. After that hit Start.
Step 7: Now download and install Android-Vnc-Viewer and enter the details. Once every goes smooth then you can start using Kali Linux.
Don't forget to comment below .

Arch Linux 2017.01.01 Released, ISO Files And Torrents Available For Download | Padsa Information

Thanks to the hard-working Arch Linux developers, the first Arch Linux ISO images of 2017 are available for download. The latest release, i.e., Arch Linux 2017.01.01, is powered by Linux kernel 4.8.13. While the first time users can grab the ISO images and torrents from Arch’s website, the existing users can update their systems using `pacman -Syu.’
Arch Linux installation isn’t something that involves simply clicking next and skip buttons. It includes multiple steps like partitioning the hard drive, formatting them, enabling swap, mounting partition as root file system, and manually downloading and installing the base OS. The user also needs to run various commands for setting up various things.
There’s no denying the fact that getting an Arch Linux machine up and running needs a little more time and commitment — as compared to other Linux distributions like Fedora or Ubuntu. But, this practical approach teaches you many things and it appeals lots of hardcore Linux enthusiasts.

Arch Linux 2017.01.01 — first ISO spin of 2017

As a great news for Linux enthusiasts, the first ISO snapshot, i.e. Arch Linux 2017.01.01, has been made available for download. This means that the devs have been working hard in the holidays to bake this Linux treat.
Contrary to what many of you would’ve expected, Arch Linux 2017.01.01 is powered by Linux kernel 4.8 series, version 4.8.13 to be precise. The size of the latest ISO image is 867MB.
As this image is intended for the new installations only, the users can burn this on a DVD, mount it as ISO, or write it to a USB drive using some utility.

Arch Linux 2017.01.01 download and update

New users can grab the ISO images and torrents by visiting the Arch Linux download page.
The existing Arch Linux users can update their systems using the following command:
So, are you going to try out the latest release of Arch Linux by updating your system? Don’t forget to share your views and feedback.

What Is The Difference Between Sudo And Su In Linux? | Padsa information

Many of you might be using sudo and su in terminal every day to accomplish different tasks. While sudo runs a single command with root privileges, su launches another shell instance with the privileges of the intended user. Both, sudo and su, are use to grant root privileges to the users in different manners.
ALinux user comes across sudo and su in terminal very often. If you are a new Linux user, you might be fascinated by the things you can do with sudo and su. Last week, I also told you about a Windows command that you can use to get sudo-like functionality. Sudo and su  provide root privileges in two different ways. But, how are they different? Here, I’ll try to answer this query.
Before telling you the difference, let me tell you the meaning of a root user. The root user in a Linux system has the maximum permissions and he/she can do anything to the systems. Apart from letting a normal user install/delete some package, root user permissions also act as an extra security layer.
Important: One should also note that these functions are used in a different way in different Linux-based operating systems. Most of the things we’ll discuss here are applicable to Ubuntu and its derivatives. They might differ a little bit in other Linux distributions.

Key differences between sudo and su

The su command stands for super user or root user. It executes on a Linux system with no additional options. The user just needs to add root account password. In the terminal, su also lets you access any other user account using the required password. That’s why su also stands for substitute user or switch user. Simply type su followed by the user account name, e.g., sudo fossbytes, and you’ll enter the password for fossbytes. After completing the job, you can exit the root shell by typing exit. Overall, su basically starts another shell instance with the privileges of the intended user.
On the other hand, sudo runs a single command with root permissions. When a user runs a command with sudo, e.g., sudo command, he/she needs to enter the current user account password to run it as root user. Sudo uses a config file (/etc/sudoers) to define the rights of different users. For detailed information on sudo, you can read our detailed article written by Devin — Sudo in Linux
Comparing the both, sudo lets one use the user account password to run system command. On the other hand, su forces one to share the root passwords to other users. Also, sudo doesn’t activate the root shell and runs a single command.

Using sudo and su in Linux distros

Ubuntu was the first widely used Linux distribution that adopted sudo-only approach by default. When one installs Ubuntu Linux, the root account is created without any password. One needs to assign a password to the root account to log in as root. In Ubuntu and many other Debian-based distros, the user needs to remember just a single password. This way, Ubuntu encourages a user to avoid logging in as a root user. In distros like Fedora, a person needs to create different passwords for root and user accounts.
There’s an often-used combination sudo su that Linux users find helpful. First, sudo asks for your password, and, if it’s provided, it runs the next command as a root user. Also, to run a single command as a root user using su, one needs to use this syntax: su -c ‘command’.
Did you find this article helpful? Don’t forget to drop your feedback in the comments section below.

What is the most popular programming language in the enterprise

Programmers have high demands these days because of the Growing Startups if one is interested in the best carrier and want to make the best of his life they need to know the popular programming language in the enterprise.
The stats were imported from the ZDNET, on the search keyword of the popular programming language, they have prepared a pretty good list that uses the data from the PYPL(popularity of the Programming language), primary , which looks at the popular programming languages on the Google and uses a search engine to aggregate the results.
Programming languages differ from natural languages in that natural languages are only used for interaction between people, while programming languages also allow humans to communicate instructions to machines.
They said that the list is the ultimate choice

1. Java
2. C
3. Python
4. C++
5. JavaScript
6. C#
7. PHP
8 Swift
9. Objective-C
10. R

The list is taken from the Following chart
The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.
The Programming Languages apparently grouped these primary, popular secondary and third-tier programming languages such as java, JavaScript ,C, Python and C++ are by far popular programming languages.
Then there is a second group which comprises of the mainly web programming JavaScript,C#, PHP and Swift while swift is the Main Programming language.
Then there is a third group of programming languages Objective-C and R, For Coders who are beginners with the staff of either C++ or java Programming languages which they move into Java ScriptLater Depending on the work you want to do with PHP, Swift , Python.

10 Best Programming Languages That You Need To Learn In 2017

The year 2017 has arrived. So, this year, are you ready to learn a new programming language and boost your skill set? If your answer is yes, you’re at the right place. GitHub’s recent data gives us a pretty good idea about the best popular programming languages that you need to learn in 2017. Our top recommendations are Java, JavaScript, Swift, and Python.
These days, skilled programmers are in great demand. Over the past decade, coding jobs have become mainstream, creating millions of employment opportunities every year.
If you’re new to the programming world, there are many ways to choose your first programming language. You can analyze the needs — app development, web application, web design — and choose the programming language. If you’re looking for a useful and easy language to get started, Python can help you out.
Those who are already having the knowledge of programming, are taking the polyglot approach. The programmers are learning programming languages and improving their skill sets. By leveraging multiple languages, they are able to solve a problem statement easily.
For learning a new language, very often it’s suggested that one must take a look at the latest trends. This gives a pretty strong idea about future and how much a language can grow in usage and importance. This automatically tells us the employment opportunities.
Here, in this article, I’m going to use GitHub’s data to tell you the most popular programming languages that one needs to learn in 2017. The data is also accompanied by the percentage growth witnessed by these languages in 2016.

10 Best Popular Programming Languages

1. JavaScript:

JavaScript, also known as the language of the web, is at the top as it’s basically everywhere. This is a high-level, dynamic, and interpreted programming language that’s supported by all modern web browsers. It allows the developers to build web applications and add interactive elements to the websites.
— Growth of JS in 2016: 97%
— Learn JavaScript

2. Java:

Java, a general purpose and object-oriented programming language, is used for creating server-side applications, video games, and mobile applications. As it’s the core element of any native Android application, Java keeps enjoying an enormous popularity among the developers.
— Growth of Java in 2016: 63%
— Learn Java

3. Python:

Python is a widely popular and general purpose programming language. Just think about the job and a Python framework is there for you. Due to its simple syntax, it’s also recommended as the first programming language. Without a doubt, Python is one of the best popular programming languages you can run in 2017.
— Growth of Python in 2016: 54%
 Learn Python

4. Ruby:

Ruby, a general purpose and object oriented programming language, supports multiple programming paradigms and is used to create web apps. Apart from being easy to use, Ruby is known for its power. Ruby on Rails (Rails is a framework) is in high demand these days.
— Growth of Ruby in 2016: 66%
 Learn Ruby

5. PHP:

PHP is a server-side scripting language that primarily focused on web development. It forms the base of two internet giants, WordPress and Facebook. If you wish to become a web developer, PHP is an important language that you need to learn.
— Growth of PHP in 2016: 43%
—  Learn PHP

6. C++:

Based on C, C++ is a general purpose programming language that has influenced many other modern programming languages. Tons of daily applications, software, drivers, firmware, etc., used by us are written in C++. It’s considered to be an intermediate level language that has the qualities of both high-level and low-level programming language.
–Growth of C++ in 2016: 43%
—  Learn C++

7. C#:

Designed by Microsoft, C# (pronounced C-sharp) is a general-purpose, modern, object-oriented programming language. This relatively newer language breathes life into a wide range of Microsoft applications that are powered by .NET Framework. The programming in C# is very much based on C and C++. So, if you have a basic idea of C and C++, learning C# won’t be much tough.
–Growth of C# in 2016: 88%
—  Learn C#

8. Go:

Go is an open source programming language that’s aimed at making simple, efficient, and reliable software. It was created by three Google employees in 2007. In the recent times, it has emerged as one of the most popular programming languages, and it’s used by some of the Google’s won production systems. Many Go projects are also used for web servers, APIs, minimal web application frameworks, etc.
–Growth of Go in 2016: 93%
—  Learn Go

9. Scala:

Scala, a general purpose programming language, has been designed to be concise and fulfill the shortcomings of Java. Its source code is intended to be compiled to Java bytecode to allow the resultant code to run on a Java VM. Also, as its name suggests (Scala is portmanteau of scalable and language), Scala is designed to grow with the demand.
–Growth of Scala in 2016: 54%
—  Learn Scala

10. Swift:

Back in 2014, Apple decided to create a new programming language for its iOS and OS X application development. As a result, Swift was born. Since then, it has been in tremendous demand and the developers are learning this skill in big numbers. It adopts the best of C and Objective-C, allowing a developer to create an intuitive app.
–Growth of Swift in 2016: 262%
—  Learn Swift
So, which of these popular programming languages suits your need and interested? Any new year resolution to learn a new programming language?
 Don’t forget to share your views and feedback.