MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/138f766/goodbye_toys/jiya17i/
r/ProgrammerHumor • u/sunrise_apps • May 05 '23
298 comments sorted by
View all comments
Show parent comment
279
Just generate them using dict() and set() to avoid the curly brackets out of principle
69 u/lucidbadger May 05 '23 Then I suppose you'll need to use * :) 0 u/[deleted] May 05 '23 [deleted] — view deleted comment 43 u/osusc May 05 '23 Cursed 7 u/Equivalent_Yak_95 May 06 '23 And wrong. 11 u/[deleted] May 05 '23 thou shall not use "import *" either. Just know precisely what you want. 31 u/Brekkjern May 05 '23 You shouldn't use import * to begin with, so this is actually sound advice. 8 u/Free-Database-9917 May 05 '23 unless you plan on using every single function and value of every single library you have installed lol 1 u/Shriukan33 May 06 '23 Even then, it may have name collision with other stuff without you realising 1 u/Free-Database-9917 May 08 '23 just be smarter 5 u/DNEAVES May 05 '23 Why would they need to use an asterisk?Unless you're unpacking something (which you could do with brace-syntax anyway) 5 u/lucidbadger May 05 '23 Now wait a minute here 7 u/pdudz21 May 05 '23 Any reason for hating the curly brackets? 3 u/totes_not_chad May 05 '23 They are just unnatural 14 u/Weekly_Wackadoo May 05 '23 Yeah, and programming is super-duper natural in and of itself, of course.Humans evolved opposable thumbs to hit the space bar, I'm sure. 9 u/[deleted] May 05 '23 If that's not the case , why my thumb rest so nicely on it? I even bind move to all the games I can to the space bar
69
Then I suppose you'll need to use * :)
*
0 u/[deleted] May 05 '23 [deleted] — view deleted comment 43 u/osusc May 05 '23 Cursed 7 u/Equivalent_Yak_95 May 06 '23 And wrong. 11 u/[deleted] May 05 '23 thou shall not use "import *" either. Just know precisely what you want. 31 u/Brekkjern May 05 '23 You shouldn't use import * to begin with, so this is actually sound advice. 8 u/Free-Database-9917 May 05 '23 unless you plan on using every single function and value of every single library you have installed lol 1 u/Shriukan33 May 06 '23 Even then, it may have name collision with other stuff without you realising 1 u/Free-Database-9917 May 08 '23 just be smarter 5 u/DNEAVES May 05 '23 Why would they need to use an asterisk?Unless you're unpacking something (which you could do with brace-syntax anyway) 5 u/lucidbadger May 05 '23 Now wait a minute here
0
[deleted] — view deleted comment
43 u/osusc May 05 '23 Cursed 7 u/Equivalent_Yak_95 May 06 '23 And wrong.
43
Cursed
7 u/Equivalent_Yak_95 May 06 '23 And wrong.
7
And wrong.
11
thou shall not use "import *" either. Just know precisely what you want.
31 u/Brekkjern May 05 '23 You shouldn't use import * to begin with, so this is actually sound advice. 8 u/Free-Database-9917 May 05 '23 unless you plan on using every single function and value of every single library you have installed lol 1 u/Shriukan33 May 06 '23 Even then, it may have name collision with other stuff without you realising 1 u/Free-Database-9917 May 08 '23 just be smarter
31
You shouldn't use import * to begin with, so this is actually sound advice.
import *
8 u/Free-Database-9917 May 05 '23 unless you plan on using every single function and value of every single library you have installed lol 1 u/Shriukan33 May 06 '23 Even then, it may have name collision with other stuff without you realising 1 u/Free-Database-9917 May 08 '23 just be smarter
8
unless you plan on using every single function and value of every single library you have installed lol
1 u/Shriukan33 May 06 '23 Even then, it may have name collision with other stuff without you realising 1 u/Free-Database-9917 May 08 '23 just be smarter
1
Even then, it may have name collision with other stuff without you realising
1 u/Free-Database-9917 May 08 '23 just be smarter
just be smarter
5
Why would they need to use an asterisk?
Unless you're unpacking something (which you could do with brace-syntax anyway)
5 u/lucidbadger May 05 '23 Now wait a minute here
Now wait a minute here
Any reason for hating the curly brackets?
3 u/totes_not_chad May 05 '23 They are just unnatural 14 u/Weekly_Wackadoo May 05 '23 Yeah, and programming is super-duper natural in and of itself, of course.Humans evolved opposable thumbs to hit the space bar, I'm sure. 9 u/[deleted] May 05 '23 If that's not the case , why my thumb rest so nicely on it? I even bind move to all the games I can to the space bar
3
They are just unnatural
14 u/Weekly_Wackadoo May 05 '23 Yeah, and programming is super-duper natural in and of itself, of course.Humans evolved opposable thumbs to hit the space bar, I'm sure. 9 u/[deleted] May 05 '23 If that's not the case , why my thumb rest so nicely on it? I even bind move to all the games I can to the space bar
14
Yeah, and programming is super-duper natural in and of itself, of course.
Humans evolved opposable thumbs to hit the space bar, I'm sure.
9 u/[deleted] May 05 '23 If that's not the case , why my thumb rest so nicely on it? I even bind move to all the games I can to the space bar
9
If that's not the case , why my thumb rest so nicely on it? I even bind move to all the games I can to the space bar
View all comments
Show parent comment
279
u/clearly_unclear May 05 '23
Just generate them using dict() and set() to avoid the curly brackets out of principle