Ir al contenido principal

An easy way to make servers

Node.JS is a great tool for back-end development but is dynamically typed and gets really hard to use when making more complex computer programs. I wanted to learn golang but I read that it was statically typed and I like saving stuff on .json format . Then I learned about dartlang and flutter. Dart can be both statically typed and dynamically typed, it's cross platform, has a similar syntax to JavaScript and you get to specify  the data types just as in c++. Dart is also free and open-source and also has a package manager called pub.dev. It has a huge amount of libraries and one of the built in libraries is dart:io which contains a lot of functions that go from interacting with the file system to things like creating servers. Dart also makes it relatively simple to pass parameters with something they call named parameters.

 

Where to learn Dart and Flutter:

https://www.appbrewery.co/

 See my full simple dart server example here



Comentarios

Entradas más populares de este blog

Mind opening videos and reads

Existence, self-awareness, religion, philosophy and psychology: Existentialism: Crash Course Philosophy #16 Existential Therapy: Meaninglessness The philosophy of Stoicism - Massimo Pigliucci   Is life meaningless? And other absurd questions - Nina Medvinskaya   The Problem of Evil: Crash Course Philosophy #13 Determinism vs Free Will   Behavior and Belief   Mind Field - Freedom of Choice (Ep 5) Why Do We Get Bored? - YouTube    Fear of death: This Ancient Egyptian Mega-Tomb is the Largest of its Kind ⚱️ Tomb Hunters 101 | Smithsonian Channel     ‘Magic Servants’ Found Packed into Ancient Egyptian Tombs ⚱️ Tomb Hunters | Smithsonian Channel El Videojuego más Filosófico que haya Existido | Nier: Automata Reasoning and reality: Can you outsmart the fallacy that fooled a generation of doctors? - Elizabeth Cox (the explanation is a bit childish but this kind of issues are real) Do Chairs Exist?   Plato’s Allegory of the Cave - Alex Gendler - YouTube Cartesian Skepticism - Neo, Meet Rene:

Hexadecimal to Decimal

To convert a hexadecimal to decimal all we have to do is do is perform the opposite procedure we used to convert to hex. In this example we will turn back the number that we used here(#35) into decimal. First we must use the table to get back again the Remainder Decimal value Hex Equivalent 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 A 11 B 12 C 13 D 14 E 15 F Note: each hexadecimal digit represents the Remainders found when converting the number from decimal to hexadecimal  Now revert the Process by performing these simple steps:  Use the  table above to find the decimal equivalent of each Remainder in the case of #35 is 3 5 Multiply each of the remainders(decimal equivalent of each hex character) by 16 to the power of "n" where "n" is the position of each character. The position of the character is found by counting from right to left and starting the count on 0 rather than 1. Note: the

Counting in Hexadecimal

When searching for how to convert decimal numbers to hexadecimal it may seem like a daunting task. Until you learn about modulo . The easiest way for me to count in Hex is by counting in decimal and converting to Hexadecimal using the modulo operator(like a programmer). First you divide the decimal number by 16 Math.floor() the Division Result Find the Division Remainder using modulo Divide the number of your Division Result by 16 Repeat the previous steps until your Division Result is 0 For this example we will use the decimal number 53 Divide Division Result Division Remainder 53 / 16 Math.floor(3.3125) = 3 53 % 16 = 5 3 / 16 Math.floor(0.1875) = 0 3 % 16 = 3 We take the remainders going from the latest remainder to the one we got first. In this case 3 5 (the order is important). Then we use this table to translate the remainders into hex Decimal value Hex Equivalent 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10