Category: software-development

Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining applications, frameworks, or other software components. Software development involves writing and maintaining the source code, but in a broader sense, it includes all processes from the conception of the desired software through to the final manifestation of the software, typically in a planned and structured process. Software development also includes research, new development, prototyping, modification, reuse, re-engineering, maintenance, or any other activities that result in software products.

  • VS Code for Laravel Development

    VS Code for Laravel Development

    VS Code for Laravel Development

    VS Code is one of the best editors available to developers now, no doubt about it, I always wanted to have such an editor which would support 4/5 languages. Changing your editor or IDE for each language is cumbersome, many of us work on the front-end and backend simultaneously, VSCode solves this problem you can write most of the programming languages available to you.

    Using a single editor or IDE helps you long-term, you get to know the keyboard shortcuts, you save all your snippets in one place, you remember the menu, icons, and other visual stuff, and you find everything easily. Finally, it makes you smarter and gives you a boost in your productivity. Productivity is all you need in software development. Always cut the tools and things you don’t need, you want to complete your tasks efficiently, never use multiple tools for the same task, and never learn sublime and vs code together, learn either of them.

    Laravel is one of the best frameworks for web development, I”‘m pretty sure no other web framework will get this close very soon. Working on a Laravel project in VS Code is pretty fun, it supports most of the things you need and if you install a few more extensions you will do damn good.

    If you need more support for your Laravel projects try https://github.com/barryvdh/laravel-ide-helper
    Just run

    composer require --dev barryvdh/laravel-ide-helper
    
    php artisan ide-helper:generate
    

    You now have the most accurate autocompletion in your VS Code.

    Useful extensions for PHP and Laravel

    Spread the love
  • Android ExoPlayer with Fullscreen button

    Android ExoPlayer with Fullscreen button

    Android ExoPlayer

    ExoPlayer is an open-source media player for Android developed by Google. It is designed to be used as a replacement for the Android platform’s built-in media player, and it offers many advanced features such as dynamic adaptive streaming over HTTP (DASH), smooth streaming, and advanced audio playback. ExoPlayer is highly customizable, and it can be easily integrated into any Android app that needs to play audio or video content. It is also designed to be efficient and reliable, with a focus on low-latency playback and smooth audio and video performance. Overall, ExoPlayer is a powerful and versatile media player that offers a great deal of flexibility and control for developers.

    ExoSimplify

    ExoSimplify is an Android library that provides a simplified interface for using ExoPlayer, the open-source media player developed by Google. With ExoSimplify, developers can easily integrate ExoPlayer into their Android apps without having to worry about the complexity of the ExoPlayer API. ExoSimplify provides a set of simple methods that allow developers to quickly and easily play audio and video content using ExoPlayer, and it automatically handles many of the common tasks involved in using ExoPlayer, such as initializing and configuring the player, loading media sources, and displaying video content on the screen. By using ExoSimplify, developers can take advantage of the advanced features and capabilities of ExoPlayer without having to spend a lot of time and effort learning the details of the ExoPlayer API.

    How to install?

    To install ExoSimplify, you will need to add it as a dependency in your Android project.

    To do this, you will need to add the following lines to the dependencies section of your project’s build.gradle file:

    allprojects {
    	repositories {
    		maven { url 'https://jitpack.io' }
    	}
    }

    To do this, you will need to add the following lines to the dependencies section of your app’s build.gradle file:

    implementation 'com.github.sminrana:ExoSimplify:0.9.5'
    

    Once you have added this dependency to your project, you will need to sync your project with Gradle to download and install ExoSimplify. You can do this by clicking the “Sync Project with Gradle Files” button in the Android Studio toolbar. Once ExoSimplify has been installed, you can start using it in your project.

    Learn More About ExoSimplify on GitHub

    Spread the love
  • Generic in Swift

    Generic in Swift

    Generic in Swift

    In the Swift programming language, the term “generic” refers to a type or function that can work with any type, rather than being tied to a specific type. This allows for greater flexibility and code reuse. For example, a generic function can be written to sort an array of any type, rather than having to write a separate sorting function for each type of array. Using generics can make your code more concise and easy to read, and can help you avoid code duplication.

    Here is an example of a generic function in Swift that sorts an array of elements:

    func sortArray<T: Comparable>(array: [T]) -> [T] {
        let sortedArray = array.sorted()
        return sortedArray
    }
    

    In this example, the sortArray function is a generic function that can sort an array of any type that conforms to the Comparable protocol. This means that the function can sort arrays of integers, strings, or any other type that can be compared using the < and > operators.

    Here is how you could use this function to sort an array of integers:

    let numbers = [10, -1, 3, 9, 2]
    let sortedNumbers = sortArray(array: numbers)
    

    The sortedNumbers constant would be equal to [-1, 2, 3, 9, 10] after this code is executed.

    Spread the love