Connect with us

5 Programming Languages You Should NOT Learn in 2019

kizinho

Published

on

Follow
NEWS: 5 Programming Languages You Should NOT Learn in 2019 [New  Developer] » Naijacrawl
Photo: Naijacrawl
site

There are no rules or guidelines to decide whether a programming language is best or worst. It depends on a lot of things including requirements and community engagement. If you are looking to learn a new language that’s in demand and confused with the various available options, we are here to help.

 

Today,will  share a list of five programming languages you should not learn in 2019. These languages are struggling to attract developers and employers’ interest for certain reasons.

 

Needless to mention, but these kinds of lists are always controversial and based on certain facts, trends and experts opinion. This list is based on activity on various popular platforms like GitHub, Twitter, Stack Overflow, Freenode, Reddit, etc. We have also considered the Job market and demand based on stackshare.io, and techstacks.io. So, without any further discussion, let’s come straight to the point.

 

 

Worst Programming Languages of 2019

1. CoffeeScript

 

coffescript

CoffeeScript is a web development language that compiles into JavaScript and designed to improve the JavaScript’s readability. There are several reasons you should not learn this language.

The two major reasons are the worst community engagement and poor growth. I don’t say job opportunities are not there but it’s getting worse. If you are involved in something that requires CoffeeScript, you may not have any other choice but it’s definitely not recommended for freshers.

 

2. Elm

 

elm

Elm is also a JavaScript-based web development language which is used for making the development of web apps easier. Though the job opportunities have increased slightly, the overall growth of language is a point of worry.

This language is neither recommended by Stack Overflow nor the Redmonk in the last year’s roundup. Elm also has the worst community support and facing a fall in growth.

 

3. Erlang

erlang Programming Languages You Should Not Learn

 

Erlang was developed almost three decades ago to help create telephony applications but now it’s facing the largest decline in community support over the course of the year. Once known for building scalable applications and providing support to large-scale routing of telephone calls is now going through a phase where developers losing interest in the language.

 

The job opportunities are still there but it’s not growing fast like in case of other languages. Considering the last year’s Stack Overflow developer survey, Erlang was 9th highest paid and 22nd most loved programming language but it’s true that the language has also experienced a noticeable drop (from 23 to 50) in The Tiobe Index.

 

4. Lua

lua

Lua is a fast, portable, lightweight and embeddable scripting language primarily used for games and application development. It supports procedural programming, object-oriented programming, functional programming, data-driven programming and data description.

 

Though I haven’t used Lua before, people claim it offers decent performance improvement as compared to other languages. The main reason behind the presence of this language here is poor job demand. Though the community engagement rose the last year, the number of Lua developers is more than the demand for them. Lua ranked 30th in the Tiobe Index of popular programming languages.

 

5. Perl

perl

Practical Extraction and Reporting Language, or Perl has remained in the top 20 of the Tiobe Index of popular programming languages. It was 18th most popular language in the RedMonk Programming Language rankings last year. Perl is used for sysadmin jobs, network programming, web server scripting, etc.

But with time, developers are losing interest for Perl. It’s community engagement got worsened and overall growth also seems to stuck at some point. Lastly, if you consider job prospects, it’s also one of the reasons why you should not learn Perl.

 

Final Words

These are some of the languages you should not learn in 2019. I understand some of you might be involved with these languages and so it’s natural to see the things differently. After all, everyone has their own set of preferences for everything. But if you are planning to learn a new language and confused with the options, this list will definitely help in at least deciding what to learn and what not.

 

Source

site


kizinho

I am a software developer, like meeting people and love blogging, that's why I developed naijacrawl because that's what I love doing.

Continue Reading
Click To Comment

