[Reprint] Uber open source automation tools "piranha", specialized eat your old code

Uber open source automation tools "piranha", specialized eat your old code

https://segmentfault.com/a/1190000022097346

 

Usually no code on piranhas of the menu, but said today that this fish is different.

Uber open up an automated tool, called Piranha (meaning: Piranha), the tool can automatically remove the code obsolete and unused from the application code base.

Automated tools Piranha

clipboard.png

According to the introduction of Uber official blog, in Uber, engineers use to customize the function marking our mobile application execution, provide different functions for different groups of users. These flags allow such as localized user experience in different areas of operations, and more importantly, the gradual introduction of functionality to the user and try to use the same function in different variants.

However, a feature already 100% promotion to users or experimental features are considered after unsuccessful feature flag code out of date. These non-functional characteristics mark represents the technological burden, so difficult for the developer to work on the code base, and may make the application bloated, the need for unnecessary operations that affect end-user performance and may affect the overall application of reliable sex.

For engineers, the elimination of these "debt" can be very time consuming, thereby preventing them from developing new features.

To automate this process, Uber developed Piranha, the tool scans the source code to remove the code associated with the feature flags outdated or obsolete, so that the code base cleaner, safer, higher performance and easier maintenance.

It has been officially put into use

So far, Uber has been achieved with the Piranha to reconstruct the Objective-C, Swift and Java programs. Next, Piranha is likely to expand to more languages ​​(eg Kotlin, Go, etc.), while the Uber also call for more developers come together to contribute to it.

Piranha project blog:
https://eng.uber.com/piranha/

GitHub Address: 
https://github.com/uber/piranha

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/12550235.html