Terraform Example: Serverless React App with AWS API Gateway and Lambda
A Terraform example demonstrating how to create a serverless React application using AWS API Gateway to invoke an AWS Lambda function, including CORS configuration.
Topic
44 articles tagged “programming”.
A Terraform example demonstrating how to create a serverless React application using AWS API Gateway to invoke an AWS Lambda function, including CORS configuration.
A guide to troubleshoot and resolve common TypeError issues, specifically 'Cannot read property 'apply' of undefined', when executing external scripts with Truffle.
An introduction to smart contracts, their history, how they work, and their execution on the Ethereum blockchain using Solidity and Web3.
This post delves into Java memory management, common types of OutOfMemoryError, and demonstrates how to create various memory leaks like byte, list, map key, and class leaks with practical examples.
An introduction to JavaScript Promises, explaining their purpose in handling asynchronous operations, addressing callback hell, and demonstrating a basic implementation.
An in-depth look at how Java implements generics through type erasure, including the steps involved, its compile-time nature, and the role of synthetic bridge methods in preserving polymorphism, illustrated with code examples.
An explanation and example of Groovy's memoize() method for caching closure results to improve performance, particularly in computationally intensive or recursive scenarios.
A quick tip demonstrating how to use the Grails `dataBind` command outside of a Grails controller, for instance, in a service layer.
Learn how to store and access your Android application context globally using a static field in your custom Application class, reducing the need to pass it around.
Learn how to integrate Google Analytics into your Android application more cleanly using ActivityLifecycleCallbacks instead of manual onStart and onStop calls in every Activity.
Explore a custom implementation of a blocking queue in Java, complete with worker threads and the 'poison pill' termination technique. This article demonstrates fundamental concurrency concepts and serves as a learning exercise compared to using Java's built-in `BlockingQueue`.
A guide on how to pass array instances directly to methods in Java, and a technique using anonymous inner classes with instance initialization for collections.
Explore two common methods for creating new threads in Java: implementing the Runnable interface or extending the Thread class and overriding its run() method.
A recommendation for the book 'Refactoring: Improving the Design of Existing Code', highlighting its value for developers looking to enhance their coding skills.
Insights from computing pioneers Ward Cunningham on Agile and knowledge sharing, and Barbara Liskov on the Liskov substitution principle and distributed systems, through their QCon interviews.
Explore the Builder Pattern as an elegant solution for handling a large number of optional parameters in constructors, addressing limitations of telescopic constructors and JavaBeans.
An explanation of the Visitor design pattern, demonstrating how to define new operations on objects without modifying their classes, using a Java example with vehicle fuel efficiency calculations.
Explore the concept of ThreadLocal in Java, its unique scope, global access within a thread, and common use cases in web applications and as an alternative to object pools.
An overview of different reference types in Java, including strong, weak, and soft references, explaining their behavior with the garbage collector and common use cases like caching.
An introduction to the Command pattern, including its definition, use cases, and an example demonstrating complete decoupling between sender and receiver.
A quick guide on how to use the ROME library in Java to easily fetch and parse RSS feeds, including a practical code example.
An exploration of Douglas Crockford's influence on the JavaScript community, the language's unexpected rise beyond browser confines, and his insights on functional programming and avoiding classical methodologies.
Exploring various concurrent programming strategies in Java, including single-threaded, simple multi-threaded, thread pooling, and the Future and Callable mechanisms, along with a performance comparison.
A reflection on the importance of clean code, inspired by 'Clean Code - A Handbook of Agile Software Craftsmanship', emphasizing clarity and professionalism in programming.
This post explores key differences between Groovy and Java, focusing on Groovy's closures and its dynamic programming capabilities, with practical code examples.
An introduction to the Groovy programming language, covering its core concepts, fundamental differences from Java, productivity features, operators, data types, collections, and regular expression support.
An introduction to Scheme, highlighting its benefits for understanding JavaScript, its core functional programming concepts, and basic syntax with illustrative examples.
An explanation of the Decorator design pattern in Java, including its definition, implementation examples, and a demonstration of how it adds functionality to objects dynamically.
A tutorial on developing a 2D Android game similar to Hexxagon, covering game rules, class design, UI, and animation using Java 2D interfaces.
A guide to using XPath for XML document parsing and querying in Java, with practical code examples.
A simple and descriptive example of performing Saxon XSLT transformations using Java, including a code snippet and setup instructions.
An introduction to PL/SQL cursors, differentiating between implicit and explicit cursors, their usage, and best practices with code examples.
PL/SQL packages for automating Excel and Word document creation and manipulation within Oracle Forms 10g applications using WEBUTIL and OLE2.
An in-depth look at the Model-View-Controller (MVC) architectural pattern, its core components, application in web development, particularly with JSP and Servlets, and a discussion on related frameworks.
An introduction to XSLT for XML document transformation, covering core concepts, functional programming influences, and a practical example of transforming weather XML into HTML.
A comprehensive guide to AJAX, comparing plain JavaScript with jQuery, and demonstrating how to use jQuery's powerful load() method for dynamic content updates. Includes cross-browser XMLHttpRequest handling, jQuery load() examples, and best practices for GET vs. POST requests.
This post explains how to convert Java Collections to typed arrays using the Collection.toArray(T[] a) method, avoiding explicit casting.
Learn how to track and monitor SQL queries executed by View Objects in ADF applications by overriding the executeQueryForCollection method and extracting parameter values.
An introduction to creational design patterns, focusing on the Factory Method and Abstract Factory patterns, with Java examples and a comparison of their usage.
An introduction to the core concepts of the Spring framework, focusing on how to wire and instantiate Java POJO (Plain Old Java Object) beans using XML configuration, demonstrated with a practical Employee-Department system example.
An introduction to XPath, explaining how to navigate and query XML documents using path expressions, predicates, and relative node selections.
Understanding closures in JavaScript, a powerful concept for handling asynchronous callbacks.
Exploring the deeper concepts of JavaScript functions, including their object nature and first-class status.
An introduction to objects in JavaScript, including object creation, properties, JSON notation, and the window object.