Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcodotcastro/6c2dfafef381ce20af70e055ad57c13d to your computer and use it in GitHub Desktop.
Save marcodotcastro/6c2dfafef381ce20af70e055ad57c13d to your computer and use it in GitHub Desktop.
v10.0: Qual é a linguagem de programação melhor para quem está começando?

Configurações

  • Objetivo fazer o upgrade e o downgrade da version default

  • Ruby

    • Instalar por Apt
      • sudo apt install ruby
    • Executar Hello World
      • ruby hello.rb
    • Instalar por Manager Version, https://rvm.io/
      • Pré-configuração
        • /
      • Instalar manager
      • Instalar versão
        • rvm list known
        • rvm install 2.6
    • Executar Hello World
      • ruby hello.rb
  • PHP

    • Instalar por Apt
      • sudo apt install php
    • Executar Hello World
      • php hello.php
    • Instalar por Manager Version, https://phpbrew.github.io/phpbrew/
      • Pré-configuração
        • sudo apt install php-bz2 libxml2-dev libbz2-dev libxslt-dev libzip-dev
      • Instalar manager
      • Instalar versão
        • phpbrew known
        • phpbrew install 5.4.0 +default
    • Executar Hello World
      • php hello.php
  • Java

    • Instalar por Apt
      • sudo apt install openjdk-8-jdk
    • Executar Hello World
      • javac hello.java
      • java HelloWorld
    • Instalar por Manager Version, https://www.jenv.be/
      • Pré-configuração
        • /
      • Instalar manager
        • git clone https://github.com/jenv/jenv.git ~/.jenv
        • echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bashrc
        • echo 'eval "$(jenv init -)"' >> ~/.bashrc
        • source ~/.bashrc
      • Instalar versão
        • jenv versions
        • jenv doctor
        • which java
        • ls -la /usr/bin/java
        • ls -la /etc/alternatives/java
        • jenv add /usr/lib/jvm/java-11-openjdk-amd64
        • jenv global 1.8
    • Executar Hello World
      • javac hello.java
      • java HelloWorld
  • Javascript

  • Python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment