It feels different to me than "programming". But, I wouldn't be surprised if they checked my Github account or something... And if I don't want them to see my Github account, then yeah maybe I shouldn't have a public Github account.
I'd hope some or even many countries would opt out of these restrictions as an incentive to tourism and business.
Reading your other comments in this submission, it doesn't sound like you know many non-Americans who have experience with the US border.
From my understanding it's different depending on where you're visiting from. And, yes, I know non-Americans who visit people here (not sure what comments of mine you got that idea from).
wouldn't that be a form of free speech suppression?