Everything you can do in one programming language you can do in other right?
Let's take an example of Python which is very powerful language and you can do a lot of stuff in it like making backend programs,make useful tools,make tools for hacking(i don't know should i use this h-word cause everytime i mention it on SoloLearn i get downvotes and no replys lol :D i understand they are two diffrent things but they are still so alike..but it doesn't matter)If i can make a powerful app in Python can i do it in any other language knowing the fact Python is easier?Maybe in C++ or Java etc?
Something which can be done using a general-purpose programming language can mostly be done using another general-purpose programming language. However, speed, efficiency and line count may differ, for the better or worse. 🍪
Programming language is just the tool, like a hammer. But to hammer a nail you can use ax or something else.
Another reasonable way: one tool suites for special task better than another.You can even hammer a nail with a chair! But it will be a bit strange and not logical😀😀😀
In my own opinion understanding of this fact comes with experience☺ and not only in programming science.
Since no one addressed the 'hacking' part of your question, I'll give it a shot : 🚫
The reason you get downvotes and no replies when you ask about hacking is:
•People are usually fed up of seeing beginners ask that question.
•SoloLearn is a programming platform. Not hacking, although...
~Hacking -in some ways- is very similar to programming. Since you're here, focus on learning how to program. It'll help you even if you decide to become a hacker.
°If you want to hack & modify games you'd have to be good at OOP languages & have a lot of practice in -
Java ( for Android )
Objective-C & Swift ( for IOS )
C# & C++ ( multi platform )
& probably others I'm not aware of...
Although, if you simply want to cause mischief, you'd be surprised at what a simple text editor and a laptop can do 😉
Hope this helps.
Good luck with your hacking, try not to get into trouble with it ⛔. May the force be with you ✌
Yes, I believe it is possible. All programming languages have 1 thing in common: they all solve problems. What makes them different is how they approach the problem, how they go breaking down and organizing work in different ways, with different strengths & weaknesses as a result. They can implement any project but some of them are designed to make it more convenient to implement -certain- projects.
There are things that some languages cannot do, it's true, but most of the time you can solve it with "interoperability" aka "interop", this means, combining different languages.
You see, .NET, languages are compiled into IL as part of the CLI, therefore, .NET language can "interop" (call methods defined by) modules defined in any other .NET language. For instance, Python and Java cannot manipulate computer hardware (because they run in a VM) whereas C can. So, you can "interop" if you want to manipulate the hardware from Python by writing an extension to the Python VM, usually in C or C++ ☺
if I want to validate my form, I cannot use C++
if I want to work with the server, I cannot use cobol.
if I want to make an operating system,
No language, no matter how good, fits all
C++ uses pointers, can python do the same?
Pointers are directly supported without restrictions in languages such as PL/I, C,C++, Pascal, and implicitly in most assembly languages. They are primarily used for constructing references, which in turn are fundamental to constructing nearly all data structures, as well as in passing data between different parts of a program.
python lists as Baptiste suggested are equivalent to pointers!
In my knowledge, Yes you can. But every programming language has different approach towards data structures and processing etc, Java & C++ consumes more ram to run an app, where as C# & Python consumes very less and runs well on low end devices. (C# with asp.net, most powerful programming language on earth).
@Jovan the word you want is Turing Complete. Everything that can be expressed through a Turing Complete programming language can be expressed to the same effect in another Turing Complete programming language.
I've read many times that C++ STL is Turing Complete. That is, STL alone can be used to translate programs from say, C, Python or C# into C++.
Now think this: there was C, and then they thought some concept. And made C++. and they made java to improve or ease the use of C++ with few extra features. and then scripting languages like python, matlab, R, etc., are also developed from basic low level languages. so any language is derived from something with few toppings. but base is something available, and that could be topped by something. when pull out every topping, what do you get, way back to assembly language and machine language, ... they used fortran, cobol, basic and are still being used. but why were they topped? because application specific needed. like platform independent C++ gives Java with fits own features. Scripters like python with inbuilt libraries by C. so, answer is yes, YOU CAN. but if you could, then, you can really create one new language in your idea...
EDIT: example, driver program have to interact with hardware,so low level language. but if you want to do with high level like java, create own package or library in C and use it. simple, transform things for your ease. Another example, if you want libraries for C, as in python, create one and use it. but, the usage constraints are based on C and that is the reason new languages where made. You want to group all possible power for specific application( I/O , memory management, web apps, etc.,) and make one new language with own syntax and in built processing and handle with your own rules like how you want to have it.
Hey Jovan! Yes, that's true at least in theory. One of the first people that invented a computer, Alan Turing, the "Turing bombe" designed to break codes showed that with 6 simple primitives anything that can be described in a mechanical process could be programmed using only those 6 primitives.
The most important consequence of this statement is that anything you can do in one programming language, you can do in another programming language. So in the end it is true that some programming languages are better at doing certain kind of things but there's nothing you can do for example in C that you can't do in Fortran.
It's called "Turing compatibility" !
Everything is possible BUT NOT EVERYTHING WILL BE BENEFICIAL IF someone tries to do that. NOT ALL WILL FUNCTION THE SAME WAY and would probably take long time to do it! Different language, different functionalities !😄
@Leigh thank you,it's true no one explained that part although i didn't ask for explanation but still better to know than don't 😊 i am interested in hacking just because you can do almost everything about computers,you go deep to find midtake and learn about their structure,you have to know code so you can break down the code and do a lot of stuff(although i am not interested in illegal hacking i don't want to ruin anyone privace or do something bad in anyway) but that doesn't matter...we are on app designed to learn people how to code...i understand that...Btw thank you all for replys and upvotes(and downvotes if they're are any 😀 ) i never imagined this question would get this many upvotes replys and become so trending 😎 Lately i've started to think a lot more about what code i can write and that is progress for me cause i actually use that knowledge in practicular way i love this community and app 😉
I dont think two different language can make same application .. because both languages have different authorities. you can't use java to make drivers. you cant use c and c++ for making android app.. cause java can't communicate with system hardware without c language..but if u do native programming you can easily communicate with hardware and make an app .. so dont compare languages each have their own value