Earlier quoted context omitted.
Won't `getThingStrategy()` do something like `if PermissionController.get().get(MyPerm.class): doA() else: doB()` ?
Naah, but at least that would make the decision simple and clear (if condition return doA else return doB). Better would be for whatever ThingFactory or getThingService instantiates the Thing to make the decision, and compute it up front. If-else statements in application logic tangle the concepts of "what should be done and why?" with "let me do this Way 1" and "let me do this Way 2". Ideally a typical service (or m…
Uber open-sources tool to automatically clean up stale code
61–70 of 70 posts
Re: Uber open-sources tool to automatically clean up stale code
#62I find it strange that a company which provides taxi hailing/routing technology felt the need to write a code cleanup tool.
Re: Uber open-sources tool to automatically clean up stale code
#63Earlier quoted context omitted.
it stands for "open-source software". It's never abbreviated as "OS" for obvious reasons.
Thanks, I guess I'll add "Open Source Software" to my list of unusual yet widely understood verbs. The English language confuses a native German speaker once again!
Re: Uber open-sources tool to automatically clean up stale code
#64We have quite a few online services in production of which I'm sure have a lot of code that isn't executed/touched by our users.
As an example I'm thinking about code in if statements that are never reached because the statement always returns False. These tools discussed aren't capable of detecting such stale code.
Any suggestions?
Re: Uber open-sources tool to automatically clean up stale code
#65I like the concept using an analyzer like this but I've been looking for a tool that removes code that isn't perse stale but isn't executed for, say, x amount of time. We have quite a few online services in production of which I'm sure have a lot of code that isn't executed/touched by our users. As an example I'm thinking about code in if statements that are never reached because the statement always returns False. T…
Re: Uber open-sources tool to automatically clean up stale code
#66The latest place I work has a dusty monolith full of skeletons and zombies. They’ve been migrating off it to micro services for like 5 years now. I’d be nice to have a tool to clean it up. But the use cases is slightly different than this one.
Re: Uber open-sources tool to automatically clean up stale code
#67We just wrote one that does something similar for Typescript if anyone wants us to OSS it... The idea is that any stale code causes a HUGE amount of headache and removing it can be a life safer.
Re: Uber open-sources tool to automatically clean up stale code
#68Earlier quoted context omitted.
Thanks, I guess I'll add "Open Source Software" to my list of unusual yet widely understood verbs. The English language confuses a native German speaker once again!
To be fair, I am a native english speaker and this is the first time I've seen it used as a verb. "OSS" generally acts as a noun. In this instance I would have used "open source" as the verb of what you could do to your proprietary Software, after which it would become OSS.
Re: Uber open-sources tool to automatically clean up stale code
#69Earlier quoted context omitted.
it stands for "open-source software". It's never abbreviated as "OS" for obvious reasons.
Thanks, I guess I'll add "Open Source Software" to my list of unusual yet widely understood verbs. The English language confuses a native German speaker once again!
However you can definitely use "open-source" as a verb: "I open-sourced my last project." It's pretty common. And in this case "OSS" stands for "open-source", not "open-source software".
What's confusing you is that when we use the abbreviation "OSS" we're really intended people to read that as "open-source" even though the abbreviation technically means "open-source software". btw, you would never verbally spell out "OSS"—chiefly because it's the same number of syllables as "open-source".
Re: Uber open-sources tool to automatically clean up stale code
#70How does Pirahna clean itself?