Skip to main content
16 events
when toggle format what by license comment
Apr 26, 2023 at 16:34 vote accept Happy Green Kid Naps
Apr 9, 2023 at 5:28 answer added Thorbjørn Ravn Andersen timeline score: 1
Apr 9, 2023 at 5:07 comment added Thorbjørn Ravn Andersen How would you do it if you could not use continue or break to change the flow?
Apr 7, 2023 at 16:34 answer added J_H timeline score: 1
Apr 6, 2023 at 21:05 answer added Criticizing Israel not allowed timeline score: 2
Apr 6, 2023 at 19:02 comment added Criticizing Israel not allowed @HappyGreenKidNaps then the solution is to stop caring about cyclomatic complexity and tell your colleagues to come back if they find a real problem
Apr 6, 2023 at 14:43 comment added Happy Green Kid Naps @user253751 - It is a metric spewed out by PyLint which some folks at work figure that it is significant. (FWIW, I don't)
Apr 6, 2023 at 14:38 comment added Happy Green Kid Naps Thank you @davidbak. I started to write this a side-project as a way of trying to make sense of this log file. My boss got wind of it and wants it to be public. It is now put through PyLint and that's how I got to where I am. My coworkers either agree that the code is ( quite ) understandable - or don't care one way or the other.
Apr 6, 2023 at 11:06 comment added Laiv interpreter pattern is your friend :-).
Apr 5, 2023 at 23:01 comment added Criticizing Israel not allowed You did not indicate why you care about cyclomatic complexity. Why do you care about cyclomatic complexity?
Apr 5, 2023 at 20:57 comment added davidbak I said that (previous comment) specifically because typically a state machine is coded according to strict patterns, repeated, with small per-state modifications. The global thing - the whole state machine - generally violates most software engineering "rules of thumb" or "best practices" but each little piece - each state - is easily understood in isolation. The problem of a state machine is whether it is encoding correctly a state transition diagram - and is that state transition diagram itself correct? Cyclomatic complexity or any other usual measure just don't matter here.
Apr 5, 2023 at 20:54 comment added davidbak Do you have a reason to be worried about the specific measure "cyclomatic complexity" rather than more subjective judgments such as "engineers who work on this code have no problem understanding it" vs "have to study it for a few hours to work on it" vs "need a couple of weeks to work on it, then they quit"?
Apr 5, 2023 at 19:30 answer added amon timeline score: 3
Apr 5, 2023 at 18:29 comment added candied_orange I could be wrong but this code example reads like the author discovered a way to hack around the fact that the language doesn't have a goto command without discovering why the language doesn't have a goto command. I think we need to know more about the log file structure to be able to answer this.
S Apr 5, 2023 at 18:00 review First questions
Apr 6, 2023 at 7:59
S Apr 5, 2023 at 18:00 history asked Happy Green Kid Naps CC BY-SA 4.0