![]() |
|
[.NET] Snippet - "Type Writer" Effect in the Console - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Snippet - "Type Writer" Effect in the Console (/showthread.php?tid=2659501) Pages: Pages
1
2
|
Snippet - "Type Writer" Effect in the Console - SomeWhiteGuy - Jul 8, 2012 I couldn't remember if I posted this or not, so I tried searching and going through all the threads I posted and couldn't find anything so I decided to post it. I was going through one of my old projects and saw that it used this. Picture: [img]http://www.coding-forums.com/hf/imgs/typewriter.gif[/img] Snippet: Code Dim theString$ = "Some string."I always thought this was pretty cool. I hope y'all do too. Have fun! * - Ron. - Jul 8, 2012 This is Actually pretty cool, Thanks for showing this, :) * - Ethernal Five - Jul 8, 2012 I am interested why you choose the number 43 :) * - SomeWhiteGuy - Jul 8, 2012 (Jul 8, 2012 05:38 PM)Unusual Wrote: This is Actually pretty cool, Thanks for showing this, :) Thanks. :D (Jul 8, 2012 05:43 PM)Ethernal Five Wrote: I am interested why you choose the number 43 :) Idk honestly, lol. I just fucked around with it for a little while and decided 43 looked just about perfect for my personal preference, lmao. * - Killer1478 - Jul 8, 2012 I always enjoyed using sleeps in console applications. (Odd thing to say?) I figured there would be a more proper way but I guess it's this. Except I did it manually, but thanks for this. * - SomeWhiteGuy - Jul 8, 2012 (Jul 8, 2012 06:06 PM)Killer1478 Wrote: I always enjoyed using sleeps in console applications. (Odd thing to say?) No problem. Glad you like it. I tried thinking of a different way to do it, because like you I thought there would be a more legit way but I couldn't think of anything, lol. * - +Bourbon - Jul 8, 2012 Surprised nobody's bashed you for this, it's very unimpressive. Ah damn I hate the syntax when people use symbols to explicitly specify a type "$" for string etc, very unreadable in my opinion. Don't know if you know already but the compiler doesn't require you to explicitly define a type when you use the 'Dim' keyword. If you where to type for example, "Dim TheLights = false" and hovered your mouse over 'Dim' it'd indicate that it knows that the object was of type boolean. I'm only putting that out there because I guess your justification, or anybody else's for that matter for using these characters to define a type is that it shortens code / is easier to type when in fact you can make it shorter yet while not using what I imagine are depreciated methods. * - SomeWhiteGuy - Jul 9, 2012 (Jul 8, 2012 07:13 PM)ByteBlast Wrote: Surprised nobody's bashed you for this, it's very unimpressive. Ah damn I hate the syntax when people use symbols to explicitly specify a type "$" for string etc, very unreadable in my opinion. Don't know if you know already but the compiler doesn't require you to explicitly define a type when you use the 'Dim' keyword. If you where to type for example, "Dim TheLights = false" and hovered your mouse over 'Dim' it'd indicate that it knows that the object was of type boolean. I'm only putting that out there because I guess your justification, or anybody else's for that matter for using these characters to define a type is that it shortens code / is easier to type when in fact you can make it shorter yet while not using what I imagine are depreciated methods. I respect your opinion, but that's all it is, an opinion. Thank for your comment. * - Ethernal Five - Jul 9, 2012 (Jul 9, 2012 03:14 PM)SomeWhiteGuy Wrote: I respect your opinion, but that's all it is, an opinion. Its even less then an opinion, its an preference. * - SomeWhiteGuy - Jul 9, 2012 (Jul 9, 2012 03:23 PM)Ethernal Five Wrote: Its even less then an opinion, its an preference. That too. Couldn't think of the work atm, lol. * - Cody8295 - Jul 9, 2012 Yea. 43. What a random choice of a number. Hahaha. You should make it play a key stroking sound when it happens. * - SomeWhiteGuy - Jul 9, 2012 (Jul 9, 2012 03:52 PM)Cody8295 Wrote: Yea. 43. What a random choice of a number. Hahaha. You should make it play a key stroking sound when it happens. It is pretty fucking random. I just think that it's about perfect for the effect, lol. That would be pretty awesome, lol. * - зяяоя - Jul 9, 2012 Yeah, the compiler is smart enough to automatically assign a type to a variable, like some other languages, but that is not a good practice IMO. Nice little release you have here. * - memesbro - Jul 9, 2012 This is quite simple, but unique. Cool idea and nice share :D * - ident - Jul 9, 2012 I have seen a few members use a suffix character to define datatypes. I try to get members to avoid legacy code but this goes back way beyond Microsoft and Visual Basic. This is BASIC. I can't personally see any appeal in using a single suffix. Each to there own though :) |