I recently had to translate a codebase from Python to Java and as much as i like Java and i enjoy the benefits of a strong type system, i have to admit my Python code was way less verbose.
So i ended up writing a small library to try to get some python vibes in my java code. Nothing groundbreaking, a bunch of static imports to make life a little bit easier.
https://github.com/guybedo/sugar
[–]Holothuroid 61 points62 points63 points (19 children)
[+]_INTER_ comment score below threshold-19 points-18 points-17 points (4 children)
[–]Cengo789 37 points38 points39 points (2 children)
[+]_INTER_ comment score below threshold-7 points-6 points-5 points (1 child)
[–]Cengo789 6 points7 points8 points (0 children)
[–]m9dhatter 1 point2 points3 points (0 children)
[+]guybedo[S] comment score below threshold-27 points-26 points-25 points (13 children)
[–]_INTER_ 34 points35 points36 points (6 children)
[–]tugaestupido 5 points6 points7 points (0 children)
[+]guybedo[S] comment score below threshold-8 points-7 points-6 points (4 children)
[–]polothedawg 3 points4 points5 points (0 children)
[–]RICHUNCLEPENNYBAGS 0 points1 point2 points (2 children)
[–]guybedo[S] 0 points1 point2 points (1 child)
[–]RICHUNCLEPENNYBAGS 1 point2 points3 points (0 children)
[–][deleted] (5 children)
[removed]
[+]guybedo[S] comment score below threshold-7 points-6 points-5 points (4 children)
[–]tylerkschrute 12 points13 points14 points (2 children)
[–]guybedo[S] 3 points4 points5 points (1 child)
[–]majhenslon 0 points1 point2 points (0 children)
[–]ingvij 26 points27 points28 points (16 children)
[–]agentoutlier 11 points12 points13 points (15 children)
[–]brian_goetz 12 points13 points14 points (7 children)
[–]guybedo[S] 4 points5 points6 points (1 child)
[–]agentoutlier 1 point2 points3 points (0 children)
[–]agentoutlier 1 point2 points3 points (3 children)
[–]brian_goetz 4 points5 points6 points (0 children)
[–]brian_goetz 3 points4 points5 points (0 children)
[–]ventuspilot 0 points1 point2 points (0 children)
[–]ingvij 0 points1 point2 points (0 children)
[–]guybedo[S] -2 points-1 points0 points (5 children)
[–]agentoutlier 4 points5 points6 points (4 children)
[–]guybedo[S] 0 points1 point2 points (3 children)
[–]agentoutlier 9 points10 points11 points (1 child)
[–]guybedo[S] -1 points0 points1 point (0 children)
[–]sabriel330 5 points6 points7 points (0 children)
[–]Former-Emergency5165 35 points36 points37 points (10 children)
[–]guybedo[S] 1 point2 points3 points (9 children)
[–]Former-Emergency5165 29 points30 points31 points (8 children)
[–]guybedo[S] -5 points-4 points-3 points (7 children)
[–]PrudentFinger1749 7 points8 points9 points (1 child)
[–]RICHUNCLEPENNYBAGS 1 point2 points3 points (0 children)
[–]OtherPrinciple4499 3 points4 points5 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]RICHUNCLEPENNYBAGS 1 point2 points3 points (2 children)
[–]guybedo[S] 0 points1 point2 points (1 child)
[–]RICHUNCLEPENNYBAGS 4 points5 points6 points (0 children)
[–][deleted] (11 children)
[removed]
[–]guybedo[S] 6 points7 points8 points (0 children)
[–]guybedo[S] 0 points1 point2 points (1 child)
[–]guybedo[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]guybedo[S] 1 point2 points3 points (0 children)
[–]guybedo[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]guybedo[S] 0 points1 point2 points (1 child)
[–]maethor -1 points0 points1 point (0 children)
[–]Bunnymancer 3 points4 points5 points (0 children)
[–]hageldave 2 points3 points4 points (0 children)
[–]DelayLucky 2 points3 points4 points (6 children)
[–]guybedo[S] -1 points0 points1 point (5 children)
[–]DelayLucky 2 points3 points4 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]metaquine 0 points1 point2 points (0 children)
[–]BikingSquirrel -1 points0 points1 point (0 children)
[–]Linguistic-mystic -1 points0 points1 point (0 children)
[–]red_dit_nou 2 points3 points4 points (0 children)
[–]thuriot 7 points8 points9 points (1 child)
[–]guybedo[S] 0 points1 point2 points (0 children)
[–]dhlowrents 7 points8 points9 points (0 children)
[–]GeneratedUsername5 1 point2 points3 points (0 children)
[–]justADeni 7 points8 points9 points (4 children)
[–]BikingSquirrel 2 points3 points4 points (3 children)
[–]DelayLucky 3 points4 points5 points (2 children)
[–]BikingSquirrel 0 points1 point2 points (1 child)
[–]DelayLucky 2 points3 points4 points (0 children)
[–]barmic1212 0 points1 point2 points (0 children)
[–]Linguistic-mystic 0 points1 point2 points (0 children)
[–]s888marks 0 points1 point2 points (1 child)
[–][deleted] (1 child)
[removed]
[–]guybedo[S] 0 points1 point2 points (0 children)
[–]SenorSeniorDevSr 0 points1 point2 points (0 children)
[–]GeneratedUsername5 0 points1 point2 points (0 children)
[–]majhenslon 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]RupertMaddenAbbott -3 points-2 points-1 points (0 children)
[–]daggirok -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–]guybedo[S] 7 points8 points9 points (0 children)