r/learnprogramming • • 3d ago

Topic How to Develop interest in programming

Hello i am a bscs student 1st semester. I want to know how do i develop interest for programming cause all i do is play video games only i can't get out of this situation. When i was young i had a deep passion for learning rubiks cube so i used to spent day and night learning and solving it and i learnt it. How do i develop that kind of passion and obssession with this programming??

Thank you for your answer.

23 Upvotes

38 comments sorted by

View all comments

1

u/Salamanticormorant 3d ago

Producing results that can be seen does the trick for some people.

For examples, shading each pixel in an image based on:

  1. The number of iterations it takes for the logistic map, starting with the pixel’s X and Y coordinate (scaled into an appropriate range), to generate a value close to a value already generated at that pixel. Two definitions of “close to”:
    https://i.imgur.com/XlZVW0W.png
    https://i.imgur.com/IW4dtoy.png
  2. The number of iterations it takes for a modified Kaprekar’s routine to complete, starting with the pixel’s X coordinate and also adding its Y coordinate as part of each step. This image, which turned out more interesting than others, performs the routine in base 22 and, if I recall correctly, does not start at 0,0: https://i.imgur.com/l2fxiqv.jpg
  3. A correspondence between hue, saturation, and value (HSV color model) and the number of 0s, 1s, and 2s in the base-3 digits of the xor of the pixel’s X and Y coordinate: https://i.imgur.com/cikJBei.png
  4. A correspondence between red, green, and blue (RGB color model) and the number of a specific type of matches among the base-3 digits of its X and Y coordinate. The matching is inspired by nucleotides and treating each pair of coordinates like a pair of chromosomes, but it wound up looking more interesting with 3 nucleotides and non-transitive matching: https://i.imgur.com/e5OLtMZ.png
  5. The number of iterations it takes for the following sequence to begin repeating, starting with the pixel’s X and Y coordinate as n1 and n2: n3 = (n1 * n2) modulo 25, n4 = (n2 * n3) modulo 25, and n5 = (n3 * n4) modulo 25, etc. This is a zoom of the 25x25 pixel repeating pattern, plus an extra row and column for symmetry: https://i.imgur.com/qOWG6ry.png

2

u/Positive_Passion4817 3d ago

You think they are going to have any clue what you're talking about?

2

u/NoMolasses9031 2d ago

Yeah I was like... WHAT?? 😭😭