Immutability and Design Patterns in Ruby

04/01/2021
by   Seamus Brady, et al.
0

Functional Programming has seen a resurgence in interest in the last few years and is often mentioned in opposition to Object-Orientated Programming. However, Object-Orientated Programming can actually absorb some of the lessons of Functional Programming to improve performance and reliability. This paper examines three ways in which Immutability, a common Functional Programming technique, can be used to develop immutable objects in Ruby.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/26/2022

Introduction to Functional Classes in CS1

Students introduced to programming using a design-based approach and a f...
research
08/30/2023

Functional Shell and Reusable Components for Easy GUIs

Some object-oriented GUI toolkits tangle state management with rendering...
research
08/23/2018

FMS: Functional Programming as a Modelling Language

In this paper we introduce the Functional Modelling System (FMS). The sy...
research
07/13/2023

Typed Design Patterns for the Functional Era

This paper explores how design patterns could be revisited in the era of...
research
07/21/2020

How to Increase Interest in Studying Functional Programming via Interdisciplinary Application

Functional programming represents a modern tool for applying and impleme...
research
08/28/2020

Smoothly Navigating between Functional Reactive Programming and Actors

We formally define an elegant multi-paradigm unification of Functional R...
research
11/23/2020

Simulating an Object-Oriented Financial System in a Functional Language

This paper summarises a successful application of functional programming...

Please sign up or login with your details

Forgot password? Click here to reset