Topic: also coding
+Anonymous A — 4.4 years ago #61,383
uh... i wanna know some prgramming skil thst is flexible enough for me to code in any language : at least being able to code a program from scrstch/notepad/vscode
building an app and all its features like gameplay andsystem and network(and its LAN or which server to connect)
what skill do i need? i understand this is a very wide question when my goal is "build an app" "with anything and everything" but i guess i just have to ask what is. or is that possible
or maybe suggest me the better way to make living from coding that involves "build an app with any language"
maybe like say a modern 3d minesweeper game with multiplayer and server, and cross platform with browser and android and console and pc.... what do i need to read/understand to do all those myself
+Anonymous B — 4.4 years ago, 3 hours later[T] [B] #623,672
you are a piece of shit!!
+Anonymous C — 4.4 years ago, 2 hours later, 6 hours after the original post[T] [B] #623,679
I answered this question a few weeks ago. Learn Java or Python. Invest 200 hours or so.
There's no programming language which allows you to type in a few parameters and suddenly you have an network gaming app. Just like there's no machine where you set a few settings and you have a piece of furniture.
(Edited 28 seconds later.)
+Kimble !sL3PpE2pfQ — 4.4 years ago, 36 minutes later, 6 hours after the original post[T] [B] #623,683
@previous (C)
You're an idiot.
·Anonymous A (OP) — 4.4 years ago, 3 hours later, 10 hours after the original post[T] [B] #623,699
@623,679 (C) uh, as i asked. it s about knowing several programming language at once. knowing core conceptd that encompasses several models... but in general about building the same kind of system... i think you got my question wrong.
+Anonymous E — 4.4 years ago, 4 hours later, 14 hours after the original post[T] [B] #623,710
Just read books on networking etc. Networking is a complex topic, other topics are just as complex.
+Anonymous F — 4.4 years ago, 2 hours later, 16 hours after the original post[T] [B] #623,711
@previous (E) Hmmm, any good suggestion? your opinion is appreciated. maybe any open source app (like DO*M) and its source code... like maybe tell me which line exactly deals with networking and what they each do? thanks alot.
+Anonymous G — 4.4 years ago, 51 minutes later, 17 hours after the original post[T] [B] #623,713
@previous (F)
> (like DO*M) and its source code... like maybe tell me which line exactly deals with networking and what they each do?
Do you know how many thousands of lines of code that is? Are you insane? Why the fuck would anybody sit here wasting their time explaining how the source code to doom works to somebody who can't be bothered to open a book and first learn the basics? It would take months even if you did have a rudimentary grasp of programming.
·Anonymous A (OP) — 4.4 years ago, 2 hours later, 19 hours after the original post[T] [B] #623,714
@previous (G) UHHH idk, wasnt do*m TYPED PROGRAMMING SO ANYONE... wait, here goes.
number one, i mean i can ctrl+f the thing and maybe guess but i am not gonna be completely sure which one does one. at least carmack or fellow fans will know which code actually does what, or at least which files right? you are not gonna be dealing with thousand of lines to talk to me, just which FILES FIRST.
number two, wasnt this kind of program hand typed back then? or wysiwyg? you d at least know which files does what IF you at least know about the structure.
three, if you know the basic AKA the book or any book, technically you d know which part of the code actually does that right? i havent got thar far on any book that actually know doom source code line by line so i figured this is simpler to ask since the source is out here??
this question is supposed to be simpler in my mind, so please just... idk, get straight to the point in the simplest way you know really.
·Anonymous G — 4.4 years ago, 6 hours later, 1 day after the original post[T] [B] #623,741
@previous (A)
Yes, the Doom source code was typed, which means the programmer pressed buttons on their keyboard and made C code appear in their editor (as opposed to, I don't know, pointing & clicking?)
I would start with the file that contains the main function (which if I recall is in a file called i_main.c) since that is the entry point of the program.
I highly recommend reading The C Programming Language by Kernighan & Ritchie to get you started.
+Anonymous H — 4.4 years ago, 6 hours later, 1 day after the original post[T] [B] #623,756
@previous (G) yes, i dont know how else to say that. i thought using a finished program would be a more direct way to talk about...
ok, i might just get that book since i found it online... but couldnt you just summarize the stuff fromnthe github? the book i buy seems to include alot of things i have known and i might, just might, still not the relevant subject from the book...
naturally this source code and external knowledge like yours would help this endeavour.... basically just guessing out..
·Anonymous G — 4.4 years ago, 6 hours later, 1 day after the original post[T] [B] #623,781
@previous (H)
> but couldnt you just summarize the stuff fromnthe github?
I could, but again, why would I waste thousands of hours of my life doing this?
Here's the approach you need to take. As I said, start with i_main.c and look at the main() function:
int
main
( int argc,
char** argv )
{
myargc = argc;
myargv = argv;
D_DoomMain ();
return 0;
}
Going through line by line, ask yourself wtf is int (answer: a declaration of the function's return type. In this case the function returns an integer value), wtf is main (the main function which all C programs must implement, also the entry point of the program) and so on. If you don't know an answer, look it up online and in the C Programming book.
Also look at the comments for help, e.g. it says:
// DESCRIPTION:
// Main program, simply calls D_DoomMain high level loop.
which, sure enough, happens on line 42. The next files you would then naturally look at would be d_main.h and d_main.c... and so you proceed down the rabbit hole.
If this doesn't keep you busy for a few months and if you haven't learnt anything at the end of it, then you're not trying hard enough.
·Anonymous H — 4.4 years ago, 2 hours later, 1 day after the original post[T] [B] #623,782
@previous (G) lol wut dud i said just summarize it yes you are doing good. not short enough tho. ok now i have to read this long ass bullshit no wait this is not the network do you not at least know man
if it were me i d ctrl+f something that says ping or network socket man you really need to be smarter than me to answer this than some basic first grader books or int (i know int and var and char and those things ok) orz
·Anonymous C — 4.4 years ago, 2 hours later, 1 day after the original post[T] [B] #623,799
Please don't suggest that he uses C. That's really old. There's easier languages to learn.
·Anonymous H — 4.4 years ago, 9 minutes later, 1 day after the original post[T] [B] #623,800
@previous (C) it's alright. but it ll help this thrrad more if you can just pinpoint the exact network parts of the program and how it decides communications between computers... i suppose that s the right question.
+Anonymous I — 4.4 years ago, 3 hours later, 2 days after the original post[T] [B] #623,802
@623,799 (C)
> C says "don't tell him to learn C"
are you a turkey?
·Anonymous G — 4.4 years ago, 3 hours later, 2 days after the original post[T] [B] #623,807
@623,799 (C)
> Please don't suggest that he uses C.
Sigh. He was asking about the source code for Doom... which is written in C.
> That's really old
Really? That's a good solid reason not to learn a programming language? Because it's old.
> There's easier languages to learn.
> There's ...... languages
> There is ..... languages
Yeah, like English maybe?
·Anonymous H — 4.4 years ago, 6 hours later, 2 days after the original post[T] [B] #623,817
@previous (G)
what a waste of my time
·Anonymous I — 4.4 years ago, 1 hour later, 2 days after the original post[T] [B] #623,819
@623,807 (G)
English is far too advanced for a turkey.
·Anonymous H — 4.4 years ago, 48 minutes later, 2 days after the original post[T] [B] #623,820
@previous (I)
can you program JUST with english????
·Anonymous I — 4.4 years ago, 13 hours later, 3 days after the original post[T] [B] #623,836
@previous (H)
yes, it's called psi-ops
·Anonymous H — 4.4 years ago, 19 hours later, 3 days after the original post[T] [B] #623,857
·Anonymous I — 4.4 years ago, 4 hours later, 4 days after the original post[T] [B] #623,875
·Anonymous H — 4.4 years ago, 20 hours later, 4 days after the original post[T] [B] #623,935
@previous (I)
i guess that s a no.
·Anonymous I — 4.4 years ago, 2 hours later, 5 days after the original post[T] [B] #623,944
@previous (H)
stop gaslighting me
·there s chance i might forget but — 4.4 years ago, 7 hours later, 5 days after the original post[T] [B] #623,961
@previous (I) i dont even have money for gas...
Start a new topic to continue this conversation.
Or browse the latest topics.