Hivex33 open jobs

Software Developer

Software engineeringPosted 5 weeks agovia Himalayas, a remote job board

Work type
RemoteOpen worldwide
Experience
Not stated
Pay
Not listed
Posted
5 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on PHP, JavaScript, Shell scripting and 1 more

About the job

We are looking for a talented and experienced Software Developer to join our innovative team and contribute to a series of microprojects in a dynamic and remote environment.

Requirements:

  • Proven experience as a Software Developer.
  • Proficiency in PHP and JavaScript.
  • Experience with Bash scripting.
  • Strong knowledge of SQL.
  • Experience working remotely, preferably with virtual machines.
  • Ability to write clean, maintainable, and efficient code.
  • Excellent problem-solving skills and attention to detail.
  • Strong communication skills and the ability to work collaboratively in a team environment.
  • English proficiency at a B2 level or higher.

Preferred Qualifications:

  • Experience with version control systems (e.g., Git).
  • Familiarity with additional programming languages and frameworks.
  • Knowledge of web development best practices and security standards.
  • Ability to quickly learn and adapt to new technologies.

What We Offer:

  • Remote job with the freedom to work from anywhere in the world.
  • Flexible work schedule tailored to your life and work needs.
  • Competitive and timely salary.
  • Opportunities for professional growth and development.
  • The chance to gain experience in various fields and participate in exciting projects.
  • Your ideas and initiatives are always welcome and valued.

Originally posted on Himalayas

Interested?Software Developer at Hivex

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on PHP, JavaScript, Shell scripting and 1 more

Interview questions for this job

For the skills the ad mentions: PHP, JavaScript, Shell scripting and SQL.

