Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. Javascript is bad.
  2.  
  3.  
  4.  
  5. A lot of Javascript idiots out there have been and are, far and away the worst nightmare you can have in computer programming. Period.
  6.  
  7.  
  8.  
  9. This many of them are also just their own personal hurt feelings.
  10.  
  11.  
  12.  
  13. That being said, if you want to throw more light on this issue, this article is it.
  14.  
  15.  
  16.  
  17. The most popular server-side API for email isn't built with Javascript, but rather developed with python and Ruby.
  18.  
  19.  
  20.  
  21. By a Python.
  22.  
  23.  
  24.  
  25. This is absolute madness.
  26.  
  27.  
  28.  
  29. A bit about Python Python is actually not that easy to learn, but it's still pretty damn usable. I believe that Python would be almost impossible to write a static website in, as it's very error prone. You're going to make a lot of errors and laugh because of them.
  30.  
  31.  
  32.  
  33. Out of the box, Python's standard library doesn't seem so great, but as you know, nothing is truly out of reach. All major features are available in every package, and using any of them to its fullest extent will ensure a zero error experience.
  34.  
  35.  
  36.  
  37. Once you've got the basics, you should try to play around with some other packages like the time series libraries to understand time frames and tasks. In a nutshell, Python is awesome.
  38.  
  39. Apache Servers Why would anyone build a web application in Ruby when they can build it in Apache, which is written entirely in C++? Well, Rails sounds like a great idea, doesn't it? Wrong. Rails is way too much work, especially when you mix it with other languages.
  40.  
  41.  
  42.  
  43. The simple fact is, Ruby is not as powerful as it is hyped up to be. Being dynamic, it's relatively easy to bend Ruby into any shape you want, but you're going to have your hands full. We'll cover that in the end.
  44.  
  45.  
  46.  
  47. It's important to note that Ruby is only aware of the concepts provided by the language that have been supplied by the Rails framework, and even this is extremely limited. C++ is truly a powerful language, it's even the most powerful language in existence. No other language would know how to deal with an OOP structure.
  48.  
  49.  
  50.  
  51. Try setting up a command line for Ruby, put it in a directory and enter Ruby commands. There will be no errors.
  52.  
  53.  
  54.  
  55. For Apache, you need to be able to deal with .htaccess files, a special file kind of the counterpart to Apache. You will need the Mod_rewrite module to have full access to the page and rewrite it in your favor.
  56.  
  57.  
  58.  
  59. Most web developers build all their stuff on Apache and forget to take care of the setup right, so after a year or two, it's a mess and broken.
  60.  
  61.  
  62.  
  63. Ruby OO is indeed awesome, but it would take a lot of work for a string to contain any sort of complex object. You'll get less strings out of the whole deal. If you do, you'll be doing it wrong. Rails is definitely not what you want.
  64.  
  65.  
  66.  
  67. So, how should you go about building an HTTP service?
  68.  
  69.  
  70.  
  71. I'm glad you asked.
  72.  
  73.  
  74.  
  75. You need to load in some libraries from other platforms. You could use other languages.
  76.  
  77. Java. C++. C. C#. Go. Python. You get the idea. C + C++
  78.  
  79. Go + C++
  80.  
  81. python + C++
  82.  
  83. Bash + Python
  84.  
  85. ruby + C
  86.  
  87.  
  88.  
  89. Next step: Modify your service so that it checks for the server's presence, and if it doesn't, it'll make an Apache request that checks for the server. Go ahead and make your handy Python scripts execute against an Apache server, as well as check if it's good or not. Don't forget about that. Set up a script called 404.cgi which will detect 404 errors and send an email to the administrator.
  90.  
  91.  
  92.  
  93. If your service truly needs a Rails framework, then I'll have to suggest to go with C++. Apache's an OK idea if you're starting off your web hosting business, but once you grow, look to move your beast to one of the largest web hosting providers out there.
  94.  
  95. Javascript
  96.  
  97. It's bad. A lot of Javascript idiots out there have been and are, far and away the worst nightmare you can have in computer programming. Period.
  98.  
  99.  
  100.  
  101. A lot of Javascript idiots out there have been and are, far and away the worst nightmare you can have in computer programming. Period.
  102.  
  103.  
  104.  
  105. You're going to make a lot of errors and laugh because of them.
  106.  
  107.  
  108.  
  109. Out of the whole world, this many of them are simply beyond belief.
  110.  
  111.  
  112.  
  113. That being said, if you want to throw more light on this issue, this article is it.
  114.  
  115.  
  116.  
  117. The most popular server-side API for email isn't built with Javascript, but rather developed with python and Ruby
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement