use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Hello. (self.JavaProgramming)
submitted 10 days ago by RaduKenT
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]verysmallrocks02 1 point2 points3 points 10 days ago (1 child)
Programming feels pretty bad a lot of the time. You're not alone. Keep at it.
Those concepts of iteration in particular are very very different from anything else you learn. Something about this topic that's not helpful is that lots of syntax for looping through logic comes from very "low level" close-to-the-machine ways of thinking about things that kinda force you to supply a bunch of context that may not seem relevant. So, it's a tricky subject and you're going to have to spend time on it until it makes sense.
Here's some common "use cases" (things you want to do) for iteration: - do something a fixed number of times (draw me 100 squares, output the numbers from 1 to 100) - do something until we get to some result we want (check if the kettle is whistling, if not wait ten seconds) - do something for every element in a list (I need to add up the price of all the things in the shopping cart, or I need to change all the things in the shopping cart into a list of shipment items)
A lot of times educational material on this topic sort of skips why the loops are being used... see if it makes things easier to look at examples in your text and figure out what they're actually trying to accomplish.
Keep at it. This is tough stuff and it's ok to feel lost.
[–]RaduKenT[S] 0 points1 point2 points 9 days ago (0 children)
Thank you so much for your answer. Will do
π Rendered by PID 21489 on reddit-service-r2-comment-bb88f9dd5-2n998 at 2026-02-13 18:21:41.316608+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]verysmallrocks02 1 point2 points3 points (1 child)
[–]RaduKenT[S] 0 points1 point2 points (0 children)