News for hackers. Stuff that matters.
Re:Fundamentals of Optimal Code Style by Supermancho on Thursday March 25, 2021 @09:31PM (#26587884)
The "Building the Visual Structure" starts with an example that's doing way too much, to start. This analysis talks a lot about "style" without taking into consideration practical problems...ie

Option 2: inner alignment - what happens when your param names are longer than your call statement prefix? It's fucked visually.

    try foo (at: tempStoreUrl,
    destinationOptions: dstOptions,
    withPersistentStoreForm: storeUrl,
    sourceOptions: srcOptions,
         ofType: store.type)
So Option 1 is better (from his own criteria), but moreso, why group the first argument into the prefix of the call (or the end arg) ?

    try coordinator.replacePersistentStore (
                                           at: tempStoreUrl,
                                           destinationOptions: dstOptions,
                                           withPersistentStoreForm: storeUrl,
                                           sourceOptions: srcOptions,
                                           ofType: store.type
    )
This whole thing feels rather inconsistent and poorly thought out at times.

There are no comments on this comment yet.