Sunday, November 29, 2020

7 Ways to improve your programming skills

 In this era of continuous advancements in the software industry, it is important for coders to focus on the improvement of their programming skills. Upskilling, reskilling, and practice are some of the few options that software professionals follow to keep pace with the rapid improvements. If you aspire to become a successful programmer, imbibe the below-mentioned tips that will help you enhance your programming skills precisely.


1. Improve your learning method
Learning is an art and this art is a quality in some from birth while the rest of the population earns it. As a programmer, you might feel overwhelmed from the similar problem solving tasks. Therefore, it is necessary to include entertaining techniques to learn effectively like flashcards, online quizzes, algorithmic puzzles, designing creative apps etc. Always give yourself time to remember the concept rather than just referring notes. Enjoy coding or you will feel burdened by the concepts.

2. Gain fluency in debugging
Debugging is an integral part of programming. When a programmer compromises basic concepts of debugging, they waste precious time and efforts on searching bugs. This is why, debugging techniques including divide and conquer, and proper usage of logs and debuggers should be crystal-clear in your head.

3. Read other developer’s code
Before considering yourself a master already, see how a master creates a code. In simple words, browse through GitHub repositories, learn how other developers have written their code and make your own judgement on how to add quality in the code. This is how one can master coding.

4. Write readable code
As stated by Martin Fowler, “any fool can write code that a computer can understand. Good programmers write code that humans can understand”. A good programmer should write code that are readable and understandable as -
  • It will help you debug your code easily
  • It will allow other developers to understand your code effortlessly.

5. Work on projects
Search for an app to build, learn how to get started, and work on it. I am not asking you to add quality but at least challenge yourself and see how bonded you are with coding concepts. You will be able to judge your weak points and get a chance to improve.

6. Master one tech stack
Trying to learn every other tool, framework, and programming language is good for professionals who have just begun their career. However, once you have gained familiarity with almost all professional tools, it is recommended to pick one technology stack and master at it. Proficient professionals can attract excellent and startling opportunities.

7. Have curiosity
Your curiosity to learn more and more may get you hired. A good recruiter hires candidates who can contribute to the company's long-term growth rather than the one who plans to use the known skills on


Reference:

Friday, November 27, 2020

Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.SparkSession

 problem

Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.SparkSession
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass
Solution:
change the scope of all the spark dependencies from provided to compile

Extracting structure failed sbt task failed, see log for details

 Step 1: 

we have check the installed sbt version . 

  if sbt installed version on out laptop is say : 1.3.13 

[info] welcome to sbt 1.3.13 (Ubuntu Java 11.0.9.1)


then we have to use the same version in  build.properties in  sbt project in Eclipse or IntelliJ


when both are same , we will not get the mentioned error.


first Time when we are compiling sbt better to use  command line .

like : 

Need to run the following commands in the same sequence.

sbt 

clean

complie   



Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...