574 questions
  • What is thread safe or non-thread safe in PHP?PHP

    Needed background on concurrency approaches:

    Different web servers implement different techniques for handling incoming HTTP requests in parallel. A pretty popular technique is using threads -- that is, the web server will create/dedicate a single thread for each incoming request. The Apache HTTP web server supports multiple models for handling requests, one of which (called the worker MPM) uses threads. But it supports another concurrency model called the prefork MPM which uses processes -- that is, the web server will create/dedicate a single process for each request.

    There are also other completely different concurrency models (using Asynchronous sockets and I/O), as well as ones that mix two or even three models together. For the purpose of answering this question, we are only concerned with the two models above, and taking Apache HTTP server as an example.

    Needed background on how PHP "integrates" with web servers:

    PHP itself does not respond to the actual HTTP requests -- this is the job of the web server. So we configure the web server to forward requests to PHP for processing, then receive the result and send it back to the user. There are multiple ways to chain the web server with PHP. For Apache HTTP Server, the most popular is "mod_php". This module is actually PHP itself, but compiled as a module for the web server, and so it gets loaded right inside it.

    There are other methods for chaining PHP with Apache and other web servers, but mod_php is the most popular one and will also serve for answering your question.

    You may not have needed to understand these details before, because hosting companies and GNU/Linux distros come with everything prepared for us.

    Now, onto your question!

    Since with mod_php, PHP gets loaded right into Apache, if Apache is going to handle concurrency using its Worker MPM (that is, using Threads) then PHP must be able to operate within this same multi-threaded environment -- meaning, PHP has to be thread-safe to be able to play ball correctly with Apache!

    At this point, you should be thinking "OK, so if I'm using a multi-threaded web server and I'm going to embed PHP right into it, then I must use the thread-safe version of PHP". And this would be correct thinking. However, as it happens, PHP's thread-safety is highly disputed. It's a use-if-you-really-really-know-what-you-are-doing ground.

    Final notes

    In case you are wondering, my personal advice would be to not use PHP in a multi-threaded environment if you have the choice!

    Speaking only of Unix-based environments, I'd say that fortunately, you only have to think of this if you are going to use PHP with Apache web server, in which case you are advised to go with the prefork MPM of Apache (which doesn't use threads, and therefore, PHP thread-safety doesn't matter) and all GNU/Linux distributions that I know of will take that decision for you when you are installing Apache + PHP through their package system, without even prompting you for a choice. If you are going to use other webservers such as nginx or lighttpd, you won't have the option to embed PHP into them anyway. You will be looking at using FastCGI or something equal which works in a different model where PHP is totally outside of the web server with multiple PHP processes used for answering requests through e.g. FastCGI. For such cases, thread-safety also doesn't matter. To see which version your website is using put a file containing <?php phpinfo(); ?> on your site and look for the Server API entry. This could say something like CGI/FastCGI or Apache 2.0 Handler.

    If you also look at the command-line version of PHP -- thread safety does not matter.

    Read the rest at the sourceFrom Stack Overflow: asked by O.., answered by Amr Mostafa (CC BY-SA 3.0)

  • What is a callback? Can you show an example using one?JavaScriptIntermediate

    Callbacks are functions passed as an argument to another function to be executed once an event has occurred or a certain task is complete, often used in asynchronous code. Callback functions are invoked later by a piece of code but can be declared on initialization without being invoked.

    As an example, event listeners are asynchronous callbacks that are only executed when a specific event occurs.

    function onClick() {
      console.log("The user clicked on the page.")
    }
    document.addEventListener("click", onClick)
    

    However, callbacks can also be synchronous. The following map function takes a callback function that is invoked synchronously for each iteration of the loop (array element).

    const map = (arr, callback) => {
      const result = []
      for (let i = 0; i < arr.length; i++) {
        result.push(callback(arr[i], i))
      }
      return result
    }
    map([1, 2, 3, 4, 5], n => n * 2) // [2, 4, 6, 8, 10]
    

    Good to hear

    • Functions are first-class objects in JavaScript
    • Callbacks vs Promises

    From 30 seconds of interviews (MIT)

  • In Bash, when to alias, when to script and when to write a function?Shell scripting

    An alias should effectively not (in general) do more than change the default options of a command. It is nothing more than simple text replacement on the command name. It can't do anything with arguments but pass them to the command it actually runs. So if you simply need to add an argument at the front of a single command, an alias will work. Common examples are

    # Make ls output in color by default.
    alias ls="ls --color=auto"
    # make mv ask before overwriting a file by default
    alias mv="mv -i"
    

    A function should be used when you need to do something more complex than an alias but that wouldn't be of use on its own. For example, take this answer on a question I asked about changing grep's default behavior depending on whether it's in a pipeline:

    grep() { 
        if [[ -t 1 ]]; then 
            command grep -n "$@"
        else 
            command grep "$@"
        fi
    }
    

    It's a perfect example of a function because it is too complex for an alias (requiring different defaults based on a condition), but it's not something you'll need in a non-interactive script.

    If you get too many functions or functions too big, put them into separate files in a hidden directory, and source them in your ~/.bashrc:

    if [ -d ~/.bash_functions ]; then
        for file in ~/.bash_functions/*; do
            . "$file"
        done
    fi
    

    A script should stand on its own. It should have value as something that can be re-used, or used for more than one purpose.

    From Unix & Linux Stack Exchange: asked by ixtmixilix, answered by Kevin (CC BY-SA 3.0)

  • WHERE vs HAVING?SQL
    WHERE HAVING
    Filters rows Filters groups
    Executes before GROUP BY Executes after GROUP BY
    Cannot use aggregates Can use COUNT(), SUM(), etc.
    Can reference any column Can only reference grouped columns or aggregates
    SELECT department, AVG(salary) AS avg_sal
    FROM employees
    WHERE hire_date > '2020-01-01'      -- Filter rows first
    GROUP BY department
    HAVING AVG(salary) > 60000;         -- Then filter groups
    

    From Cracking the SQL Interview (MIT)

  • What is the difference between public, private, and protected?PHP

    You use:

    • public scope to make that property/method available from anywhere, other classes and instances of the object.

    • private scope when you want your property/method to be visible in its own class only.

    • protected scope when you want to make your property/method visible in all classes that extend current class including the parent class.

    If you don't use any visibility modifier, the property / method will be public.

    More: (For comprehensive information)

    From Stack Overflow: asked by Adam Halasz, answered by Sarfraz (CC BY-SA 4.0)

  • Why did you leave your last job?Behavioural

    The employer may ask you questions about leaving your last job.

    If you've been out of work for a long time, explain why. Talk about the positive things you've done while away from work. For example, networking, retraining, volunteering or keeping fit.

    If you:

    • left by choice: be positive about why you want a new job and describe why their company suits you better
    • got made redundant: explain the situation, be positive and describe how you've responded since
    • were fired for misconduct or poor performance: explain why your standards dropped, what you've learned and how you've improved since the experience

    From National Careers Service: interview advice (Open Government Licence v3.0)

More jobs like this

Remote Software engineer jobs (36)