Regarding the web, which one among Java, PHP, Python, and .NET has the best future development prospects?
Reply content: If you choose Java or C# in moderation, you should never die of hunger. If you want to do something else, use python and ruby. Startups generally use them. It’s not that Java and C# are not good, or that the languages are good or bad, it’s just whether they are suitable or not. There is a huge demand for Java and C# developers in China, and even if they are not writing for the web, they can write for other things. The so-called development, I think, has two points:1. The depth of language and related technologies. 2. Market share. For PHP, it lies in development efficiency. You can quickly implement a website using it, but when your website needs powerful services in the background (such as large e-commerce systems, searches, etc.), PHP cannot satisfy you. , so you see that companies that use PHP will basically recruit engineers in other languages (such as Baidu). It is impossible to implement an entire complex system simply using PHP. For Java, although it cannot keep up with PHP in terms of web development efficiency, it has many enterprise-level frameworks and platforms. Some companies often no longer want to recruit specialized…
Which of these languages (PHP, Shell, Perl, Python, C, C++) is easier for people with poor foundation to learn? -php tutorial
The subject has some Linux basics. Reply content: Python / CThe order of the topic is actually very exciting. From left to right: Chaotic Good – Absolute Neutral – Lawful Evil life is short, you need python The questioner defined a modest premise at the beginning of the question: “people with poor foundation”, so I will make some suggestions from a practical perspective. Learning is for use, It is so that you can use some code snippets you wrote to solve your own problems, so first you should clearly define what you are learning (php/shell/perl/python/c/c++) for? With a clear purpose, Only in this way can you find a tool that suits your hand. Don’t worry about the quality of the tool or the quality of the language.Being usable is the most basic thing, being easy to use is more demanding, and using it well is self-improvement. Python:If the subject is in a scientific research and education institution such as a research institute or school, Python is almost mandatory, unless you are in the mode of getting credits by memorizing notes. , otherwise as long as you want to realize some ideas by yourself, Python is almost the inevitable choice for…
(Transfer) Using Thrift0.9.1 to implement cross-language calls to Golang, Php, Python, and Java
Question introduction: What is Thrift? Where is the official website of Thrift? How to implement cross-language calls between Golang, Java, Python, and PHP through Thrift? 1. What is Thrift Thrift is a scalable cross-language service development software framework. It combines a powerful software stack with a code generation engine to build services. Thrift is fac Question introduction:What is Thrift?Where is the official website of Thrift? How to implement cross-language calls between Golang, Java, Python, and PHP through Thrift? 1. What is ThriftThrift is a scalable cross-language service development software framework. It combines a powerful software stack with a code generation engine to build services. Thrift was developed by Facebook. It opened source code in April 2007 and entered the Apache incubator in May 2008. Thrift was created to solve the problem of large data transmission and communication between systems in the Facebook system and the need for cross-platform features due to different language environments between systems. Therefore, thrift can support a variety of programming languages, such as: C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Javascript, Node.js, Smalltalk, and OCaml. (The current version 0.9.1 has started Supports golang language) to communicate between multiple different languages. Thrift can be…
Some people say that it is not enough for programmers to only know PHP, but they must know one of JAVA, PYTHON, and C++. Is this true?
Software design Response content: Yes, it is far from enough. Famous sayings such as education is not important, languages are interlinked, small companies are good for development, etc. are widely circulated in IT circles. These words themselves have nothing to do with right or wrong, the key lies in the person who said them,Only Dugu Qiubai is qualified to say that there are no tricks to win, and there are tricks,Ordinary Xiaoxiami, if he takes these words seriously, he will die Worse than anyone else. People who speak the same language are people who are proficient in several languages.Those who say that academic qualifications are useless are mostly 985, 211 people or people who have already survived. Whoever says that small companies are good for development may be the first-tier companies who have successfully retired. Without a certain life experience and accumulation, you are not qualified to say these words,What you have to do is to continue to accumulate and improve your knowledge and experience. Then when you are the head of a hundred schools of thought,you will find, oh, it turns out that the languages are interlinked. At this moment, it makes sense. First of all, PHP=>会 of the…
I saw someone say that PHP is a garbage language, and it is recommended to learn Node.js, Python, Java, what do you say?
I am a novice in PHP. I have not started to read the java manual after I bought it. I am very stimulated by this statement, and I really hope to know the specific situation. Reply content: “Father, forgive them for they don’t know what they’re doing(saying) … ” – Jesus Do you learn from yours and have a relationship with others? read a book, kid This is pure nonsense. Don’t worry about it. http://www.baidu.com/index.php, not much to say Getting started with php is easy, because other languages need to adjust a web framework before writing, and the web framework will start a web server written in the corresponding language, and all the behaviors of this server are under your control. php is different, it is actually a web framework itself, it will run on the existing web server, before officially running your script, it will help you do a lot of things (such as processing get, post parameters, etc. ) For beginners, in fact, you don’t need to know so many details, you put a php file in the folder, when you visit the url corresponding to this file, php will automatically run this for you php script. So…
What is the difference in the way of thinking about web development with PHP, Python, and Ruby? -php tutorial
Reply content: —Update: Add meteor react translation address— I feel that after using a powerful framework, the difference becomes very small. If you want to write original, there is no need to talk about it. For example, the difference between Laravel and Rails in PHP is not very big. I work in Laravel, but I have only been exposed to a little bit of Rail, and I have also written a little bit of Rails gadgets. After using it, it feels almost the same. It’s all that set of MVC. Python has never been used, no evaluation In fact, Meteor is recommended. The development thinking span of this product is really huge. It is no longer the traditional “you want the data and I will give it to you” (the front end asks the background for data), but a very powerful socket data transmission, and even built a MiniMongo locally! The entire development process couldn’t be more enjoyable. Personally, I feel that it has a taste of future technology. I’m currently working on a translation of the Meteor-react tutorial on the official Meteor website. AnnatarHe | AnnatarHe personal blog But I still have to declare: I am a Laravel fan!…
Is it reliable to use Java for new Internet sites? Comparing Php, Python, Ruby words
Prepare to build an Internet site. In the past, Asp and Jsp were common methods. But now, in order to iterate quickly, we often use Php, Python and Ruby, but our main project is a Java programmer, and we don’t have much contact with these three dynamic languages, so is it still reliable to use Java for Internet development? ? Reply content: If the main program is from Java, let him use Java, because even if you force him to write Python, the code he writes is still the same as Java. In the initial technology selection, people are selected, not technology. “People who are good at using Java, Php, Python, and Ruby are all easy.”Let a Java web programmer write a Tornado program? People who are good at Java, Php, Python, Ruby are not a problem. If it’s just for quick iteration, it’s okay to use Php, Python, Ruby. But if there are other requirements in the future, such as performance, expansion, readability, and reliability, you must finally switch to Java. In addition, jsp is not a very common way now, and Java can also be quickly downgraded.
node.js-Ask for the implementation of Md5withRsaphp, python, or nodejs, or explain the principle?
The client interface is implemented in java, and the md5withrsa used for verification can be understood by taking it apart, but it is confusing to put it together, please explain! ! ! ! Attached java implementation: package main; import java.security.KeyFactory; import java.security.KeyPair; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.Signature; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; import java.security.SecureRandom; public class main { /** * generate secret key */ public static void makeKey() { String KEY_ALGORITHM = “rsa”; java.security.KeyPairGenerator keygen; try { keygen = java.security.KeyPairGenerator .getInstance(KEY_ALGORITHM ); SecureRandom secrand = new SecureRandom(); secrand.setSeed(“tmriPayment”.getBytes()); // Initialize the random generator keygen.initialize(1024); KeyPair keys = keygen.genKeyPair(); RSAPublicKey pubkey = (RSAPublicKey) keys. getPublic(); RSAPrivateKey prikey = (RSAPrivateKey) keys. getPrivate(); String pubKeyStr= Base64Util.encodeBase64(pubkey.getEncoded());//Get the public key and do base64 encoding String priKeyStr= Base64Util.encodeBase64(prikey.getEncoded());//Get the private key and do base64 encoding System.out.println(“Public key: “+ pubKeyStr); System.out.println(“Private key: “+ priKeyStr); } catch (NoSuchAlgorithmException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } /** * Encryption * @return */ public static String encodeData() { try { byte[] data = “fdfdfsdfdfd”.getBytes(); String privateKey = “MIICXAIBAAKBgQDOF3dzQpPVIvHrx2qwszcv9Cw5XhCEyuRTy+HDPD684NSGGGnL”+ “34cLc1BCEjlT3v9H81SigvSUDB++YbMcZOrRFT+MAt22yi98BcRP60vgVixfTCCI”+ “lc39b6G6I6ac5BUfOKwdUKNUnCLvcojshmtGezcEYGocMziOIwXIdBXErQIDAQAB”+ “AoGANlycRovuQM9J7v6YFun/Cagnri4wv0ZhefUSpRQUHHBVvtVbuspIbe3J4tO5″+ “yXTN86Ws0n0mlJKqIObWfwvjoDADNeEWFXUI5YKyEnpnvvZwTo1JjrDy8QJpGe94″+ “yNebfGLKyZtIc/zLq9sFboyqNCtn2hu7IsG2g4SGe9BFcsUCQQDnrc6yXG6jmFC/”+ “7HFqXj5NtQc72vYbIjf32yG8W1D1j3ghZZwtUkIa8g3WMxFrYW9DFMzTDi3/mPSd”+ “1A9OG89DAkEA47oFZj6xf7gzDbHDdKX/S9ehjQjP2q6V7SYXnhdEwioxjJpj9qrP”+ “SKQg8A9m4nUl2FXJ2spxApotHoKHqTGFTwJBAIkcohGJBqmnQVL0mgK7l9/hXVCd”+ “O72/OKRlecfBu1449H2/ZvijkB/mVS4Jtyt31KM8siPOZoa4fTzS/ePaLYUCQDHj”+ “LY2hjFbzblPArpXeS5g8y8pOtOIuPu/t2Vyrskdq4OHxbJa8Ap7iPcj5RsuzaDAF”+ “UywYDzvHtLyrUbbR/2cCQGbbIWDLPtzHzI7QumtabHq9M5zUgvtXDksnOltcEDSX”+…
To regularly obtain rss information to the database, what script should I choose? Shell, PHP, Python?
Recently, I am working on an rss reader. I would like to ask, if I want to regularly obtain rss information from other websites, should I write a PHP script, a Shell script, or a Python script? why? Response content: Recently, I am working on an rss reader, and would like to ask, if I want to regularly obtain rss information from other websites, should I write a PHP script, a Shell script, or a Python script? why? Python is better. It is more stable than php and simpler than shell. Choose the one you are most familiar with. https://github.com/SSilence/selfoss There is an open source rss reader written in php, which supports multiple screens. You can study it
How to clean up temporary system files in batches (language: C#, C/C++, php, python, java)_php instance
The language dispute has been going on for a long time. Let’s do some IO experiments (traverse 9G files and delete them in batches), and try to use facts to compare who is better and who is worse. Operating system: win7 64-bit, file package size: 9.68G. 1. Language: C# Development environment: vs 2013 Total lines of code: 43 lines Time-consuming: 7 seconds Code: using System; using System.Collections.Generic; using System.IO; using System. Linq; using System. Text; using System.Threading.Tasks; namespace BatchDelete { class Program { static void Main(string[] args) { // input directory e:\tmp string path; Console.WriteLine(“Enter the directory to be cleaned:”); path = Console. ReadLine(); // start the timer Console.WriteLine(“Start timing: “+DateTime.Now.ToString(“HH:mm:ss”)); // First traverse the matching search and then delete it in a loop if (Directory. Exists(path)) { Console.Write(“Deleting”); foreach (string fileName in Directory. GetFileSystemEntries(path)) { if (File. Exists(fileName) && fileName. Contains(“cachegrind. out”)) { File. Delete(fileName); } } Console. WriteLine(“”); } else { Console.WriteLine(“The directory does not exist!”); } // timer ends Console.WriteLine(“End timing: ” + DateTime.Now.ToString(“HH:mm:ss”)); Console. ReadKey(); } } } Run effect diagram: 2. Language: C/C++ Development environment: vs 2013 Total lines of code: 50 lines Time-consuming: 36 seconds Code: #include #include #include #include #include #include #include using…