▲ 1218 ▼ AI will replace programmers (lemmy.ml) submitted 1 year ago by cm0002@lemmy.world to c/programmer_humor@programming.dev 129 comments fedilink hide all child comments
[–] ssfckdt@lemmy.blahaj.zone 9 points 1 year ago* (4 children) cries in left_pad It's kind of astonishing how many people leaned on that library just to add fucking spaces to strings permalink fedilink source parent hideshow 4 child comments replies: [–] boonhet@lemm.ee 7 points 1 year ago (3 children) It should be in the standard library anyway. Why the hell is it not?! I mean yeah, I can write my own function to do the same thing and probably I've done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language. permalink fedilink source parent hideshow 3 child comments replies: [–] CXORA@aussie.zone 2 points 1 year ago (2 children) It is, as padStart, which makes the number of packages using leftpad even more incomprehensible permalink fedilink source parent hideshow 2 child comments replies: [–] boonhet@lemm.ee 2 points 1 year ago (1 child) Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency permalink fedilink source parent hideshow 1 child comment replies: [–] CXORA@aussie.zone 1 point 1 year ago Thanks bro. lgtm. permalink fedilink source parent
[–] boonhet@lemm.ee 7 points 1 year ago (3 children) It should be in the standard library anyway. Why the hell is it not?! I mean yeah, I can write my own function to do the same thing and probably I've done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language. permalink fedilink source parent hideshow 3 child comments replies: [–] CXORA@aussie.zone 2 points 1 year ago (2 children) It is, as padStart, which makes the number of packages using leftpad even more incomprehensible permalink fedilink source parent hideshow 2 child comments replies: [–] boonhet@lemm.ee 2 points 1 year ago (1 child) Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency permalink fedilink source parent hideshow 1 child comment replies: [–] CXORA@aussie.zone 1 point 1 year ago Thanks bro. lgtm. permalink fedilink source parent
[–] CXORA@aussie.zone 2 points 1 year ago (2 children) It is, as padStart, which makes the number of packages using leftpad even more incomprehensible permalink fedilink source parent hideshow 2 child comments replies: [–] boonhet@lemm.ee 2 points 1 year ago (1 child) Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency permalink fedilink source parent hideshow 1 child comment replies: [–] CXORA@aussie.zone 1 point 1 year ago Thanks bro. lgtm. permalink fedilink source parent
[–] boonhet@lemm.ee 2 points 1 year ago (1 child) Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency permalink fedilink source parent hideshow 1 child comment replies: [–] CXORA@aussie.zone 1 point 1 year ago Thanks bro. lgtm. permalink fedilink source parent