BE First To Comment


    Leave a Reply

    Your email address will not be published. Required fields are marked *

    How to show a nice message to the user when an error occurs in using Guzzle with Laravel

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to show a nice message to the user when an error occurs in using Guzzle with Laravel [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl

    Hi Folks, have you encountered an ugly Exception when making a post, get, put, delete to external API when an error like 500 or 404 occurs. Today you are at the right place, after reading this you will be able to show a nice message to your users in case of any of those errors occurs

    When making a request to external API using guzzle to solve this problem you will need to catch the Exception by following the steps below.

    1. Prepare your request using Guzzle, I believe you know or have set it up already
    2. Make a post or get request to your external API
        public function create(Request $request) {
        $input = $request->all();
        try {
            $client = new Client();
            $headers = ['API-Key' => env('API_KEY')];
            $url = 'api/post/create';
            $response = $client->request('POST', $url, ['headers' => $headers, 'query' => $input]);
            $res = json_decode($response->getBody());
    //here will catch error to aviod ugly message to users  
        } catch (\GuzzleHttp\Exception\RequestException $res) {
            if ($res->hasResponse()) {
                $response = $res->getResponse();
                if ($response->getStatusCode() == 500) {
                    abort(500);
                } if ($response->getStatusCode() == 404) {
                    abort(404);
                }
            }
        }
    }
    


    Congrats , you have saved your users from seeing that ugly message . Share and comment

    Continue Reading

    How to solve This page isn’t working HTTP ERROR 500 in Laravel

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to solve This page isn’t working HTTP ERROR 500 in Laravel [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl

    In case you ran into this problem This page isn’t working www.example.com is currently unable to handle this request HTTP ERROR here is the cause and how to fix it. First, it must not be an error from your code, it is an error from querying large data from your database. So request ran out of memory, to fix it follow this step.

    In your Laravel root project folder locate this file

    vendor/laravel/framework/src/Illuminate/
    Database/Connection.php.
    

    Insert this line of code after line 324 

    ini_set('memory_limit', '-1'); 
    

    or follow the code snippet or image below:


     public function select($query, $bindings = [], $useReadPdo = true)    {        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {            if ($this->pretending()) {                return [];            }            // For select statements, we'll simply execute the query and return an array            // of the database result set. Each element in the array will be a single            // row from the database table, and will either be an array or objects.            ini_set('memory_limit', '-1');         
    
       $statement = $this->prepared($this->getPdoForSelect($useReadPdo)                              ->prepare($query));            $this->bindValues($statement, $this->prepareBindings($bindings));            $statement->execute();            return $statement->fetchAll();        });    }
    


    Continue Reading

    How to convert image from png, jpg to webp image in Laravel

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to convert image from png, jpg to webp image in Laravel [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl

    Hi, folks will show how you can convert any image to webp image.

    Why Webp

    WebP is making headway in the image format space this year. The image format — which is developed by Google — uses both lossy and lossless compression by utilizing technology that Google purchased from On2 Technologies.


    WebP has been around a while now, actually, and it first made headlines in a 2010 Google press conference. But, like any new technology, it had some initial rough patches. Today, WebP is on version 1.0.0, so we thought it would be a great time to talk about what makes WebP so powerful, and why it’s a fantastic option for web designers and developers.

    a

    Before I proceed to describe what WebP actually is, let us focus on why it matters—it’s not only about making images smaller, but it’s also about why and how the images need to be made smaller.


    You may have heard about design mistakes killing your SEO and conversion rates. While there are some aspects that CSS or JavaScript are responsible for, like blocking rendering, the images nowadays are a huge part of any website’s weight. Therefore, users on slower connections will have trouble interacting with your website (unless it’s an AMP).

    Just recently, It’s an interesting area of expertise, where you take care of lots of small things to deliver one big thing—a superfast, superlight website that reads on any device and looks amazing at the same time.


    Chances are, you’ve seen WebP images before. If you open Naijacrawl in Google Chrome, all of those thumbnails are going to be WebP thumbnails. If you were to open the Facebook app on your android phone, all of the images that you see would be WebP. It’s definitely being utilized by various companies around the world to increase performance.


    So let's see how you can do the same using laravel to convert your images to webp image.


    Note this works in all laravel versions


    I assumed you have a project already or you can create one by using this command


    composer create-project 
    laravel/laravel webimage
     --prefer-dist


    You must have installed a composer before you can run the command.


    We need a controller so let's create one

    php artisan make:controller 
    ImageWebpController
    


    Inside the controller, we will write a code that will process our image and convert it to webp inside a folder


    What it Requires

    file extension

    file name

    folder

    
    namespace
     App\Http\Controllers;
    use Illuminate\Http\Request;
    use Illuminate\Support\Str;
    class ImageWebpController 
    extends Controller {
    public function webpImage
    (Request $request) 
    {
    if ($request->hasFile('file')) {
    $file = $request->file('file');
    $extension = $file->getClientOriginalExtension(); 
    $rand = '-' . strtolower(Str::random(10));  
    $name = $rand . '.' . $extension;   
    return $this->processImage($file, $name);  
     }  
      }    
    private function processImage
    ($file, $name) 
    {  
    $file->move(public_path('/test/image'), 
    $name);  
          //convert to webp         
    $webp = public_path() . '/test/image/' .
     $name;      
      $im = imagecreatefromstring
    (file_get_contents($webp)); 
     $new_webp =
     preg_replace('"\.(jpg|jpeg|png|webp)$"',
     '.webp', $webp);  
    imagewebp($im, $new_webp, 50);  
     return'message'
     => 'image successfully 
    converted to webp.
     check your 
    folder to see it'
    ];   
     }
    }
    ?>

    from what i did, i check if the request is a file before proceeding , have to get extension of the file and use it make a slug name for the image, because i don't want it to carry original name.

    $extension = $file->
    getClientOriginalExtension();
    

    I have to use str function to form a characters for the name of the image

     $rand = '-' . 
    strtolower(Str::random(10));
    
    //final name
    $name = $rand . '.' . $extension;
    

    I needed another private function because i want to separate my code for easy to read using processImage function.

    
     private function processImage
    ($file, $name) {
    $file->move(public_path('/test/image'),
     $name); 
           //convert to webp         
    $webp = public_path() . '/test/image/' .
     $name;
     $im = imagecreatefromstring
    (file_get_contents($webp));  
    $new_webp =
     preg_replace('"\.(jpg|jpeg|png|webp)$"', '.webp',
     $webp);
    imagewebp($im, $new_webp, 50);        
    return'message' 
    => 'image successfully 
    converted to webp. 
    check your folder 
    to see it' ];  
      }
    ?>

    After i called it to the main function which

    is webpImage function .

    Inside processImage function ,

    the file is moved to my public folder called test/image before converting it to webp image

    //get image that
     we want to convert 
    $webp = public_path() .
     '/test/image/' . $name;
    //create the image        
    $im = imagecreatefromstring
    (file_get_contents($webp));
    //accept image extensions of jpg,png,webp 
    $im = imagecreatefromstring
    (file_get_contents($webp));
     $new_webp = 
    preg_replace('"\.(jpg|jpeg|png|webp)$"', 
    '.webp', $webp);
    //make the webp image and set the quality to 50 
    //the more quality the more it becomes broght and increase mb
    // you can set to 100 which means no quality will be reduced 
     imagewebp($im, $new_webp,50);
    ?>

    From my code i didn't add validation rule which you can do it if you needed it , just to make it allow only files and extension type


    Find this article helpful kindly share it.

    Continue Reading

    Latest