|
drgn.txt is a coding masterpiece. It's one of the few examples of like truly outsider art in programming, and I have mad respect for that dude smashing forward to his goal while knowing his code is garbage. Then he actually took advice, implemented it, and the poo poo has been greenlighted on Steam. I'd love to have half the ambition and work ethic that guy has. Every time someone makes a Kickstarter that's like, "my dream is to make games, we need money to hire a programmer" someone should link them to the White Dragon saga. It shows how if you're willing to work hard, even if you're not technically proficient, you can actually get real results. He's my god drat hero. I've written a bunch of poo poo code, but never poo poo code that was that loving ambitious and actually worked.
|
# ? Feb 25, 2015 02:08 |
|
|
# ? May 17, 2024 02:05 |
|
Dessert Rose posted:I had no idea how to store an arbitrary number of things somewhere. Like, I knew what arrays were, and I knew what objects were, I just didn't know how you made an array of dynamic size at runtime. I cut my chops in programming with TI-BASIC on the TI-83. You had about 30 easily accessible variables (A-Z, theta, etc.) and some statistical variables that were a bit more annoying to get to, 10 strings (Str0-Str9), and 6 lists of maximum size 999. Oh, also these variables were global to the whole calculator, so they stuck around when you stopped and started your program. Control flow was goto based and there were no functions. The best you could do was load information into some global variables, start execution of another program, and extract information from another global variable. It took a lot of time to unlearn all the terrible practices I picked up from programming calculators all through high school.
|
# ? Feb 25, 2015 02:59 |
|
You also had some images that you could store 6144 bits of data in.
|
# ? Feb 25, 2015 05:34 |
|
C was the first language I had learned after programming in Applesoft BASIC (with a bit of 6502 machine language). I had my "holy poo poo" moment after leaning about function pointers. These days dynamic dispatch is taught early, often in the context of C++/Java-style polymorphism or Python/Ruby-style duck typing. But at the time, such a subtlety powerful mechanism built manually from primitive function pointers was absolutely incredible, and changed the way I thought about programming entirely.
|
# ? Feb 25, 2015 06:07 |
|
Wow, it's like the bizarro-world, good version of Matthew N. Brown
|
# ? Feb 25, 2015 06:56 |
|
What was it that caused all the memory issues, in the end?
|
# ? Feb 25, 2015 07:00 |
|
ErIog posted:...and the poo poo has been greenlighted on Steam. Wait, really? What was the game called? I didn't see the name mentioned in the archive.
|
# ? Feb 25, 2015 10:02 |
|
Tasgall posted:Wait, really? What was the game called? I didn't see the name mentioned in the archive.
|
# ? Feb 25, 2015 10:34 |
|
Bognar posted:I cut my chops in programming with TI-BASIC on the TI-83. You had about 30 easily accessible variables (A-Z, theta, etc.) and some statistical variables that were a bit more annoying to get to, 10 strings (Str0-Str9), and 6 lists of maximum size 999. Oh, also these variables were global to the whole calculator, so they stuck around when you stopped and started your program. Control flow was goto based and there were no functions. The best you could do was load information into some global variables, start execution of another program, and extract information from another global variable. It took a lot of time to unlearn all the terrible practices I picked up from programming calculators all through high school. During Calc-1 in high school I wrote a dragon-warrior style RPG that was so large it filled the entire space of the TI-83+'s memory for basic programs.
|
# ? Feb 25, 2015 11:41 |
|
Pollyanna posted:What was it that caused all the memory issues, in the end? It was the re-loading of all of his textures and sprites every frame.
|
# ? Feb 25, 2015 13:36 |
|
My first programming foray was the Linux kernel version 2.6.32-17. My boss at the time hires me to teach my friend Linux and get a project up and running. 3 years later I was programming low level kernel board startup code. My former boss is a old school c programmer that taught me object oriented C programming.
|
# ? Feb 25, 2015 14:17 |
|
Bruegels Fuckbooks posted:During Calc-1 in high school I wrote a dragon-warrior style RPG that was so large it filled the entire space of the TI-83+'s memory for basic programs. Are you me? A friend and I did something very similar in high school. Different maps, random encounters, spells, etc. We ended up learning z80 assembly and writing a lot of the heavy processing things in that (like drawing to the screen), as well as using it for accessing archived memory so all you needed to run the game was a small loader program.
|
# ? Feb 25, 2015 14:56 |
|
Suspicious Dish posted:Wow, it's like the bizarro-world, good version of Matthew N. Brown Check out my new Steam Greenlight game "Freaky Bwalls 2: Electric Switcheroo"
|
# ? Feb 25, 2015 16:28 |
|
So, how do you generate a neverending stream of as in unix? Well, I just came across this solution.code:
|
# ? Feb 26, 2015 19:42 |
|
I heard urandom is pretty shoddy quality and should be avoided.code:
|
# ? Feb 26, 2015 20:28 |
|
yes has my favourite man page summary ever.
|
# ? Feb 26, 2015 20:28 |
|
Sebbe posted:So, how do you generate a neverending stream of as in unix? Well, I just came across this solution. Seems technically correct to me.
|
# ? Feb 26, 2015 20:28 |
|
pokeyman posted:yes has my favourite man page summary ever. Its --help option is almost offensively unhelpful however. It does produce a lot of help, but ain't nobody got time for reading all that. Karate Bastard fucked around with this message at 08:28 on Feb 27, 2015 |
# ? Feb 26, 2015 20:31 |
pokeyman posted:yes has my favourite man page summary ever. For those of you using linux instead of BSD, here it is.
|
|
# ? Feb 26, 2015 23:01 |
|
VikingofRock posted:For those of you using linux instead of BSD, here it is. Another blow for coreutils.
|
# ? Feb 26, 2015 23:07 |
|
Sebbe posted:So, how do you generate a neverending stream of as in unix? Well, I just came across this solution. clearly the better solution is code:
|
# ? Feb 27, 2015 04:08 |
|
I don't know if I'm the horror, or my co-worker is the horror. He made a string in .NET called title. Turns out that title is also a reserved term, for the HTML title of the page. So I was messing with his title, but when it's undefined as a variable it actually ends up being the page Title tag.
|
# ? Feb 27, 2015 09:27 |
|
Karate Bastard posted:Its --help option is almost offensively unhelpful however. It does produce a lot of help, but ain't nobody got time for reading all that. Please enjoy your Friday knowing that I opened up a terminal to find out what yes --help printed
|
# ? Feb 27, 2015 17:51 |
|
code:
|
# ? Feb 27, 2015 18:08 |
|
KaneTW posted:
The GNU version is helpful rather than amusing.
|
# ? Feb 27, 2015 22:00 |
|
Reading further into the textbook I was posting about earlier, it definitely presents the material in a really digestible way if you can ignore all the nerdy writing style. However, this section header is certainly a horror in a different way: Operating Systems: Three Easy Pieces posted:The Final Producer/Consumer Solution
|
# ? Mar 2, 2015 18:09 |
|
KaneTW posted:
code:
|
# ? Mar 2, 2015 18:24 |
|
Nice 2,500 line file with ~25 comments. My favorite part: code:
|
# ? Mar 3, 2015 00:45 |
|
Master_Odin posted:Same file has a couple "// comment line!" comments too. //TODO: Comment this line
|
# ? Mar 3, 2015 01:10 |
|
I do the //* //*/ thing all the time when I'm prototyping stuff. Not sure what the issue is.
|
# ? Mar 3, 2015 01:11 |
|
Pavlov posted:when I'm prototyping stuff There's supposedly a giant brick wall between that and what's checked-in and visible to others? Idk, I've never seen one myself.
|
# ? Mar 3, 2015 01:12 |
|
Che Delilas posted://TODO: Comment this line // TODO: Autogenerated stub. With implementation right under it...
|
# ? Mar 3, 2015 05:30 |
|
tyrelhill posted:// TODO: Autogenerated stub. // 1997-11-14: // CHANGE ASAP
|
# ? Mar 3, 2015 05:31 |
|
// TODO delete thisscala posted:/**** This implementation to merge parents was checked in in commented-out The comment was committed three years ago.
|
# ? Mar 3, 2015 12:04 |
|
carry on then posted:// 1997-11-14: Found another one. code:
--> True ErIog fucked around with this message at 13:20 on Mar 3, 2015 |
# ? Mar 3, 2015 13:17 |
Recently I found out visual studio automatically adds // HACK to your Task list.
|
|
# ? Mar 3, 2015 14:40 |
|
code:
Maybe I should suggest doing some static code analysis...
|
# ? Mar 3, 2015 15:41 |
|
carry on then posted:// 1997-11-14: I've found very old code with //BUG BUG BUG scattered throughout
|
# ? Mar 3, 2015 15:56 |
|
At the top of an uncommented cmake file which defines macros for generating a bunch of cpp files from a directory of xml inputscode:
|
# ? Mar 3, 2015 16:21 |
|
|
# ? May 17, 2024 02:05 |
|
don't remove it because then your name is last on the commit log and you're the sucker who has to fix it when it breaks
|
# ? Mar 3, 2015 16:27 |