I’ve just read “Is Zig the long awaited C replacement” and it cites: The V Programming Language seems to be a “fastly compiling” language. Compilation speed benchmark C 5.2s gcc test.c C++ 1m 25s g++ test.cpp Zig 10.1s zig build-exe test.zig Nim 45s nim c test.nim Rust Stopped after 30 minutes rustc test.rs Swift Stopped…
Category: Eiffel
Link
If you are familiar with Object-Oriented Programming, then you’ve probably heard about the SOLID principles.
Ugonna Thelma explains The S.O.L.I.D Principles in Pictures and she explains them very well.
In fact I shall admit that while I’ve interiorized the S, the O, the L and the I, I always tend to forget the “Dependency injection” principle. Now it’s really clear!
Documentations, Eiffel
What Is Faster In C#: A Struct Or A Class? – C# Architects – Medium
What do you think is faster: filling an array with one million structs, or filling an array with one million classes? Mark Farragher ask himself What Is Faster In C#: A Struct Or A Class? – C# Architects – on Medium. But of course the third version is faster because he’s not comparing apples and…
Eiffel, Python
Eiffel’s conditional expressions
The ternary conditional operator is a short-hand method for writing an if/else statement. Does Python Have a Ternary Conditional Operator? Yes, it does. This remids me that Eiffel, at least “ISE Eiffel” does actually have conditional expressions that are the same: answer := if time < noon then “Good morning” else “Good afternoon” end
Eiffel, Liberty Eiffel
Single header C++ WASM binary writer (with linking/reloc support): https://t.co/Jq44aiwNRt as part of the Lobster WASM backend: https://t.co/zsC6UJRiYQ — Wouter van Oortmerssen (@wvo) June 27, 2019 Single header C++ WASM binary writer (with linking/reloc support): (link: https://github.com/aardappel/lobster/blob/master/dev/src/lobster/wasm_binary_writer.h) github.com/aardappel/lobs… as part of the Lobster WASM backend: (link: http://aardappel.github.io/lobster/implementation_wasm.html) aardappel.github.io/lobster Time is ripe to start implementing an…
Documentations, Eiffel
Maintainable Code and the Open-Closed Principle – Severin Perez – Medium
A Look at the Open-Closed Principle in JavaScript Maintainable Code and the Open-Closed Principle – Severin Perez – Medium Oh, another interesting article that tries to educate the “unliterate” JavaScript masses about the basic principle behind Eiffel…..
Eiffel
(ECMA) Eiffel Syntax Guide
(ECMA) Eiffel Syntax Guide
Eiffel, Javascript
Conditional JavaScript for Experts – Hacker Noon
Mastery of conditional expressions for cleaner codes They say in Conditional JavaScript for Experts – Hacker Noon. What they are suggesting is to use side-effects of “expression”, as Javascript does not separate commands and queries. Call me dogmatic but this behavior to look like a fundamental ingredient for disaster. In fact the same article says…
Eiffel, Javascript
Top 10 JavaScript errors from 1000+ projects (and how to avoid them)
From Top 10 JavaScript errors from 1000+ projects (and how to avoid them) Most of them are caught at compile time by strongly-typed languages. Who said Eiffel? Oh, how I want not to be so busy with other issues…. 🙁
Documentations, Eiffel, Javascript
Sheer, pure evil
JavaScript: Can (a==1 && a==2 && a==3) ever evaluate to true? Yes, it can. Understand how in this article! That’s pure sheer evil, in my humble opinion as it tricks most people. Eiffel forbids this evilness, but I shall explain it better.