schwa,
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
    dankeen,
    @dankeen@mastodon.social avatar

    @schwa I feel like none of the replies were understanding the awesomely fast swift variable view load time….

    Bluedonkey,
    @Bluedonkey@mastodon.social avatar

    @schwa Even more interesting when it is a container processing data in real-time... those printed logs give me a record I can look at after it has failed to see what happened before it failed.

    ctp,
    @ctp@mastodon.social avatar
    ddribin,
    @ddribin@mastodon.social avatar

    @schwa They're going to have to pry printf from my cold, dead hands. It's amazing that it scales down to embedded devices (using a UART) and up to debugging race conditions in multithreaded code.

    brennansv,
    @brennansv@sfba.social avatar

    @schwa I often encourage reducing logging in favor of returning status as an enum or throwing an error. I prefer to have lower level API not log as much and instead communicate everything in a structured way to callers so code can handle the status or error. They can either choose to handle it, pass it up further or log it.

    schwa,
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • brennansv,
    @brennansv@sfba.social avatar

    @schwa You don’t like that?

    brennansv,
    @brennansv@sfba.social avatar

    @schwa Once time an engineer in China flew into Seattle because his company had a critical deadline for a product launch. He was supporting a BLE device which kept failing to connect with the app my team supported. He had been getting a generic error for a long time and could not figure it out. Turns out 7 layers deep the specific was thrown and it went up to the top layer then was made generic and unhelpful. The problem was that when the BLE device connected it needed to send the version before continuing further and we had a specific error code but our protocol would not support passing back a useful error code. This is why I prefer to communicate with code because even if we did have logging this developer would not know to look for it. Instead a status code would have helped him understand exactly how to fix the problem.

    schwa,
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • brennansv,
    @brennansv@sfba.social avatar

    @schwa I will leave you be then.

    brennansv,
    @brennansv@sfba.social avatar

    @schwa I was not offering advice, just making a comment. I do not understand the hostile response.

    collin,
    @collin@ruby.social avatar

    @schwa Oh no! I mean, both are valuable. Apple was pretty clear that the new logging framework is meant to be used 🤷‍♂️

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines