Alexander Codesalexandercodes.hashnode.dev·Sep 23, 2024Building a Code-Sharing DApp with FastHTMLIntroduction FastHTML is a new Python framework for developing interactive web applications. It's based on HTMX, and purportedly "scales down to a 6-line python file, and scales up to complex production apps". I'm excited to see if I can use it to bu...Eldar Ahmadov and 1 other are discussing this2 people are discussing thisDiscuss·10 likes·194 readsfasthtml
Alexander Codesalexandercodes.hashnode.dev·Aug 4, 2024Box Storage in Algorand PythonIntroduction Box storage is akin to a key-value database that smart contracts can manipulate on-chain. An application can create any number of boxes, with each box storing up to 32k bytes of data. 💡 Developer docs: Smart Contract Storage Algorand...Discuss·3 likes·403 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·May 18, 2024Validating Usernames in a Smart ContractIntroduction One of the first challenges in building an application is handling user registration. We often need to allow users to choose their own username, while ensuring that each one is unique. Usernames also usually require validation, with cons...Discuss·1 like·249 readsSmart Contracts
Alexander Codesalexandercodes.hashnode.dev·May 7, 2024Python & Smart ContractsIntroduction The inimitable Chris Kim recently tweeted about data types in smart contracts: https://twitter.com/chriskim_devrel/status/1787001209406251480?ref_src=twsrc%5Etfw And it got me thinking about friction points for onboarding new developer...Discuss·5 likes·232 readsPython
Alexander Codesalexandercodes.hashnode.dev·May 6, 2024Proof of Exclusion: A Smart Contract Bloom FilterIntroduction Smart contracts operate in highly constrained environments. We often need to use clever data structures to achieve particular goals within the confines of the virtual machine. A common requirement is to prove membership of something. For...Discuss·5 likes·210 readsbloom filter
Alexander Codesalexandercodes.hashnode.dev·May 2, 2024Dates, Times, and Property TestingIntroduction The Gregorian calendar is a royal pain in the arse. It was introduced in 1582, as a closer approximation of the solar year. The Gregorian leap year rule is: Every year that is exactly divisible by four is a leap year, except for years t...Eldar Ahmadov and 1 other are discussing this2 people are discussing thisDiscuss·2 likes·129 readsBlockchain
Alexander Codesalexandercodes.hashnode.dev·Apr 21, 2024Building a Personal NFT Marketplace on AlgorandIntroduction In this post, we're going to look at writing a simple smart contract in Algorand Python that allows a creator to list and sell their NFTs. The creator will be able to transfer assets to the application and set a sale price for each item ...Discuss·1 like·253 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 20, 2024Simulating UTXOs on AlgorandIntroduction There are two main accounting models used in blockchains: the UTXO model and the account model. The former is used by Bitcoin and Cardano; the latter is used by Ethereum, Algorand, and most other blockchains. Let's see if we can use Pyth...Kardo Locksmith and 2 others are discussing this3 people are discussing thisDiscuss·10 likes·233 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 18, 2024Tokenised Subscriptions on AlgorandIntroduction In this blog post, we'll explore a novel way to implement periodic payments on Algorand. The general idea is to write a smart contract that issues redeemable subscription tokens. Each subscription is represented by a unique asset, and ea...Phyllis Waller and 6 others are discussing this7 people are discussing thisDiscuss·13 likes·344 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 14, 2024Proof of Chance: A Fair Launch Smart ContractIntroduction It's difficult to ensure that all users have equal access to purchase or claim assets at launch. The fundamental issue, as I see it, is that there's no way to link an account or a set of accounts to an individual, without destroying priv...Discuss·2 likes·135 readsalgorand