Open in app

Sign In

Write

Sign In

Antão Almada
Antão Almada

657 Followers

Home

Lists

About

Dec 7, 2022

Using “React Query” to mutate smart contracts (part 2)

NOTE: This series of articles use TypeChain to make strongly-typed calls to Ethereum. Please check its documentation and discussion board to learn how to set it up. It’s also assumed some knowledge of React Query. In my previous post I created a custom hook that wraps the following code: …

Web3

2 min read

Using “React Query” to mutate smart contracts (part 2)
Using “React Query” to mutate smart contracts (part 2)
Web3

2 min read


Dec 7, 2022

Using “React Query” to mutate smart contracts (part 1)

In previous posts I explained how React Query can be used to query smart contracts, that is, to perform read calls. Now I’m going to explain how to mutate, that is, to execute transactions on the blockchain. Unlike read calls, execution of transactions requires the confirmation by the user on…

Web3

2 min read

Using “React Query” to mutate smart contracts (part 1)
Using “React Query” to mutate smart contracts (part 1)
Web3

2 min read


Dec 6, 2022

Using “React Query” to query smart contracts (part 3)

Wallets that support multiple accounts and multiple blockchains, like MetaMask, make it very easy for a user to change active account and active blockchain. A web3 frontend should react immediately to these changes. NOTE: This series of articles use TypeChain to make strongly-typed calls to Ethereum. Please check its documentation…

Web3

2 min read

Using “React Query” to query smart contracts (part 3)
Using “React Query” to query smart contracts (part 3)
Web3

2 min read


Dec 6, 2022

Using “React Query” to query smart contracts (part 2)

In my previous post I explained how useQuery can be used to retrieve the value from an immutable method. Now let’s go up a notch and see how to use on methods where the returned value may change over time. NOTE: This series of articles use TypeChain to make strongly-typed…

Web3

3 min read

Using “React Query” to query smart contracts (part 2)
Using “React Query” to query smart contracts (part 2)
Web3

3 min read


Dec 5, 2022

Using “React Query” to query smart contracts (part 1)

React Query is often described as the missing data-fetching library for React, but in more technical terms, it makes fetching, caching, synchronizing and updating server state in your React applications a breeze. React Query is great to retrieve data from any remote source. Most examples of its use are based…

React

2 min read

Using “React Query” to query smart contracts (part 1)
Using “React Query” to query smart contracts (part 1)
React

2 min read


Jun 28, 2021

Array iteration performance in C# — Branching and parallelization

This is a third post in a series on performance in C#. Modern CPUs, in a quest for better performance, try to maximize its throughput by executing instructions simultaneously and while waiting for the result of logic tests. They try their best to guess the behavior of our code but…

Dotnet

5 min read

Array iteration performance in C# — Branching and parallelization
Array iteration performance in C# — Branching and parallelization
Dotnet

5 min read


Jun 25, 2021

Array iteration performance in C# — ArraySegment<T>

In my previous post I left out ArraySegment<T>. This is a value type that implements a way to slice arrays but that has now been replaced by Span<T> or Memory<T>. Span<T> supports other types of contiguous memory collections but, if you’re using just arrays, ArraySegment<T> has a few advantages. Span<T>…

Dotnet

3 min read

Array iteration performance in C# —  ArraySegment<T>
Array iteration performance in C# —  ArraySegment<T>
Dotnet

3 min read


Jun 21, 2021

Array iteration performance in C#

Implementing the sum of the items in an array is very simple. I think most developers would implement it this way: There’s actually a simpler alternative in C#: Another alternative is to use the Sum() operation provided by LINQ. It can be applied to any enumerable, including arrays. …

Dotnet

5 min read

Array iteration performance in C#
Array iteration performance in C#
Dotnet

5 min read


May 3, 2020

Unit testing a Roslyn Analyzer

I’ve been writing here many stories about enumeration in .NET. I know it’s hard to remember everything, specially when developing large projects with several other developers. I decided to develop NetFabric.Hyperlinq.Analyzer that peer reviews the code while it’s typed. I actually use it myself to develop NetFabric.Hyperlinq. The easiest way…

Dotnet

4 min read

Unit testing a Roslyn Analyzer
Unit testing a Roslyn Analyzer
Dotnet

4 min read


Mar 20, 2019

NetFabric.Hyperlinq — Zero Allocation

Achieving zero heap memory allocations with LINQ operations. Introduction This is a follow up on my exploration into improving LINQ performance. This is a work in progress. Go to my previous article to find what triggered this. The source code is available at https://github.com/NetFabric/NetFabric.Hyperlinq Zero Allocation I’ve been emphasizing the importance of the…

Dotnet

5 min read

NetFabric.Hyperlinq — Zero Allocation
NetFabric.Hyperlinq — Zero Allocation
Dotnet

5 min read

Antão Almada

Antão Almada

657 Followers

Principal Engineer @ Farfetch - R&D https://about.me/antao.almada

Following
  • David Piepgrass

    David Piepgrass

  • Jason Yip

    Jason Yip

  • Alan Smithson

    Alan Smithson

  • Kevin Gosse

    Kevin Gosse

  • Ahmed Fouad

    Ahmed Fouad

See all (214)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech