19312 author: drakonic@wetdry.world
15 Aug 2024 21:23
tags: #duke #dukejava #java #myart #softwaremascot
tags: #duke #dukejava #java #myart #softwaremascot
I love you, Duke Java
8091 author: drmorr@hachyderm.io
12 Jun 2024 22:09
tags: #cplusplus #csharp #golang #java #javascript #kotlin #perl #php #programming #python #rustlang #swift
tags: #cplusplus #csharp #golang #java #javascript #kotlin #perl #php #programming #python #rustlang #swift
I think the thing I find most frustrating about programming languages is that there is no standard way to refer to the length of an array.
Python, go: len(array)
Java, JavaScript: array.length
Rust: array.len()
C++: array.size()
C#: array.Length
PHP: count($array)
Perl: scalar(@array) (lmao)
Swift: array.count
Kotlin: array.size
Like, seriously? Can't we agree on just this one thing???