Open in app

Sign in

Medium Logo
Write

Sign in

Mike Schinkel
Mike Schinkel

1.4K followers

Home

Lists

About

I have come across a use-case where a shallow copy in GoLang actually is a good idea as it gives…

type Foo struct {

Mar 23, 2023
Mar 23, 2023

Kudos for not one but two great analogies!

As for Nix, I recently joined a team using Nix-Shell as part of the build process and am finding it to be a royal PITA, _especially_…

Nov 17, 2022
1
Nov 17, 2022
1

Disagree, at least for languages that support `goto` which sadly neither Java nor ECMAScript do.

Using `goto end` for your guard clauses where `end:` is a label just before `return`, or just before cleanup results in cleaner, easier to…

Oct 24, 2022
Oct 24, 2022

I totally agree with you. I wish the "return early" madness would go away.

Here is another way to write the code you refactored (sadly if ECMAScript had goto like PHP and Go then it would be much cleaner):

Oct 24, 2022
Oct 24, 2022

Guard clauses? YES!

Multiple returns? NO!!!

Oct 24, 2022
Oct 24, 2022

As it has now been 3+ years since you wrote this, has anything you complained about with Basel…

Apr 13, 2021
1
Apr 13, 2021
1

Battling the Enemies of Democracy

The USA  — and indeed the world  — are in the thralls of a battle between the public good and extremely well-funded actors who are devoid…

Nov 24, 2019
Battling the Enemies  of Democracy
Battling the Enemies  of Democracy
Nov 24, 2019

Proposal: Gun Victim’s M.A.S.C.R. Fund

Since we as a country cannot seem to agree on how to reduce gun violence in this country, the least we can do is come together to take care…

Feb 16, 2018
Proposal: Gun Victim’s M.A.S.C.R. Fund
Proposal: Gun Victim’s M.A.S.C.R. Fund
Feb 16, 2018

Proposal: Gun Victim’s M.A.S.C.R. Fund

I moved the proposal to here:

Nov 12, 2017
Nov 12, 2017

Dems always bring knives to a gun fight

The USA is the most divided its ever been in the modern era between the political left and political right, the Democrats and the…

Nov 11, 2017
2
Dems always bring knives to a gun fight
Dems always bring knives to a gun fight
Nov 11, 2017
2
Mike Schinkel

Mike Schinkel

1.4K followers

Go developer. Pragmatic Progressive.

Following
  • Bob Gendler

    Bob Gendler

  • Sergiy Yevtushenko

    Sergiy Yevtushenko

  • HarryHTML

    HarryHTML

  • Ralph Caraveo

    Ralph Caraveo

  • Adam Szpilewicz

    Adam Szpilewicz

See all (1,536)

Help

Status

About

Careers

Press

Blog

Privacy

Rules

Terms

Text to speech