サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
alvinalexander.com
This is an excerpt from the 1st Edition of the Scala Cookbook (partially modified for the internet). This is Recipe 20.6, “Scala best practice: How to use the Option/Some/None pattern.” Problem For a variety of reasons, including removing null values from your Scala code, you want to use what I call the Option/Some/None pattern. Or, if you’re interested in a problem (exception) that occurred while
Scala class examples (constructors, case classes, parameters) This post contains a collection of examples of Scala classes and class properties. I created most of these in the process of writing the Scala Cookbook. Unlike the Cookbook, I don’t describe them much here, I just show the examples, mostly as a reference for myself (and anyone else that can benefit from them). Basic Scala class examples
As I’ve been learning more about Scala and functional programming, I’ve been looking at accomplishing more tasks with recursive programming techniques. As part of my studies, I put together a number of Scala recursion examples below, including: Sum Product Max Fibonacci Factorial Given that background, let’s get started. Thinking in recursion When I’m going to write a recursive method, I usually t
UPDATE: I haven’t used CentOS in several years, and from the comment in the Comments section below, it appears that the approach I wrote about in this tutorial (several years ago) no longer works. I’m keeping the original contents here only to provide some context. Please see this CentOS forum link for current information. *** everything below here is out of date *** If you want to install only se
Scala exec FAQ: How do I execute external system commands in Scala? When it comes to executing external system commands, Scala is a dramatic improvement over Java. The operators that Scala makes available are much more like Perl or Ruby, and the operators themselves are consistent with traditional shell commands, and are therefore easy to remember. Let's take a look at a few examples. Executing sy
I know remarkably little about Python and GTK, but from the two URLs shown in the source code below I was able to piece together a working, “Hello, world” Linux screensaver. Well, calling it a screensaver is a stretch, because what it will really do is burn the characters “Hello, world” into your monitor; but at least I cracked the code on how to get this started. To try this on your own Linux sys
vi/vim: How to control/configure editor colors (color settings) vim colors FAQ: Can you provide details on how to control/configure colors in the vim editor (i.e., vim color settings)? Sure. When using vim syntax highlighting, a common complaint is that the default color scheme is a little too bold. In this article I'll try to demonstrate how you can change the colors in vim to be a little more pl
By Alvin Alexander. Last updated: November 10, 2018 Wow, I began by writing a few Scala programming tutorials just because I like the language, and as I look here a couple of months later I now have more than sixty tutorials. As a result, I thought I'd start organizing them here in the form a Scala Programming Cookbook. Here's my current collection of Scala FAQs and recipes, in a "cookbook" format
Free Java Source Code, Examples, Software, Applets (Java Source Code Warehouse) Search the Java source code warehouse To use the Java Source Code Warehouse, just type in the name of a class you're interested in learning about, like URLConnection or StringTokenizer. More Information UPDATE: Beginning in 2016, a portion of the revenue from the ads in the source code warehouse project will be used to
このページを最初にブックマークしてみませんか?
『Scala, Java, Unix, MacOS tutorials (page 1) | alvinalexander.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く