Live data from Hacker News

Sonar is destroying my job and it's driving me to despair

community.sonarsource.com

41–50 of 73 posts

Re: Sonar is destroying my job and it's driving me to despair

#41

This sounds truly hellish, like being controlled by a stupid robot straight out of Kafka's "The Trial." They should allow special one off exception that are documented with a comment, similar to how you can disable Ruff warnings in python code for a single like # noqa: F401

They do // Nosonar

And @SuppressWarning for a specific rule id

Re: Sonar is destroying my job and it's driving me to despair

#42
post #23

We frequently have the issue of, upon refactoring code in such a way that involves moving it and its tests to a new file, Sonar will take away our previous "credit" for code coverage percentage, dropping our project below the threshold and failing. The only workaround I've found is to create a new function, fill it full of many useless no-op lines, and write a test for that function, just to bump the percentages back…

Heh, at one place I wrote some java code that would use reflections to test the getter/setters in a POJO so that it wouldn't end up with 0% code coverage.

getter setters w/o buisness logic seem like an antipattern though. let spring or some other annotation handle those

Re: Sonar is destroying my job and it's driving me to despair

#43

I sympathize with the OP. Having said that, I’ve rolled out SonarCloud to two different companies and I would not hesitate to roll it out to a third if given the opportunity. Initially, people always come out of the woodwork insisting that the gate requirements must be hard blockers and that we can just hand wave away the issues OP listed by tweaking the project rules. I always fight them, insisting that teams should…

their point is that a hammer shaped tool will be used to hammer. its more about what the tool defaults to doing that is the problem

Re: Sonar is destroying my job and it's driving me to despair

#44
post #3

No matter the industry, it sucks to have someone managing by dashboard. In classic post modernism, the signifier replaces the signified. If anything, it’s a great signal to the employee that it’s time to start looking elsewhere.

I'm not sure about every industry but it becomes especially tricky with software. I worked at a manufacturing plant and they put dashboards on monitors everywhere so the whole plant was always aware of their performance. This was easy to measure because they made physical goods! How do you measure output and performance in software?

Re: Sonar is destroying my job and it's driving me to despair

#45
post #34

Earlier quoted context omitted.

More than likely it is "just you", the page on post-structuralism seems clear enough to me (as far as I can tell, the post-structuralists are criticising structuralism because they don't think the structures are sufficiently powerful). What that means in detail is unclear - understanding a position and thinking it is obviously silly is a completely valid stance when dealing with philosophers. Or just having no intere…

> More than likely it is "just you", the page on post-structuralism seems clear enough to me ... > What that means in detail is unclear So the article is clear in describing an idea, the meaning of which is unclear to you?

Ah, sorry. The intended parsing turned out badly. That is meant to be "More than likely it is "just you". What that means in detail is unclear." Ie, what it means for it to be "just him" is not clear.

In hindsight I like the irony that the statement was also unclear, for all that it doesn't do my comment any favours.

Re: Sonar is destroying my job and it's driving me to despair

#46
post #11

Earlier quoted context omitted.

I don't get why people hate on post-structuralism. The process of reality getting abstracted to the point abstractions stop being representative of reality is extremely common in software engineering. https://en.wikipedia.org/wiki/Hyperreality A hyperreal workplace is one where representations of reality take precedence over reality itself, and the reality of a situation ceases to have meaning. i.e. One where people…

You need to learn to game it. People care about this stuff are usually stupid. When I led a large support organization I had an SVP who really cared about open incident duration. His pattern for giving a fuck was predictable. My strategy was to hold certain tickets in an undead state (not impacting the metric), then reopen them and close them, demonstrating a metric improvement. He got his improvement and big shot st…

[deleted]

Re: Sonar is destroying my job and it's driving me to despair

#47
post #11
post #3

No matter the industry, it sucks to have someone managing by dashboard. In classic post modernism, the signifier replaces the signified. If anything, it’s a great signal to the employee that it’s time to start looking elsewhere.

I don't get why people hate on post-structuralism. The process of reality getting abstracted to the point abstractions stop being representative of reality is extremely common in software engineering. https://en.wikipedia.org/wiki/Hyperreality A hyperreal workplace is one where representations of reality take precedence over reality itself, and the reality of a situation ceases to have meaning. i.e. One where people…

For Baudrillard specifically, The Matrix is of course to blame ;)

Re: Sonar is destroying my job and it's driving me to despair

#48
post #39
post #28

Earlier quoted context omitted.

That's typically _not_ what post-modernism is, that's at best a misunderstanding, but more likely a strawman. The only point on which all post-modernists agree is a refutation of meta-narratives (and to be explicit: "here is no reality out there, it's all just human-created abstractions" is a meta-narrative). A very, very charitable interpretation is that you are maybe conflating it with Frankfurt School of critical…

> That's typically _not_ what post-modernism is It's not what post-modernists typically say post-modernism is. But I'm not relying on what they say it is. I've read enough post-modernism to form my own opinion. > Read and think by yourself. I have. See above.

This doesn't seem to actually address any of what GP said

Re: Sonar is destroying my job and it's driving me to despair

#49
post #8

I'm not sure how much value sonar adds where I work (dotnet). It enormously affects build times, and I've yet to experience a single true positive in 2 years (apart from the code coverage dashboard). The amount of MRR you can generate by vaguely being related to mitigating vulnerabilities is incredible.

I worked at a place that was full of junior contractors who had a large incentive to ship and no incentives for support. Sonar was good about finding bugs that they should have fixed but didn’t give a rip about (e.g. not closing database connections on all paths)

Re: Sonar is destroying my job and it's driving me to despair

#50
post #11

Earlier quoted context omitted.

I don't get why people hate on post-structuralism. The process of reality getting abstracted to the point abstractions stop being representative of reality is extremely common in software engineering. https://en.wikipedia.org/wiki/Hyperreality A hyperreal workplace is one where representations of reality take precedence over reality itself, and the reality of a situation ceases to have meaning. i.e. One where people…

You need to learn to game it. People care about this stuff are usually stupid. When I led a large support organization I had an SVP who really cared about open incident duration. His pattern for giving a fuck was predictable. My strategy was to hold certain tickets in an undead state (not impacting the metric), then reopen them and close them, demonstrating a metric improvement. He got his improvement and big shot st…

It's less stupidity and more "if we don't prove that we meet x control in y compliance framework, our auditors will deem us non-compliant and we will be fined into oblivion"
Post reply on HN