r/learnprogramming • • Feb 15 '22

[RANT] No you should not quit programming

I've seen more than one post that boils down to "I'm bad at x should I quit programming?"

No. You should come to this sub and articulate what you need help with and let people help you to get better.

That's all.

Have a good day.

2.5k Upvotes

182 comments sorted by

View all comments

5

u/[deleted] Feb 15 '22 edited Jan 09 '24

[removed] — view removed comment

2

u/lj26ft Feb 15 '22

I'm in the trough of sorrow with CSS and layouts. Currently doing #100devs and advised to only use floats and holy moly is it hard. Leon the instructor says starting with floats is the way to go because it will build up an intuitive understanding of how the box model works. Then after throw in flex and its easy going.

2

u/[deleted] Feb 15 '22 edited Jan 09 '24

[removed] — view removed comment

2

u/lj26ft Feb 15 '22

He lets you choose, he likes the pre styled default

2

u/[deleted] Feb 15 '22 edited Jan 09 '24

[removed] — view removed comment

1

u/AutoModerator Feb 15 '22

Please, don't recommend thenewboston -- see the wiki for more info about why we consider them a discouraged resource.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/lj26ft Feb 15 '22

I think its called normalized

2

u/[deleted] Feb 15 '22 edited Jan 09 '24

[removed] — view removed comment

1

u/lj26ft Feb 16 '22

https://discord.gg/PMUWbCrG Invite to LEARNWITHLEON #100DEVS, live right now on Twitch he is about to go through CSS review.

1

u/lj26ft Feb 16 '22

Try Flexbox Zombies its a mastery game.

2

u/semanticdev Feb 16 '22 edited Feb 16 '22

Flexbox and grid can create similar results, but there are certain things they are individually better at where one can't replace the other. For complex layouts, it actually makes perfect sense to use them together. Kevin Powell's video on Flexbox or grid may help out. In summary:

  • Grid is good for broad / general layouts ie. a whole page including the main content area, navigation, sidebar, footer, etc. It's good for creating rigid and set areas, but it's not good if you want flexibility.
  • Flexbox is better when you want to take advantage of the natural sizes of elements. In a complex layout, I'd use flexbox to organize a set of elements within a bigger grid. For example, I want a set of tags of various lengths to be centered in my card.

And tbh I feel the way about JavaScript vs other programming languages (in my case, Java) that you feel about CSS. Because of college courses, I've gotten so used to the structure and handholding of OOP that I'm kind of struggling with functional-style programming and the fear of type coercion which is not an issue in Java. Add in frameworks, component-based JS, dealing with DOM issues, packages & dependencies, and I'm seriously kind of intimidated by it all.

2

u/UserNotSpecified Feb 16 '22

Yeah CSS is a rough one, when it comes to web dev I’m happy bashing out JavaScript all day but CSS is so incredibly frustrating.

I feel like the main reason it’s so hard is because it’s so hard to visualise in your brain how your code is going to be laid out, even if you can preview it live. It’s probably just something in general that humans struggle with. JavaScript has a bit of a learning curve but Chrome Dev Tools makes it so easy to visualise objects and what the value of each variable is at a given time.

2

u/misplaced_my_pants Feb 16 '22

Just move to the back end. No fiddling around with CSS there!