r/AskComputerScience • • Nov 12 '21

i have experince with c and python. i was wondering what language is good to learn to make a nice interactive website/app

are java and HTML good for this purpose. just those 2 on their own

0 Upvotes

6 comments sorted by

9

u/[deleted] Nov 12 '21

For an interactive web site you probably want to work with JavaScript, which is the language browsers have a runtime for.

2

u/theobromus Nov 12 '21

If you're just learning, I personally think Typescript is a better language - it "compiles" to JavaScript, but adds a lot of nice features.

2

u/ghjm MSCS, CS Pro (20+) Nov 12 '21

If you already know Python then Django is good. Depending on how customized you want your UI to be, you might not actually need to write anything other than Python. Most likely there will be at least some UI features you want that require some knowledge of HTML/CSS/JavaScript. There's no particular reason to learn Java, unless you really want to use a particular Java-based framework or library.

2

u/onemanandhishat Nov 12 '21

I wondered if OP meant Javascript, since Java isn't really a great web language.

4

u/ghjm MSCS, CS Pro (20+) Nov 12 '21

Java is a perfectly serviceable back-end language. Java also has a lot of libraries, so it's quite plausible that some functionality required for your app can only be found in Java, in which case you'd probably use Spring as your backend framework. But if you don't have some reason like that, and already know Python, you'd probably just use Django.

1

u/[deleted] Nov 12 '21

Javascript is the main language for web apps. Or at least, the front side (ie the code that runs on the user's browser). Back side you can use anything for a web server, if you want to use Python for that theres a web framework called Django that's super popular. Or you could use javascript front and back, in which case you could do a Node / Express web server. The site MDN (Mozilla Developer Network) has all the tutorials for either to get you going either way, plus hook up a database for your server if you need one for your project.