Ask coding questions

← Back to all posts
What is Your Programming Lanugage? :)
yasin213 (15)

Hi Everyone,
First Post here and I am Glad to ask everyone what their Favorite programming language is!

Happy Coding,
Yasin213

Comments
hotnewtop
DynamicSquid (4897)

@Highwayman Wait, I'm confused, what just happened?

Highwayman (1483)

@DynamicSquid what, is my logic not sound enough for you? Hmmm let me see....

#

->
.......

+ - +
|   |
+ - +

->

+ - + || + - +

->

+ - +

->

C+-+

->

C

Ah there we go.

[deleted]

@Highwayman What the hell. lol

Highwayman (1483)

@DynamicSquid also yw for the updates lol

xxpertHacker (935)

@LiamDonohue Where'd you get that image? Did you make it yourself?

LiamDonohue (294)

just search on google: black paint letter (your letter here) @StudentFires

xxpertHacker (935)

@LiamDonohue Is there a way to swich between letters, like from 'S' to 'F'?

LiamDonohue (294)

woops forgot you have to include the word "gif" at the end @StudentFires

xxpertHacker (935)

@LiamDonohue Did that anyways without you saying it, still wasn't finding anything.

LiamDonohue (294)

you could combine the gifs on giphy though @StudentFires

xxpertHacker (935)

@LiamDonohue That's the plan, I'll try something.

xxpertHacker (935)

@LiamDonohue What I'm finding is that it's from http://www.bbmgif.com, but their server is down.

LiamDonohue (294)

i just left clicked to download lol @StudentFires

[deleted]

Python

DynamicSquid (4897)

Here are the standings so far:

Python - 12
JS     - 6
C++    - 6
C#     - 5
WEB    - 2
Lua    - 2
Java   - 2
Batch  - 1
Rust   - 1
D      - 1

And thanks to @Highwayman for the updates :)

Highwayman (1483)

@DynamicSquid standings update:

Python - 11
C++    - 6
C#     - 5
JS     - 3
WEB    - 2
Lua    - 2
Batch  - 1
Java   - 1
Rust   - 1
Highwayman (1483)

@Highwayman standings update:

Python - 11
C++    - 6
C#     - 5
JS     - 4
WEB    - 2
Lua    - 2
Batch  - 1
Java   - 1
Rust   - 1
[deleted]

@Highwayman Might I request an update?

[deleted]

@Highwayman I had to find you're most recent post to message you, since Repl lacks a native DM system. After hours of research I finally figured out how to use default parameters in lambdas...

auto f = [](auto ...args)
{
    `datatype` myArray[] = {args...};
}; //arrays can't be type auto, so you need to know what type you want
Highwayman (1483)

@JadenGarcia Awesome! But how do you deduce the type for the array? Do you just like do decltype((args...)) or something??

[deleted]

@Highwayman For once, I didn't think of decltype, but otherwise you can't deduce, but it's better than nothing.

Highwayman (1483)

@JadenGarcia oh also...

UPDATE

Python - 12
C++    - 6
JS     - 6
C#     - 5
WEB    - 2
Lua    - 2
D      - 1
Batch  - 1
Java   - 2
Rust   - 1
Highwayman (1483)

@Highwayman update:

Python - 12
C++    - 7
JS     - 7
C#     - 5
WEB    - 2
Lua    - 2
D      - 1
Batch  - 1
Java   - 2
Rust   - 1
xolyon (346)

@DynamicSquid not a suprise , nice to see so many lua people lol

AdriaDonohue (51)

@SixBeeps C# is pretty Nice that i agree

DeaconBurgess (78)

@SixBeeps I use c# in unity but i use lua here

[deleted]

@SixBeeps # -> ++?

Kopamed (192)

@yasin213 Definitely Python. Easy to learn and use. TONS of libraries and very fast!

AtriDey (189)

Python
someone says C++
Now that's a name I haven't heard in many years...

It's inevitable, but I don't want to go back to static-typed hell.

xxpertHacker (935)

@AtriDey Welcome to 2020, you ought to come back. C++ now has templates, lambdas, and two separate types of type deduction.

