Posts

Showing posts from May, 2020

'composer' is not recognized as an internal or external command in windows server

'composer' is not recognized as an internal or external command in windows server   1) Download the composer installer (.exe) and put it on C:/XAMPP. 2) Run the installer by just clicking next till the end. 3) Open command-line (cmd) and cd to your project directory (C:/XAMPP/htdocs/myproject) and type composer and see if you have it installed. 4) It should work now, let's say you want to install a PHP framework from your project directory:  cmd=>composer require slim/slim "^3.0" . Sol 2: The solution is to use complete composer path instead of  composer install  eg:-  C:\ProgramData\ComposerSetup\bin\composer install" instead of "composer install Better still, add  "C:\ProgramData\ComposerSetup\bin\"  to your environment variables, so that you can use  "composer install" . Sol 3: If u can 't find composer file than follow only 2 steps 1- Download composer file from [https://getcomposer.org/download/...

Three Favorite Open Source Java Libraries

Image
Three Favorite Open Source Java Libraries Java developers are lucky to have a long list of community libraries to pull from. Here are a few standouts that have made their way into virtually all of my new development. These were chosen because they have clean interfaces, provide significant value, are well tested, and most of all … help me write less code.   Google Guava https://github.com/google/guava This one is probably at the top of a lot of developer’s lists. Back in my C/C++ days, we had Boost. Early in my Java days, we used Apache Commons. Now, Google Guava is the primary core/utility library for Java. If you ever find yourself writing anything that could be common to the Java language, look here first. Here are a few classes from Guava that I’m always using: Use the Optional class instead of using null: https://github.com/google/guava/wiki/UsingAndAvoidingNullExplained Use the Preconditions class to validate parameters and fail fast: https://githu...

3 Reasons You Won’t Starve as a Java Developer

Image
3+ Reasons You Won’t Starve as a Java Developer   Considering such massive popularity and the thousands of video tutorials, in-depth textbooks, online courses, and offline coding schools that offer free or affordable Java training to anyone willing to learn, you might jump to the conclusion that the market is oversaturated with Java developers desperate to find a job. In fact, quite the opposite is true. The demand for Java engineers is at an all-time high and shows no signs of waning anytime soon, so it’s highly unlikely that you’ll starve if you have Java skills. Here are five good reasons why: 1. The unemployment rate is low, the jobs are plenty The overall demand for tech talent is so high that the tech industry’s unemployment rate in the US is only 2.5 percent . We’re pretty sure this figure isn’t much different in other parts of the world. What’s more, according to a skills and salary analytics platform Gooroo, 6.49 percent of job ads mention Java. And if...

React js

How to use Props in React? If you are new to React, you must have noticed the term  props  all across the tutorials and the code snippets that you come across. So what exactly are _props _and how do you use them correctly? Props  is short for Properties. In React,  props can be passed to a component, and they should not be changed within a component. Props _cannot be changed within a component. _Props are immutable. Keep in mind that in React, the data flow is unidirectional from parent to the child. Irrespective of whether you declare your component as a _class _or a _function, _the _props _should not be modified. Conversation Between Components Let’s visualize a conversation between the components in React to see if we can get some clarity around  props. Parent Component 1:  “Hey there child component, I have some props that I want to send your way! You can use them to render, and you can pass them on to your children too! Remember you ...