- there’s a disconnect between Javascript to Solidity in our skills... logic-wise. Requirements of being in Web3Bridge cohort 6. Let’s work on reskilling it our data structure & algorithms.
- we’ll use a scripting language(Typescript/Javascript) for a solid understanding of writing script
- use node module to use
Introduction to JavaScript
- if you write solidity alone no one will hire you. When you write JS
- Javascript is a popular scripting language
- that can declare arguments using const, var & let
- const in JavaScript is like immutable in solidity
- understand for-loop logic: its fundamental is solidity programming
- script depends on dynamic data: depends on user input make it as dynamic as possible. Don’t assume
- solidity: deterministic values: on compile they should be available
- an array has members which can be anything: numbers etc
- look at everything in the most generic way possible: view them as members /entities of an array. That has the same structure e.g numbers.
- dealing with the array you’re dealing with everything individually
- when dealing with variables try to store their structure in your mind e.g object, string, numbers, etc
- know the data structure you’re working with
- when you’re using typescript you know what you’re working with unlike javascript
- blockchain developer writing scripts
- smart-contract vs blockchain engineer. Ethereum intern developers: blockchain applications are the work of smart contract dev...blockchain engineers write frontend that interacts with smart contract and fetch data
- smart-contract devs need to understand data structures, Merkle trees, arrays understand the advantages and disadvantages of data structures, cryptography.