Here's an example:

auto sum = [](auto ...args) // non type-safe variardic function
{
    return (... + args); // Puts a '+' sign between every argument
};

That same sum function can be called with either
sum(1,2,3), sum('1',2.3,3), or sum("abc"s,"def"s,"ghi"s) without error, while getting the expected result too.

But 'D' is still better.

JosiahKnisely (32)

The best one is Python, by far.

CaptainAnon (147)

Rust and Fortran (preferably with implicit none).

MatReiner (124)

JAVASCRIPT, then PYTHON

widgetmaster (8)

mostly javascript. javascript is cool.

AmazingMech2418 (1082)

JavaScript all the way! JavaScript is one of the only languages that can be used for backend (Node.js), frontend (through a browser), and in downloadable apps (HTA files, Electron, React Native, etc.). Also, unlike my personal second place, Python, it can be compiled into an executable as well with Node.js and pkg. Also, think about what language is allowing you to see this comment (of course, HTML displays it, but JavaScript is what loads it onto the webpage).

Highwayman (1483)

@AmazingMech2418 Hm, I’m pretty sure you can compile python to an executable, also I’m pretty sure any language can work as both backend and frontend if you get the networking right and might even work better than js; it’s too general of a statement. That’s really cool about the compiling using Node.js, how does that work?

Edit: I mean how do you do that, not how does it work lol sry if that was confusing XD

AmazingMech2418 (1082)

@Highwayman Look here for more information on using pkg in Node.js: https://www.npmjs.com/package/pkg.

[deleted]

@AmazingMech2418 You forgot one thing... templates can be made out of it too! EJS! It literally does everything, it replaces a server, a preprocessor (PHP), the web page, the template that it was made from, and the no longer existing Java applets.

[deleted]

@Highwayman Python for front-end web development... show me how, please. The closest thing that comes to front-end is run-time transpiled TypeScript. Dart could've been a front end... so sad to see that it never made it.

WebAssembly doesn't count.

AmazingMech2418 (1082)

@JadenGarcia For templates, do you mean like React? Also, I think that besides WebAssembly, there is no other way to use any language other than JS as a web frontend besides maybe ActionScript/Flash before it was depreciated.

[deleted]

@AmazingMech2418 I mean dynamically generated pages, like PHP.

CaptainAnon (147)

@JadenGarcia Why doesn't WebAssembly count?

AmazingMech2418 (1082)

@CaptainAnon Well, WebAssembly isn't the actual language, just a compilation from the language. You don't run a Python interpreter in a browser and could only either create one in WebAssembly or JavaScript (then, not a native interpreter and with reduced functionality likely) or compile the Python into WebAssembly (then, not actually just Python since Python is an interpreter language and this would just be a WebAssembly program created with Python).

CaptainAnon (147)

@AmazingMech2418 I disagree; despite the fact that Assembly Language is most commonly used by compiling another language into Assembly, assembling it and the running it, it's still used as a programing language.

WebAssembly is a turing-complete language with which you can program. Just because it is most commonly used with the help of a compiler (translating from a higher-level language, e.g. Rust, into a lower-level languagey) – exactly the same as Assembly – doesn't mean it isn't a language.

Even if I'm wrong and WebAssembly isn't a 'proper' language, the most important thing is that (a) it works and (b) you can build stuff that will run on the web in a programming language other than Javascript.

xxpertHacker (935)

@CaptainAnon Well, since Binary and assembly are both considered languages, WebAssembly must be too. It is just binary in a specific format.

AmazingMech2418 (1082)

@StudentFires Yes, WebAssembly technically is a language, but the point is that you can't program in Python on the web since the official Python interpreter is not made for the web. You can only compile it to WASM and then run the WebAssembly on the web.

CaptainAnon (147)

