alvin alexander
Nodes for the term “method”
Java: How to square a number
Read more
ScalaTest: How to print debug output in tests (to STDOUT)
Read more
Dart: How to pass a function into a function (using a Function as a method parameter)
Read more
Using the Scala Option, Some, and None idiom (instead of Java null)
Read more
Scala varargs syntax (and examples)
Read more
Scala: How to define a generic method parameter that must extend a base type (bounds)
Read more
How to read “difficult” Scala method type signatures
Read more
A Scala method to run any block of code slowly
Read more
Scala List/Array/Vector/Seq class filter method examples
Read more
Scala method and function examples
Read more
An @impure annotation for functional programming in Scala
Read more
A few notes about using Scala traits as mixins (construction order, overridden methods)
Read more
How to define Scala methods that take complex functions as parameters (syntax)
Read more
Scala: How to append and prepend items to Vector and Seq
Read more
Implicit methods/functions in Scala 2 and 3 (Dotty extension methods)
Read more
Explaining Scala’s `val` function syntax
Read more
Some Scala Exception ‘allCatch’ examples
Read more
Scala: Using functional programming to improve a method
Read more
How to create a Scala 3 infix method (and extension method)
Read more
A Java "extract method" refactoring example
Read more
When a Java method call requires a Class reference
Read more
A Java method that returns a random boolean value based on a probability
Read more
Scala best practices: null values, Option, Some, and None
Read more
How to define a default value for a method parameter that is a function
Read more
Scala: Standard style of using parentheses when calling procedures
Read more
Scala functions: Named arguments and default arguments
Read more
The Dart List 'filter' method is named 'where'
Read more
Flutter: Using the url_launcher’s onLinkTap method (example, syntax)
Read more
My Flutter/Dart string utilities functions
Read more
Flutter/Dart: A few ways to simulate slow-responding functions and methods
Read more
Flutter/Dart: How to use async code inside a non-async method (like initState)
Read more
Dart Map class forEach method examples
Read more
Dart lists: A multiline map method example
Read more
A Dart function to get the current date/time in a “seconds since the epoch” format
Read more
Quotes from Clean Code
Read more
LOGO used “TO” like Scala and Ruby use “def”
Read more
Scala 3: How to search the Scaladoc with function signatures
Read more
A Dart function to return a random element from a list
Read more
How to create inline methods in Scala 3
Read more
Scala: How to append varargs parameters to an ArrayBuffer
Read more
Creating a JSON method in a Play Framework Controller
Read more
What is a “context parameter” in Scala 3 (Dotty)?
Read more
How to write a Java method that returns a generic type (syntax)
Read more
Scala: How to add new methods to existing classes
Read more
How to define a Scala method to take an implicit parameter
Read more
Scala Option, Some, None syntax examples
Read more
Scala style: Side-effect methods with no parameters should be declared with parentheses
Read more
Java “Template Method” pattern examples
Read more
Simplify, simplify, simplify (programming Scala methods)
Read more
A Scala `for` loop as a method body
Read more
Scala FAQ: Can you use a question mark to end a method name?
Read more
An Android method to center text when using Canvas drawText
Read more
A Scala factorial recursion example
Read more
A Play Framework Anorm insert method that returns the database auto-insert ID
Read more
Why pure function signatures are more important than impure method signatures
Read more
AppleScript time example: The current time as hours and minutes
Read more
How to use the Commons IO project to create, delete, and move files and directories
Read more
Android: Generic methods to write/save Android preferences data
Read more
Scala FP idiom: Methods should not have side effects
Read more
Ruby “glob”: How to process each file in a directory that matches a certain pattern
Read more
A Java method that tests if a String is null or blank
Read more
How do I make variables private to my Perl function?
Read more
Sencha ExtJS - How to properly use the Store load method
Read more
An Android onTouchEvent method example (View class)
Read more
What does '???' (three question marks) mean in Scala?
Read more
How to print content-type, headers, and body to debug a Play Framework controller
Read more
Source code for an example Android 'send email' function/method
Read more
Scala - How to call a method on a superclass
Read more
CakePHP find conditions (plus find all, find list, and find count)
Read more
A CakePHP multiple layouts solution
Read more
JSP URI/URL - How to get the request URI, URL, and Context from a JSP
Read more
Ruby - How to sort an array of objects by one field
Read more
A perl function that runs a Unix command and returns its exit status
Read more
Ruby - Variable length argument lists with Ruby
Read more
Show the method signature with control-space keystroke
Read more
Java “static” - What does it mean when a method or field is "static"?
Read more
Java “abstract’ meaning: What does it mean when a method or class is abstract?
Read more
JBuilder - How to see the method parameters
Read more
AppleScript tip: using the ScriptEditor dictionary
Read more