Category Archives: Uncategorized

Chromium style guide on gender neutral code

Chromium has migrated the codebase to become gender neutral. This is a step in the right direction, even if very small.

Some points in our code, documentation and comments contain needless assumptions about the gender of a future reader, user, etc. Example: “When the user logs into his profile.”

Our Code of Conduct under “Be respectful and constructive” says:

Each of us has the right to enjoy our experience and participate without fear of harassment, discrimination, or condescension, whether blatant or subtle.

Emphasis is added: unnecessarily gendered code is discriminatory and condescending, and reading biased code isn’t enjoyable.

https://chromium.googlesource.com/chromium/src/+/master/styleguide/gender_neutral_code.md

Rickard Schoultz
I work at Digital River World Payments at the Principal Architect, but all views are my own. I write about technologies related to payments, security, network infrastructure and information management.

Rules of Abstraction

Martin Thompson on Designing for Performance, presented at a talk two months ago in Stockholm. Martin made the case for having a representative model, a domain model that is fit with the purpose in mind.

On the topic, Martin presented the Rules of Abstrations:

  1. Don’t use Abstraction

2. Don’t use Abstraction.

3. Only consider abstraction when you see at least 3 things that ARE the abstraction.

4. Abstractions must pay for themselves.

5. Beware DRY, the evil siren that tricks you into abstraction => Coupling.

 

Rickard Schoultz
I work at Digital River World Payments at the Principal Architect, but all views are my own. I write about technologies related to payments, security, network infrastructure and information management.