• MummifiedClient5000@feddit.dk
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    1
    ·
    2 days ago

    Regular expressions are not that difficult and coders that refuse to learn them because they “look like line noise” are terrible at their jobs.

    • howrar@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      19 hours ago

      Easy enough to write. But reading and maintaining? That’s the hard part.

    • zenforyen@feddit.org
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      Level 2 of these people: learn regex and try to parse something non-regular like XML or C++ templates with it.

      Same people who did not pay attention and hated the “useless” formal languages lecture in university and who have no clue about proper data structures and algorithms for their problem, just hack together some half-working solution and ship it. Fix bugs with extra if statements instead of solving the real issue. Not writing unit tests.

      Soo many people in software development who really should not be there.

    • arrakark@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      I’ve always thought that regular expressions are just specifications for state machines. They aren’t that difficult.

    • tiramichu@lemm.ee
      link
      fedilink
      arrow-up
      14
      ·
      2 days ago

      I can write a basic regex independently, but as soon as capture groups or positive/negative lookahead or lookbehind start popping up I’m back to the docs every time.

    • Ideonek@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Not a coder. But knowing basic regex, makes my life so much easier. Even in things like excel.