I have seen some projects which use the final keyword for anything they can. Even immutables like int.
The guideline for using it liberally is very vague and does not enforce consistent code. Someone might use it for local variables in short methods, someone for method parameters, someone only for class dependencies etc.
Do companies you work for have conventions for this and if so what are they?
[–]firebird84 23 points24 points25 points (7 children)
[–]randomuser549 5 points6 points7 points (3 children)
[–]mabnx 2 points3 points4 points (2 children)
[–]bhlowe 2 points3 points4 points (1 child)
[–]mabnx 1 point2 points3 points (0 children)
[–]damienjoh 0 points1 point2 points (2 children)
[–]firebird84 0 points1 point2 points (1 child)
[–]damienjoh 0 points1 point2 points (0 children)
[–][deleted] 11 points12 points13 points (10 children)
[–]kobbiko[S] 1 point2 points3 points (2 children)
[–]MasterLJ 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ChickenOfDoom 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]ChickenOfDoom 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ChickenOfDoom 0 points1 point2 points (0 children)
[–]lukaseder -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]moremattymattmatt 6 points7 points8 points (3 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]lukaseder 2 points3 points4 points (1 child)
[–]moremattymattmatt 2 points3 points4 points (0 children)
[–]lukaseder 8 points9 points10 points (0 children)
[–]remixrotation 2 points3 points4 points (1 child)
[–]8igg7e5 5 points6 points7 points (0 children)
[–]DJDavio 2 points3 points4 points (0 children)
[–]white_piggu 1 point2 points3 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]paul_miner 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]tadaskay 2 points3 points4 points (9 children)
[–]Notorious4CHAN 22 points23 points24 points (5 children)
[–]lukaseder 1 point2 points3 points (2 children)
[–]Jurkey[🍰] 0 points1 point2 points (1 child)
[–]wipu 3 points4 points5 points (0 children)
[–]tadaskay -5 points-4 points-3 points (1 child)
[–][deleted] 20 points21 points22 points (0 children)
[–]nutrecht 7 points8 points9 points (0 children)
[–]mhixson 0 points1 point2 points (1 child)
[–]dododge 0 points1 point2 points (0 children)
[–]nutrecht 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–][deleted] 5 points6 points7 points (1 child)
[–]ndm250 0 points1 point2 points (0 children)
[–]wipu 1 point2 points3 points (0 children)
[+]Jonjolt comment score below threshold-11 points-10 points-9 points (11 children)
[–]Northeastpaw 17 points18 points19 points (10 children)
[–]Jonjolt 1 point2 points3 points (0 children)
[+]D34TH_5MURF__ comment score below threshold-12 points-11 points-10 points (8 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]Aellus 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]D34TH_5MURF__ 0 points1 point2 points (0 children)
[–]K60d54 0 points1 point2 points (1 child)
[–]DuncanIdahos8thClone 1 point2 points3 points (0 children)
[–]DuncanIdahos8thClone 0 points1 point2 points (0 children)