You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Marcel dos Santos
marcelgsantos
Tech passionate programmer, web lover, PHP & JavaScript coder, interested in architecture & DDD, FP enthusiast, ex-FEMUG-SP, PHPSP evangelist and OSS supporter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aviso: Muitas vezes detalhes de várias operações podem variar de banco para banco. Em questões onde fiquei
em dúvida, este documento segue o funcionamento do PostgreSQL, pois é o banco que conheço melhor.
Pré-requisito: Álgebra Relacional básica
Antes de começar a escrever SQL, você precisa entender o modelo de
como um banco de dados relacional funciona. Não precisa se aprofundar
muito, mas você precisa entender como que dados e relacionamentos entre
eles são representados. (Nota importante: Relacionamento e relação não são a
O uso de repositórios GIT tem diversos benefícios: trabalho em equipe,
desenvolvimento de recursos separadamente, histórico das alterações, etc.
Mas para disponibilizar todo o potencial é preciso um pouco de dedicação
no momento do commit.
Não é preciso uma vasta experiência para já ter passado por situações como
conflito de arquivos onde a mensagem não traz nenhuma informações relevante
e é preciso inverstigar o que a outra pessoa estava desenvolvendo ou após
A small compendium of what is possible with `vimeo/psalm` 3.9.x to add some decent type system features to PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run phpcs and phpcbf on all staged files before a commit is made
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How do you send information between clients and servers? What format should that information be in? What happens when the server changes the format, but the client has not been updated yet? What happens when the server changes the format, but the database cannot be updated?
These are difficult questions. It is not just about picking a format, but rather picking a format that can evolve as your application evolves.
Literature Review
By now there are many approaches to communicating between client and server. These approaches tend to be known within specific companies and language communities, but the techniques do not cross borders. I will outline JSON, ProtoBuf, and GraphQL here so we can learn from them all.