@AmazingMech2418 I reckon you could compile the Python interpreter to WebAssembly (it's mostly written in C) and then use it to run Python code on the web.

AmazingMech2418 (1082)

@CaptainAnon Well, I guess, but it still wouldn't be an interpreter made for the web and at least wouldn't be able to do things like access files and stuff and would likely also be unable to import libraries.

CaptainAnon (147)

@AmazingMech2418 I don't know about libraries – I suspect that would be possible. The nature of stuff run in a web browser is that it doesn't have access to a file system – though I guess a virtual file system could be configured using IndexedDB and Fuse.

AmazingMech2418 (1082)

@CaptainAnon However, a virtual file system would require changes to the interpreter, making it no longer the native Python interpreter.

xxpertHacker (935)

@AmazingMech2418
I fully defend my associate's viewpoint, what was written previously:

Python for front-end web development... show me how, please. The closest thing that comes to front-end is run-time transpiled TypeScript. Dart could've been a front end... so sad to see that it never made it.

It was implied that Python couldn't be used for front-end development. Although Brython exists, that is essentially just a transpiler.

I'm not defending that Python can be used for front-end development or front-end application, not in it's native form at least. WebAssembly is it's own language that can be written directly in "*.wat" files, thus it is not Python, but WASM.

[deleted]
ARJPEG (150)

C++ and python

MesyetiIsTaken (56)

sigh people won't like this...

Batch, to push it's limits

DynamicSquid (4897)

@MesyetiIsTaken What language is that? b..a..t..c..h?

AmazingMech2418 (1082)

@MesyetiIsTaken Hello, fellow Windows user! I'm honestly surprised that nobody put Bash or PowerShell though. And, I think I'm the only other person other than you who has seen this post and knows what Batch is.

MesyetiIsTaken (56)

@AmazingMech2418 yeah like why can't replit support batch code? -_- I'm honestly surprised that these people don't know what Batch is

AmazingMech2418 (1082)

@MesyetiIsTaken

@ECHO off
ECHO I know, right?
TIMEOUT 5

I know only the second line is really needed, but I don't want the commands to show and want to give you time to read the message.

MesyetiIsTaken (56)

@AmazingMech2418
@echo off
:loop
echo i love this language
goto loop

AmazingMech2418 (1082)

@MesyetiIsTaken

@ECHO off
TITLE Possible Feature Request
COLOR 1f
:start
ECHO What do you think about requesting Batch to be added to Repl.it? (yes/no)
SET /p a=
IF "%a%"=="yes" (
ECHO I agree!
TIMEOUT 5
) ELSE (
ECHO Are you sure? Please try again.
TIMEOUT 5
CLS
GOTO start
)
MesyetiIsTaken (56)

@AmazingMech2418 how could I request it to br added?

[deleted]

@MesyetiIsTaken Ehh, I don't use Batch anymore. I use Bash on Repl though? Also, he asked for programming languages, not shell scripting langs.

[deleted]

@AmazingMech2418 Well, make that 2. I used Batch before, haven't used it in like a year though.

[deleted]

@MesyetiIsTaken Alas, Repl uses a Linux, not a Windows.

AmazingMech2418 (1082)

@MesyetiIsTaken Probably just the "Feedback" page. I honestly don't know. You could also just ping the Repl.it CEO into this conversation.

eekboi (285)

Im personally a python main but id like to learn C# or node.js

[deleted]

python and js

[deleted]

though I don't do much js

LoneAce (221)

Python main, HTML CSS side

FlaminHotValdez (685)

I'm torn between c++ and python, most of my personal projects are in python but all my computer science classes and contests are in c++

AdriaDonohue (51)

Its between C# and HTML.

AlephZero (348)

I like Python, been experimenting with Rust lately

CaptainAnon (147)

@AlephZero What do you make of Rust?

AlephZero (348)

@CaptainAnon It's pretty great - the standard tools are really incredible as well (cargo, rustfmt, etc.)

CaptainAnon (147)

@AlephZero I like it too, except that compiling takes forever. You can also run into dependecy hell – Rust only allows one version of a native crate in a project and this can cause problems (for example you can't use the Rocket web framework with the jsonwebtoken framework without disabling Rocket's cookie features because Rocket uses a different version of ring (Rust's cryptography library, a lot of which is written in Assembly) than jsonwebtoken.

PowerCoder (740)

It's between javascript and python.