This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
######################################################### | |
# CRIANDO BANCO DE DADOS E FAZENDO UMA SIMPLES CONSULTA # | |
######################################################### | |
# importando o módulo SQLite3 | |
import sqlite3 | |
# conectando e criando o banco | |
connection = sqlite3.connect('baseDeDados.db') | |
cursor = connection.cursor() |
def sqrt_julia_regression(x, first_trial_root=1): | |
""" | |
Function that calculates the square root of an natural number using the Julia Regression Method. | |
For more info, see here: https://santamaria.pucminas.br/noticias/regressao-jn/ | |
and here: https://www.terra.com.br/byte/ciencia/regressao-de-julia-genia-brasileira-de-11-anos-cria-novo-calculo-para-raiz-quadrada,a3c05efa73e8f7f085c03e8275cf3946v5q0ousw.html | |
. | |
Params: | |
x (int) - Natural input number | |
first_trial_root (int) - First root to try | |
Return (int): natural root found or None |
Sete Atitudes para Hackear a Indústria de Software
By Klaus Wuestefeld
Seja realmente bom em alguma coisa. Não fique só choramingando ou querendo progredir às custas dos outros. Não pense q pq vc sentou 4 anos numa faculdade ouvindo um professor falar sobre software q vc sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
Warning: Do not try those command in your main PC, I test in a virtual Machine
Note: Most of commands are from the Dockerfile
in Reference section. If you want to test wine, just run their docker container
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo tee /etc/apt/trusted.gpg.d/winehq.asc