Posts

Showing posts from April, 2020

CODE REFACTORING

Image
CODE REFACTORING The most popular guiding principle for code refactoring & order of importance is like: Readability   >   Modularity > Efficiency > Length of Code 👉Readability Make sure that your code is easy to understand but not just that you know yourself but maybe say  your future self, can you quickly understand what's going on is everything organized in a logical way, is everything commented so that you can easily understand what each part of the code is about. And also this is a very common scenario if you're working in any sort of company or team you're likely to be cooperating on the same piece of code. So try to keep a code readable. 👉Modularity Now the next thing is modularity and this kind of relates to how easy is it to reuse bits of your code and how easy is it to narrow down. Say if you know one particular part of your web site breaks down is your code modular enough that you would be able to narrow down on the exact section o...

FRONT END DEVELOPER SKILLS YOU NEED TO KNOW⠀

Image
FRONT END DEVELOPER SKILLS YOU NEED TO KNOW⠀ ⠀ 👉HTML & CSS ⠀ HTML & CSS are the most basic languages of web coding. Without these two languages you can’t create a web page.⠀ ⠀ 👉JAVASCRIPT & J-QUERY⠀ JavaScript allows you to take ordinary web elements and make them interactive. It can be used alongside your HTML & CSS and is an extremely important tool for any web developer. J-Query is a JavaScript library, a collection of plugins that makes JavaScript development faster and easier.⠀ ⠀ 👉FRAMEWORKS⠀ JavaScript and CSS frameworks give a ready-made structure to your website. There are different types of frameworks available, learn at least one for JS & CSS.⠀ JS: AngularJS, Backbone, Ember & ReactJS⠀ CSS: Bootstrap, Foundation, Bulma⠀ ⠀ 👉RESPONSIVE DESIGN ⠀ One major role of a front end developer is to understand the responsive design principles and how to implement them on the coding side. It is a part of CSS and you must know how to use MediaQueries tech...

HOW COMPUTERS AFFECT YOUR EYES⠀

Image
HOW COMPUTERS AFFECT YOUR EYES👀⠀ ⠀ Long story short, there’s no evidence that staring at a computer will cause permanent eye damage.⠀ ⠀ However, computers can cause some uncomfortable eye-related symptoms in the long term that can be avoided by using some simple practices.⠀ ⠀ 👉The Problem ⠀ Nowadays, almost all of us spend a lot of time working with our digital devices and regardless of the opportunities they’ve provided us, there are still some concerns about using them. Can looking at computer screens damage your eyes?⠀ ⠀ 👉Good News ⠀ While complaints of eye fatigue and discomfort are common among digital device users, these symptoms are not caused by the screen itself. Digital screens give off little or no harmful radiation (such as x-rays or UV rays).⠀ ⠀ 👉Bad News ⠀ Digital screens do expose your eyes to blue light. Blue light exposure you get from screens is small compared to the amount of exposure from the sun. And yet, there is a concern over the long-term effects.⠀ ...

HOW DO I PROTECT MY EYES 👀?

Image
HOW DO I PROTECT MY EYES👀? These are some exercise that you can do in order to keep your eyes heathly while working at a computer screen. 👉 Look to your left and then slowly roll your eyes up towards the ceiling. Keep rolling them to the right and from there, to the floor. Do it clockwise 5 times and then the other direction another 5 times. 👉 Sit on a comfortable chair and look straight ahead. Then move your eyes up without changing the position of your neck. After that, move your eyes down. Do 10 reps for this one. 👉 Place an index finger on each eyelid and apply very light pressure for 10 seconds. Let go for 2 seconds and then press gently again. 👉 Find a blank wall to eliminate any possible distractions and sit in front of it. Keep your neck straight and your shoulders low. Close your eyes and wait for 30 seconds before opening them. Do that 10 times. 👉 Without moving your head or neck, look to the left as much as you can. Keep your eyes in that position...

BENEFITS OF WORKING AS A FREELANCER⠀

Image
BENEFITS OF WORKING AS A FREELANCER⠀ ⠀ "The best accomplishment is to blur the line between work and play!" ⠀ 👉You avoid the long commute⠀ Most freelancers never have to leave home to work, which is great for time management and even for health.⠀ ⠀ 👉 You are your own boss⠀ Freelancers are essentially their own bosses and can avoid all the stress that comes from working for someone.⠀ ⠀ 👉 You control your workload⠀ As a freelancer, you can say when enough is enough. You can control the number of clients and projects.⠀ ⠀ 👉 You are less likely to get sick ⠀ Most freelancers work from home and deal with all their clients remotely. This working situation keeps away many diseases.⠀ ⠀ 👉 You work whenever you want⠀ As a freelancer, whenever you need a break, you can get one. And you can take naps whenever you need one.⠀ ⠀ 👉 You work wherever you want ⠀ Freelancers can work from anywhere in the world as long as the job is well done and on time.⠀ ⠀ What’s the best thing abo...

TOP CODING PUZZLES TO SOLVE⠀

Image
TOP CODING PUZZLES TO SOLVE⠀ ⠀ "Dare to ask questions and seek answers to the puzzles of life!" ⠀ Addition ⠀ Add two numbers without using addition and subtraction operators.⠀ ⠀ Swapping ⠀ Swap two variables without using a third variable.⠀ (Don’t use Python!)⠀ ⠀ LoopLess⠀ Print all numbers between 1 and 100 without using any loop.⠀ ⠀ Ternary operator ⠀ Implement the ternary operator without using conditional statements.⠀ ⠀ An Odd Even ⠀ Find if a number is even or odd without using any conditional statement.⠀ ⠀ What do you think about these puzzles?⠀ Can you solve them?⠀ ⠀ Share your solutions with us!⠀ ⠀ ⠀

HOW TO BECOME A SUCCESSFUL PROGRAMMER

Image
HOW TO BECOME A SUCCESSFUL PROGRAMMER⠀ ⠀ "If you look closely, most overnight successes took a long time!" ⠀ ⠀ 👉Have a clear goal⠀ What’s your definition of success?⠀ Money? Happiness? Fame? All of them?⠀ What do you want to achieve in your career?  Make that clear.  👉 Love what you do. If you love programming, you can endure the hardships of the success journey. Many obstacles will be in your way and guess what will help you to overcome them? That’s right!⠀ ⠀ 👉 Learn from mistakes. ⠀ Programming is a process of trial and error and that is a great benefit. Failure is instructive. The person who really thinks learns quite as much from his failure as from his successes.⠀ ⠀ 👉 Have a plan ⠀ Successful people need and have a plan. Our time is precious and limited. Make a to-do list for tasks you want to be done by the end of each day.⠀ ⠀ 👉 Keep learning in the moments that matter⠀ Learn from industry experts, connect with a global network of experience. On your time....

SPAGHETTI CODE AND HOW TO AVOID IT⠀

Image
SPAGHETTI CODE AND HOW TO AVOID IT⠀ "Life is really simple, but we insist on making it complicated!"⠀ ⠀ 👉What is SC⠀ Spaghetti Code is a term used to refer to a tangled source code where control within a program jumps all over the place and is difficult to follow.⠀ ⠀ 👉 Characteristics⠀ When spaghetti code is cooked, it turns into a jumble of ideas that work, but are very easy to break while being very hard to read and change.⠀ ⠀ 👉 Typical Causes: ⠀ Ineffective code reviews Developers working in isolation No design prior to implementation Inexperience with using technologies ⠀ 👉 Symptoms: Bad indentation Improper identifier names Big functions that do everything Unnecessary nested code blocks Repeated code Jump or go-to statements Placing every file in one folder Unhelpful or outdated comments ⠀ 👉 Spaghetti code can be reduced by:⠀ Commenting Formatting properly Using small functions Thinking twice, coding once Keeping your code organized ⠀ Have you cooked...

PRINCIPLES EVERY PROGRAMMER SHOULD KNOW⠀

Image
PRINCIPLES EVERY PROGRAMMER SHOULD KNOW⠀ ⠀ "Obey the principles without being bound by them!" ⠀ 👉KISS - Keep It Simple, Stupid ⠀ The principle states that most systems work best if they are kept simple rather than made complicated.⠀ ⠀ 👉DRY - Don’t Repeat Yourself ⠀ The principle states that every piece of knowledge must have a single, unambiguous, authoritative representation within a system.⠀ ⠀ 👉YAGNI - You Aren’t Gonna Need It ⠀ The principle states that you should not add functionality until it’s necessary.⠀ ⠀ 👉SoC - Separation of Concerns ⠀ The principle states that each section in a program should address a separate concern.⠀ ⠀ 👉WET - ?⠀ Bad, repetitive code is said to abide by the _ principle.⠀ ⠀ a. Write Everything Twice⠀ b. We Enjoy Typing⠀ c. Write Every Time d. Waste Everyone’s Time⠀ ⠀ 💭Comment on your answer!⠀ ⠀ What other popular programming principles do you know?⠀ ⠀