Nibras Code

Programming

Where to start

  1. 1HTML/CSSThe face of a page. Read this first.
  2. 2PythonA first language. A short program starts here.
  3. 3Nibras AIAsk when you get stuck.

What is the difference

pip and npm

pip brings a package for Python. npm brings a package for Node.js. Both put ready code into a project, but they do not work in the same place.

Python is a language. A program is written with it. pip installs a ready library for that language. A library for numbers, an image, or a site can come that way.

Node.js is the place that runs JavaScript on a computer. npm brings a ready package into that place. pip does not belong in a Node project. npm does not belong in a Python project.

When Python is installed, pip often comes with it. When Node is installed, npm comes too. The tool is separate from the language: the language runs the code, the tool brings the package.

Composer and PHP

PHP is a language that runs on the server side of a site. Composer is not a language. It is the tool that brings a PHP library into a project.

PHP reads the code and runs it. Composer downloads the ready code you need and puts it in the project folder. PHP runs the button. Composer only brings the package.

PHP still runs without Composer. A small page may not need it. In a large project it is hard to collect every library by hand. Composer does that with one command.

In short: PHP is the language. Composer is the package tool for that language. npm is for Node, pip is for Python, and Composer is for PHP.