Newbie tryna learn help with Console app
Hey im learning and need some assistance with this little detail would do good for me
30 Replies
Just ask
i would like the text on the Console app text to apppear character by character
letter by letter
heres the base im working off
basically need the "testing testing testing" to appear letter by letter
A loop would, no doubt, be useful here
And make use of the fact that a string is really just an array of characters
im learning as i start a project could you possibly give me some more insight?
Foreach over the string you want to print and print each character separately, one by one
idk how to do that im sorry
i read 2 threads on the fact and attempted to implement the suggestions into my project
didnt seem to work
$helloworld
You have a
while
loop so you know what a loop is
foreach
is another kind of a loop
And a string "hello"
is the same as an array of characters ['h', 'e', 'l', 'l', 'o']
Console.Write()
can write without adding a new line
Combine those three elementsdont get mad i got help of AI to get started with simple code
Ah, well, don't
Learn
?
If you want to learn programming, learn to write the code yourself instead of generating it with an LLM
Same principle as "if you want to learn how to draw, pick up the pencil instead of using Stable Diffusion"
The LLM will generate code, and you will have no clue what it did
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
was just tryna learn via throwing myself into somethin
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Learning by doing is great!
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
It implies "doing" tho
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
so im tryna under stand how the "for each" wirks
i dont see why this wont work
What doesn't work about it?
doesnt send letter by letter
Works for me
Try higher delay so it's more noticeable maybe?
how could i do partial millicseconds
like less then 1 ms
That delay would be imperceptible for a human
Around 200ms is the edge of human perception
idk its on 1ms and its not that fast...
myabe my pc is just slow rn
In my gif, that's the 100ms speed
Same if we do it asynchronously