
Fixing AI code, over-engineering JavaScript, and more: discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the December 10th issue.

TOON is a lightweight format designed to reduce token usage in LLM prompts. This post breaks down how it compares to JSON, where the savings come from, and when it actually helps.

Andrew Evans, principal engineer and tech lead at CarMax discusses five ways to fix AI-generated code and help you debug, test, and ship safely.

This tutorial walks through recreating Apple’s Liquid Glass UI on the web using SVG filters, CSS, and React. You’ll learn how to build refraction and reflection effects with custom displacement and specular maps, and how to balance performance and accessibility when using advanced filter pipelines.
Would you be interested in joining LogRocket's developer community?
Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.
Sign up now
4 Replies to "Cloning Solidity smart contracts using the factory pattern"
In the first snippet of code, I think the constructor shouldn’t have the _owner parameter
Should be corrected now — thank you!
In the section ‘Using the clone factory pattern’, the first code snippet for `FoundationFactory` defines a constructor in the old way (<v0.4.23); i.e. instead of `function FoundationFactory(address _libraryAddress) public {…`, it should be `constructor(address _libraryAddress) public {…`.
See: https://stackoverflow.com/questions/50456067/in-solidity-can-the-constructor-function-have-the-same-name-as-the-contract
Am I crazy or is the most important part missing? It doesn’t display the total gas paid when using either option, just shows the gas price in gwei…
“`
Clone factory
Gas Fees:
Base: 12.959896517 Gwei
Normal factory
Gas Fees:
Base: 25.529794514 Gwei
“`