Why are the installation packages under java, haskell, python, and erlangwin very large, ranging from dozens to hundreds of megabytes, while node.js is very small, only a few megabytes?

Reply content: If you use Node.js, if you don’t use npm to pull down tens or hundreds of megabytes of stuff, will it work? The python installation package seems to be only about ten MB in size. I just started using node yesterday. When I installed it, it was only 5m in size and I thought it was very lightweight. When you started writing code, didn’t you keep using npm to download various packages? For a project, at least the packages downloaded by npm are more than ten M. It is not that the node is small, but that it will download the libraries you need when there is a need. Maybe this is why so many people like it. Bundle. $ ls -lh java -rwxr-xr-x 1 root wheel 53K Dec 16 2013 java $ ls -lh python2.7 -rwxr-xr-x 1 xxx staff 8.6K Jul 3 06:37 python2.7 $ du -shc node_modules/ 30M node_modules/ 30M total

Some people say that it is not enough for programmers to know only PHP. They must know one of JAVA, PYTHON, and C++. Is this true?

Software Design Reply content: Yes, it is far from enough.Famous sayings such as academic qualifications are not important, languages ​​are connected, small companies are conducive to 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 Qiufei is qualified to say that there is a way to win without any tricks.If ordinary little shrimps take these words seriously, they will die. Worse than anyone else. People who say that all languages ​​are connected are those who are proficient in several languages. Those who say that academic qualifications are useless are mostly people with 985, 211 or people who have already survived. To say that small companies are good for development, he may have retired from a front-line company after success. Without 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 leader of hundreds of schools of thought, you will find that, oh, it turns out that the languages ​​​​are connected. At this moment, it makes sense. First…

I saw someone saying that PHP is a rubbish language and suggested learning Node.js, Python, and Java. What do you think?

I am a newbie to PHP. I bought the Java manual and haven’t started reading it yet. This statement makes me very irritated and I really want to know the specific situation. Reply content: “Father, forgive them for they don’t know what they’re doing(saying) … ” – Jesus If you learn from you, does it have anything to do with others? Read a book, kid This statement is pure nonsense. No need to worry. 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. The web framework will start a web server written in the corresponding language. You can control all the behaviors of this server. PHP is different. It is actually a web framework itself. It will run on an existing web server. Before officially running your script, it will do a lot of things for you (such as processing get and post parameters, etc. ) For novices, you actually don’t need to know so many details. You put a php file in the folder. When you access the URL corresponding to this file, php will automatically run this for you. php script. So you save yourself…

Is it still reliable to use Java for new Internet websites? Comparing Php, Python, and Ruby

When preparing to build an Internet site, Asp and Jsp were common methods in the past. But nowadays, in order to iterate quickly, Php, Python and Ruby are often used. However, our main programmer is a Java programmer and does not have much contact with these three dynamic languages. So, is it still reliable to use Java for Internet development? ? Reply content: If the main programmer has a background in Java, let him use Java, because even if you force him to write Python, the code he writes will still be the same as Java. In the early stage of technology selection, people are selected, not technology. “Those who are good at using Java, Php, Python, and Ruby are no problem.”Let a Java web programmer write the Tornado program? Those who are good at using Java, Php, Python, and Ruby are no exception. If it’s just for quick iteration, it doesn’t hurt to use Php, Python, or Ruby. But if you have other needs in the future, such as performance, expansion, readability, and reliability, you will eventually have to switch to Java. In addition, jsp is no longer too common, and Java can also be updated quickly.

Door No. 1 – Programmer’s work, programmer’s life (java, python, delphi practical)

Door No. 1 – Programmer’s work, programmer’s life (java, python, delphi practical)

