الفرق بين المراجعتين لصفحة: «برمجة سي/لماذا تتعلم لغة البرمجة سي؟»

تم حذف المحتوى تمت إضافة المحتوى
لا ملخص تعديل
وسمان: تراجع يدوي تعديل مصدر 2017
لا ملخص تعديل
وسم: تعديل مصدر 2017
سطر 1:
{{تحرك}}
 
{{ويكيبيديا|سي (لغة برمجة)}}
{{Wikipedia|C (programming language)}}
 
'''[[w:سي (لغة برمجة)|سي]]''' هي لغة البرمجة الأكثر استخدامًا لتصميم وتطوير [[w:نظام تشغيل|أنظمة التشغيل]] بشكل عام. كان أول نظام تشغيل يطور بلغة السي هو نظام [[w:يونكس|يونكس]]. كُتبت أيضًا نُظم التشغيل اللاحقة مثل [[w:جنو|جنو]] و[[w:لينكس|لينكس]] بلغة البرمجة سي، ولكن لا تقتصر لغة البرمجة سي على تطوير أنظمة التشغيل فحسب، بل هي أيضًا تعد المُلهمة والأساس للغات عالية المستوى الأكثر شيوعًا المتواجدة اليوم. في الواقع، صُممت وطورت لغات البرمجة [[w:بيرل|بيرل]] و[[w:بي إتش بي|بي إتش بي]] و[[w:بايثون (لغة برمجة)|بايثون]] و[[w:روبي (لغة برمجة)|روبي]] بلغة البرمجة سي.
[[Wikipedia:C (programming language)|C]] is the most commonly used programming language for writing [[Wikipedia:operating systems|operating systems]]. The first operating system written in C is [[Wikipedia:Unix|Unix]]. Later operating systems like [[Wikipedia:Linux|GNU/Linux]] were all written in C. Not only is C the language of operating systems, it is the precursor and inspiration for almost all of the most popular high-level languages available today. In fact, [[Wikipedia:Perl|Perl]], [[Wikipedia:PHP|PHP]], [[Wikipedia:Python (programming language)|Python]] and [[Wikipedia:Ruby_(programming_language)|Ruby]] are all written in C.
 
By way of analogy, let's say that you were going to be learning Spanish, Italian, French, or Romanian. Do you think knowing Latin would be helpful? Just as Latin was the basis of all of those languages, knowing C will enable you to understand and appreciate an entire family of programming languages built upon the traditions of C. Knowledge of C enables freedom.
 
على سبيل القياس، لنفترض أنك ستتعلم الإسبانية أو الإيطالية أو الفرنسية أو الرومانية. هل تعتقد أن معرفة اللغة اللاتينية سيكون مفيدًا؟ تمامًا كما كانت اللاتينية أساس كل تلك اللغات، فإن معرفة لغة البرمجة سي ستمكنك من فهم وتقدير عائلة كاملة من لغات البرمجة المبنية على أساس اللغة سي، حيث تتيح معرفتك بللغة سي الحرية.
===Why C and not assembly? ===
 
===لماذا اللغة سي وليس لغة المُجمع؟ ===
 
The biggest reason to learn C over [[w:Assembly language|assembly]] is because it's much easier and faster to write code in C than in assembly for a given programming task. With C, you will write far fewer lines of code, complete the job much quicker, and with far less mental effort than if you wrote it in assembly. And with today's modern compilers, executable files compiled from C source code will typically run faster than one written "by hand" using assembly. Only in rare edge cases, and only if you really know what you are doing, can assembly offer important speed advantages over C code compiled with a decent compiler.