The thing that makes Cairo less scary after reading that article is that you don't need to know that much of what goes under the hood to get started. It's just another programming language so far.
Next stop, read the first few chapters of the cairo book to get a handle of the syntax. Variables and control flow is all you need to start.
After that, I've just quickly installed the dev tools, and I'm going to code an ERC20 from what I remember from the first article, using the cairo book. Let's go.
The book, the tutorial and the compiler all disagree on how to create a mapping/dictionary.
Today, we dine in hell.
Removed all functionality and started again.
Instantiating a contract with constructor arguments has been achieved internally.
But all the constructor arguments need to be the same type, weird.
Off to discord we go.
Never mind, I learnt about casting.
Oh joy
Google is dead to me
I spent probably two hours trying to print an address to console before giving up and finding a different way to test that `balanceOf` works.
Having something as basic as an address to be an import gives me strong BigNumber vibes. Yikes.
Thanks to the good people at the discord I learnt that you can create arbitrary addresses as:
I started in the summer of 2018, completing the cryptozombies.io tutorial. It took me about a week.
That was my first assignment as Blockchain Architect for now-defunct TechHQ.
I was given a month or so to retrain myself from being a corporate Solution Architect to design blockchain-based projects we could sell. I was the technical guy, in a three-person consultancy.
Our first chance was a few months later, in a deal to code @CementDAO
Yield has free flash minting of fyDai, and very low fees for fyDai/Dai trades that are close to maturity. You can combine those for cheap Dai flash loans.
To use it you code a contract that inherits from it, deploy, and start flash borrowing. 💸
I deployed a dummy flash borrower in Kovan, that you can use yourself to practice. The fees are paid by the contract, so pump it with some Kovan Dai first!