Collection of a relatively good-looking and beautiful mobile website template [email protected](y Published on 2015-01-07 07:41:06 Develop mobile browser using responsive layout There are more and more websites. There are many applications that have already done this. Today I finally found a template that looks good and can be used on the Internet, and it is very clean. A relatively good-looking and elegant mobile website template in my collection [email protected](y Published on 2015-01-07 07:41:06 More and more websites are developed for mobile browsing using responsive layout. There are many applications that already do this. Today I finally found a template that looks good and usable on the Internet, and it is very clean, JS Basically, we only use jquery, not jquery mobile, don’t get me wrong. Other js The framework is basically useless, so this is the best thing for developers. They can use clean templates directly. Not much to say, just look at the picture and see the effect. Personally, I think this template is still very valuable for those in need…Read more Solution to encoding error when calling SVN command in python [email protected](y Published on 2015-01-05 11:52:47 Try to use python to write a deployment tool in the project.…

How to clean up temporary system files in batches (language: C#, C/C++, php, python, java)_php example

How to clean up temporary system files in batches (language: C#, C/C++, php, python, java)_php example

The language debate has been going on for a long time. Let’s do some IO experiments (traverse more than 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 number of lines of code: 43 lines Time taken: 7 seconds Code: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespaceBatchDelete { 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 loop to delete 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(“This directory does not exist!”); } // Timer ends Console.WriteLine(“End time:” + DateTime.Now.ToString(“HH:mm:ss”)); Console.ReadKey(); } } } Operation renderings: 2. Language: C/C++ Development environment: vs 2013 Total number of lines of code: 50 lines Time taken: 36 seconds Code: #include #include #include #include #include #include #include using namespace std; int main(int argc, char * argv[]) { //Input…

Comparison of Perl, PHP, Python, Java and Ruby [Reprinted + Organized]

Comparison of Perl, PHP, Python, Java and Ruby [Reprinted + Organized]

From the content of this article, it was written relatively early, and I think some terms are not accurate and are a bit colloquial, but the meaning is there. Question: What are the characteristics of Perl, Python, Ruby, and PHP? Why are dynamic languages ​​mostly used as lightweight solutions? Why is LAMP popular? Why is Ruby on Rails popular? Development trends of programming languages From the content of this article, it was written relatively early, and I think some of the terms are not accurate and are a bit colloquial, but the meaning is there. Question: What are the characteristics of Perl, Python, Ruby and PHP? Why are dynamic languages ​​mostly used as lightweight solutions? Why is LAMP popular? Why is Ruby on Rails popular? What is the development trend of programming languages?   “There are four dynamic languages ​​left, which we classify as background scripting languages.” The colon said and drew Chart—— Listen carefully to the quotation marks and say: “I remember you previously divided these languages ​​into C family static languages, There are three categories: non-C family static languages ​​and dynamic languages.” Colon explained: “That was divided based on grammar, focusing on theory; now it is divided on…

python, Java, JavaScript implement indexOf

Introduction When I was working on a project recently, I found that indexOf appeared very frequently in both the front-end and the back-end. Today we will take a look at its implementation principle! The meaning of indexOf: given a string to match the subscript of another string, if it matches, return the subscript, if not, return -1. In fact, the principle is relatively simple, if you need to implement it , so what should be done? Principle Now given the matching string A and the original string B, for example, the matching string A is equal to “calling practice” and the original string B is equal to “calling and practicing, I like to call practice”, you may find it at a glance “Miao Lian” is the last two characters. We use B as a loop to match words one by one. We first look for “Miao”, find the counter and add 1, and then continue to look for “Lian”. We find that the next character is not “Lian”, and the counter Clear it and start the search again from “call”. Now we have found the penultimate character of B. The next character is “Lian”. The calculator adds 1. At this…

Golang, python, php, c++, c, java, Nodejs performance comparison

When I was working in PHP/C++/Go/Py, I suddenly had the idea to make a simple comparison of the performance of the recent mainstream programming languages. As for how to compare, I still had to use the magical Fibonacci algorithm. Maybe it’s more commonly used or fun. Okay, talk is cheap, show me your code! Open your Mac, click on Clion and start coding! 1. Why is Go the first one? Because I am using it personally recently and it feels very good. package main import “fmt” func main(){ fmt.Println(fibonacci(34)) } func fibonacci(i int) int{ if(i<2){ return i; } return fibonacci(i-2) + fibonacci(i-1); } Let’s take a look with Go1.7 first: The code is as follows: qiangjian@localhost:/works/learnCPP$ go version && time go build fib.go && time ./fib go version go1.7.5 darwin/amd64 real 0m0.206s user 0m0.165s sys 0m0.059s real 0m0.052s user 0m0.045s sys 0m0.004s Then, let’s take a look at 1.8: The code is as follows: qiangjian@localhost:/works/learnCPP$ go18 version && time go18 build fib.go && time ./fib go version go1.8 darwin/amd64 real 0m0.204s user 0m0.153s sys 0m0.062s real 0m0.051s user 0m0.045s sys 0m0.003s I can’t see the difference, but the official 1.8 has improved optimization by 20% in aspects such as GC…

How to clean up temporary system files in batches (language: C#, C/C++, php, python, java)

The language debate has been going on for a long time. Let’s do some IO experiments (traverse more than 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 number of lines of code: 43 lines Time taken: 7 seconds Code: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespaceBatchDelete { 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 loop to delete 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(“This directory does not exist!”); } // Timer ends Console.WriteLine(“End time:” + DateTime.Now.ToString(“HH:mm:ss”)); Console.ReadKey(); } } } Operation renderings: 2. Language: C/C++ Development environment: vs 2013 Total number of lines of code: 50 lines Time taken: 36 seconds Code: #include #include #include #include #include #include #include using namespace std; int main(int argc, char * argv[]) { //Input…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索