Rust, Software Development

How To Modify Struct Instance In A Function in Rust

This post shows how to modify a struct instance in a function. It uses the mutable shared borrowing to pass a mutable reference as an argument to a function. Struct

Read More...

Julia, Software Development

Define And Use Functions In Julia

This post is about how to define and use functions in Julia. A function is a block of codes that performs a specific operation. It may accept parameters which may

Read More...

Rust, Software Development

Function Accepts Struct That Implements A Trait

This post briefly talks about how to create functions that accept struct instances that implement a specific trait.

Read More...

Rust, Software Development

Rust Generics With Structs, Functions, Methods, and Enums

Rust Generics is a language feature for code reuse in multiple contexts using different actual types for Structs, Functions, Methods, and Enums. Moreover, they allow for concise and clean codes

Read More...

Software Development

Kotlin – Extension Functions

An Extension Function is a function that is attached to an existing class and are invoked like member functions. For this post, we are using Kotlin 1.1.

Read More...

Software Development

JavaScript Self-Executing Anonymous Functions

This post demonstrates how to create SEAFs (Self-Executing Functions) in JavaScript and briefly shows how AngularJS applications heavily use this type of function.

Read More...

Software Development

JavaScript – Convert Function to String and Back

This post demonstrates how to convert a JavaScript function to string and using the same string to declare and execute a method dynamically.

Read More...