Skip to content

Commit 3c0c4f3

Browse files
authored
Merge pull request #3 from hassanhafiz44/master
Code editors
2 parents ab9678c + 173371f commit 3c0c4f3

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

Diff for: 1-js/01-getting-started/3-code-editors/article.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
# Code editors
1+
# کوڈ ایڈیٹرز
22

3-
A code editor is the place where programmers spend most of their time.
3+
کوڈ ایڈیٹر وہ جگہ ہے جہاں پروگرامرز اپنا سب سے زیادہ وقت گزارتے ہیں۔
44

5-
There are two main types of code editors: IDEs and lightweight editors. Many people use one tool of each type.
5+
کوڈ ایڈیٹرز کی دو بڑی اقسام ہیں: آئی ڈی ای (IDE) اور لائٹ ویٹ ایڈیٹرز۔ بہت سے لوگ ان دونوں میں سے کوئی ایک قسم استعمال کرتے ہیں۔
66

7-
## IDE
7+
## آئی ڈی ای (IDE)
88

9-
The term [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment) (Integrated Development Environment) refers to a powerful editor with many features that usually operates on a "whole project." As the name suggests, it's not just an editor, but a full-scale "development environment."
9+
اصطلاح [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment) (Integrated Development Environment) سے مراد ایک پاورفل ایڈیٹر ہے جس میں بہت سارے فیچرز موجود ہوتے ہیں جو کہ عام طور پر پورے پراجیکٹ پر آپریٹ کرتا ہے۔ جیسے کے نام پتہ چلتا ہے، یہ ایک ایڈیٹر نہیں بلکہ ایک مکمل ڈیویلپمنٹ انوائرنمنٹ ہے۔
1010

11-
An IDE loads the project (which can be many files), allows navigation between files, provides autocompletion based on the whole project (not just the open file), and integrates with a version management system (like [git](https://git-scm.com/)), a testing environment, and other "project-level" stuff.
11+
ایک IDE پراجیکٹ لوڈ کرتا ہے (جس میں بہت سی فائلز ہو سکتی ہیں)، فائلز کے درمیان آنا جانا آسان کرتا ہے، پورے پراجیکٹ کے حساب سے آٹوکمپلیشن دیتا ہے اور ورژن مینیجمنٹ دیتا ہے(جیسے [git](https://git-scm.com/))، ٹیسٹنگ کا ماحول دیتا ہے اور بھی پراجیکٹ لیول کی کافی اشیا مہیا کرتا ہے۔
1212

13-
If you haven't selected an IDE yet, consider the following options:
13+
اگر آپ نے ابھی تک کسی IDE کا انتخاب نہیں کیا تو نیچے دیے گئے آپشنز کو چیک کیجیے:
1414

1515
- [Visual Studio Code](https://code.visualstudio.com/) (cross-platform, free).
1616
- [WebStorm](http://www.jetbrains.com/webstorm/) (cross-platform, paid).
1717

18-
For Windows, there's also "Visual Studio", not to be confused with "Visual Studio Code". "Visual Studio" is a paid and mighty Windows-only editor, well-suited for the .NET platform. It's also good at JavaScript. There's also a free version [Visual Studio Community](https://www.visualstudio.com/vs/community/).
18+
Windows کے لیے "Visual Studio" بھی موجود ہے، اسے "Visual Studio Code" مت سمجھیے۔ "Visual Studio" ایک قیمتی اور پاورفل صرف Windows پر چلنے والا ایڈیٹر ہے جو کہ .Net platform کی ڈویلپمنٹ کے لیے بہترین ہے۔ یہ Javascript کے لیے بھی اچھا ہے۔ Visual Studio کا فری ورژن [Visual Studio Community](https://www.visualstudio.com/vs/community/) بھی موجود ہے۔
1919

20-
Many IDEs are paid, but have a trial period. Their cost is usually negligible compared to a qualified developer's salary, so just choose the best one for you.
20+
بہت سے IDE قیمتی ہیں لیکن ٹرائل پیریڈ کے ساتھ آتے ہیں۔ ایک قابل انجینئر کی سیلری کے حساب سے ان کی قیمت نہ ہونے کے برابر ہوتی ہے، اس لیے اپنے لیے جو بہترین ہے اس کا انتخاب کیجیے۔
2121

22-
## Lightweight editors
22+
## لائٹ ویٹ ایڈیٹرز
2323

24-
"Lightweight editors" are not as powerful as IDEs, but they're fast, elegant and simple.
24+
"لائٹ ویٹ ایڈیٹرز" آئی ڈی ای (IDEs) جتنے پاورفل نہیں ہوتے لیکن یہ سادہ، خوبصورت اور تیز ہیں۔
2525

26-
They are mainly used to open and edit a file instantly.
26+
یہ بنیادی طور پر کسی فائل کو فل فور ایڈٹ کرنے کیلیے استعمال ہوتے ہیں۔
2727

28-
The main difference between a "lightweight editor" and an "IDE" is that an IDE works on a project-level, so it loads much more data on start, analyzes the project structure if needed and so on. A lightweight editor is much faster if we need only one file.
28+
ایک لائٹ ویٹ ایڈیٹر اور IDE میں بنیادی فرق یہ ہے کہ IDE پراجیکٹ لیول پر کام کرتا ہے اس لیے یہ شروع میں کافی سارا ڈیٹا لوڈ کرتا ہے، حسبِ ضرورت پراجیکٹ سٹرکچر کو اینالائز کرتا ہے اور کافی چیزیں۔ لائٹ ویٹ ایڈیٹر بہت تیز ہے اگر ہم نے صرف ایک فائل پر کام کرنا ہو تو۔
2929

30-
In practice, lightweight editors may have a lot of plugins including directory-level syntax analyzers and autocompleters, so there's no strict border between a lightweight editor and an IDE.
30+
عملی طور پر، لائٹ ویٹ ایڈیٹرز میں ہو سکتا ہے کہ کافی پلگ اِنز ہوں بشمول پراجیکٹ لیول پر سینٹیکس اینالائز کرنا اور کوڈ کمپلیشن کرنا۔ اس طرح بنیادی طور پر لائٹ ویٹ ایڈیٹر اور IDE میں کوئی سخت فرق کرنے والی کوئی لائن نہیں ہے۔
3131

32-
The following options deserve your attention:
32+
درج ذیل چیزیں آپ کی توجہ کی منتظر ہیں:
3333

3434
- [Atom](https://atom.io/) (cross-platform, free).
3535
- [Sublime Text](http://www.sublimetext.com) (cross-platform, shareware).
3636
- [Notepad++](https://notepad-plus-plus.org/) (Windows, free).
37-
- [Vim](http://www.vim.org/) and [Emacs](https://www.gnu.org/software/emacs/) are also cool if you know how to use them.
37+
- [Vim](http://www.vim.org/) اور [Emacs](https://www.gnu.org/software/emacs/) بھی اچھے ہیں اگر آپ کو یہ استعمال کرنے آتے ہوں تو۔
3838

39-
## Let's not argue
39+
## چلیں بحث میں نہیں پڑتے
4040

41-
The editors in the lists above are those that either I or my friends whom I consider good developers have been using for a long time and are happy with.
41+
مندرجہ بالا لسٹ میں موجود ایڈیٹرز یا تو میں خود استعمال کرتا ہوں یا میرے وہ دوست جنہیں میں اچھے پروگرامرز سمجھتا ہوں ایک عرصے سے استعمال کر رہیں ہیں اور ان کے ساتھ خوش ہیں۔
4242

43-
There are other great editors in our big world. Please choose the one you like the most.
43+
ہماری بڑی دنیا میں اور بھی عظیم ایڈیٹرز موجود ہیں۔ برائے مہربانی آپ اس کا انتخاب کیجیے جو آپ کا انتہائی پسندیدہ ہو۔
4444

45-
The choice of an editor, like any other tool, is individual and depends on your projects, habits, and personal preferences.
45+
ایک ایڈیٹر کا انتخاب، کسی بھی دوسرے اوزار کی طرح فرد کی عادات، ذاتی ترجیحات اور پراجیکٹ پر منحصر ہوتا ہے۔

Diff for: 1-js/01-getting-started/4-devtools/article.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
# Developer console
22

3-
Code is prone to errors. You will quite likely make errors... Oh, what am I talking about? You are *absolutely* going to make errors, at least if you're a human, not a [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)).
3+
کوڈ میں ایررز آ جاتے ہیں۔ آپ بھی لازمی غلطیاں کریں گے۔ یہ میں کیا بات کر رہا ہوں؟ کم از کم اگر آپ [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)) نہیں بلکہ انسان ہیں تو آپ کا کوڈ *لازمی* طور پور ایررز کا شکار ہو گا۔
44

5-
But in the browser, users don't see errors by default. So, if something goes wrong in the script, we won't see what's broken and can't fix it.
5+
لیکن براؤزرز میں یوزرز پہلے سے طے شدہ طور پر ایرزرز نہیں دیکھتے۔ تو اگر کچھ غلط ہوتا ہے تو آپ کو پتا نہیں چلے گا کہ کیا ہوا اور آپ اسے ٹھیک نہیں کر پائیں گے۔
66

7-
To see errors and get a lot of other useful information about scripts, "developer tools" have been embedded in browsers.
7+
ایررز کو دیکھنے اور سکرپٹس کے بارے اور بھی بہت مفید معلومات حاصل کرنے کیلیے براؤزرز میں "developer tools" شامل ہوتے ہیں۔
88

9-
Most developers lean towards Chrome or Firefox for development because those browsers have the best developer tools. Other browsers also provide developer tools, sometimes with special features, but are usually playing "catch-up" to Chrome or Firefox. So most developers have a "favorite" browser and switch to others if a problem is browser-specific.
9+
زیادہ تر ڈویلپرز Chrome یا Firefox کی طرف مائل ہوتے ہیں کیونکہ ان میں بہترین developer tools موجود ہیں۔ دوسرے براؤزرز میں بھی developer tools موجود ہوتے ہیں بلکہ ان میں کچھ سپیشل فیچرز بھی ہوتے ہیں لیکن زیادہ تر یہ Chrome اور Firefox کو کاپی کرنے کی ہی کوشش کر رہے ہوتے ہیں۔ اس لیے زیادہ تر ڈویلپرز اپنا پسندیدہ براؤزر ہی استعمال کرتے ہیں اور اگر کسی خاص براؤزر کے متعلقہ مسئلہ حل کرنا ہو تو اس براؤزر کو استعمال کرتے ہیں۔
1010

11-
Developer tools are potent; they have many features. To start, we'll learn how to open them, look at errors, and run JavaScript commands.
11+
Developer tools پاورفل ہیں؛ ان میں بہت سارے فیچرز ہوتے ہیں۔ شروعاتی طور پر ہم سیکھیں گے کہ انہیں کھولا کس طرح جاتا ہے، ایررز کیسے دیکھے جاتے ہیں اور کچھ Javascript کمانڈز کو بھی چلا کر دیکھیں گے۔
1212

1313
## Google Chrome
1414

15-
Open the page [bug.html](bug.html).
15+
دیے گئے ڈاکیومنٹ [bug.html](bug.html) کو کھولیں۔
1616

17-
There's an error in the JavaScript code on it. It's hidden from a regular visitor's eyes, so let's open developer tools to see it.
17+
اس میں موجود Javascript کوڈ میں ایک ایرر موجود ہے۔ یہ ایک عام وزٹر سے چھپا ہوا ہے، تو چلیں developer tools کھول کر اسے دیکھتے ہیں۔
1818

19-
Press `key:F12` or, if you're on Mac, then `key:Cmd+Opt+J`.
19+
اسے کھولنے کیلیے`key:F12` کو دبائیں یا اگر آپ Mac پر ہیں تو `key:Cmd+Opt+J` دبائیں۔
2020

21-
The developer tools will open on the Console tab by default.
21+
بائی ڈیفالٹ، developer console tab پہلے کھلے گا۔
2222

23-
It looks somewhat like this:
23+
یہ کچھ اس طرح دکھائی دیتا ہے:
2424

2525
![chrome](chrome.png)
2626

27-
The exact look of developer tools depends on your version of Chrome. It changes from time to time but should be similar.
27+
اس developer tool کی خاص بناوٹ Chrome کے ورژن پر منحصر ہے۔ یہ وقت کے ساتھ ساتھ بدلتی رہتی ہے لیکن اس سے ملتی جلتی ہی ہو گی۔
2828

29-
- Here we can see the red-colored error message. In this case, the script contains an unknown "lalala" command.
30-
- On the right, there is a clickable link to the source `bug.html:12` with the line number where the error has occurred.
29+
- یہاں ہم سرخ رنگ میں ایرر میسج دیکھ سکتے ہیں۔ اس کیس میں، سکرپٹ میں ایک نامعلوم کمانڈ "lalala" موجود ہے۔
30+
- دائیں طرف، سورس کوڈ `bug.html:12` کی طرف لے جانے والا ایک لنک موجود ہے جس پر کلک کر کے ہم اس لائن پر پہنچ سکتے ہیں جہاں سے یہ ایرر آیا ہے۔
3131

32-
Below the error message, there is a blue `>` symbol. It marks a "command line" where we can type JavaScript commands. Press `key:Enter` to run them.
32+
ایرر میسج کے نیچے ایک `>` کا ایک نشان موجود ہے۔ یہ "command line" کی نشاندہی کرتا ہے جہاں ہم Javascript کمانڈز لکھ سکتے ہیں۔ `key:Enter` دبا کر ان کمانڈز کو چلایا جا سکتا ہے۔
3333

34-
Now we can see errors, and that's enough for a start. We'll come back to developer tools later and cover debugging more in-depth in the chapter <info:debugging-chrome>.
34+
اب ہم ایررز دیکھ سکتے ہیں اور آغاز کرنے کیلیے یہ کافی ہے۔ ہم developer tools کی طرف واپس آئیں گے اور چیپٹر <info:debugging-chrome> میں ڈیبگنگ اور ڈویلپر ٹولز کو غور سے دیکھیں گے۔
3535

3636
```smart header="Multi-line input"
37-
Usually, when we put a line of code into the console, and then press `key:Enter`, it executes.
37+
عام طور پر، جب ہم console میں کوڈ کی کوئی لائن لکھ کر `key:Enter` دباتے ہیں تو یہ لائن چل جاتی ہے۔
3838
39-
To insert multiple lines, press `key:Shift+Enter`. This way one can enter long fragments of JavaScript code.
39+
زیادہ لائنز انسرٹ کرنے کیلیے `key:Shift+Enter` کو دبایا جاتا ہے۔ اس طرح ہم Javascript کوڈ کے بڑے حصے لکھ اور چلا سکتے ہیں۔
4040
```
4141

4242
## Firefox, Edge, and others
4343

44-
Most other browsers use `key:F12` to open developer tools.
44+
زیادہ تر براؤزرز `key:F12` کے استعمال سے developer tools کو کھولتے ہیں۔
4545

46-
The look & feel of them is quite similar. Once you know how to use one of these tools (you can start with Chrome), you can easily switch to another.
46+
ان سب کی بناوٹ اور feel تقریباً ایک جیسی ہی ہوتی ہے۔ ایک دفعہ آپ کسی ایک کو چلانا سیکھ جائیں (آپ Chrome سے آغاز کر سکتے ہیں) تو آپ کسی بھی دوسرے کو آسانی سے چلا سکتے ہیں۔
4747

4848
## Safari
4949

50-
Safari (Mac browser, not supported by Windows/Linux) is a little bit special here. We need to enable the "Develop menu" first.
50+
براؤزرز Safari (Mac براؤزر، جو کہ Windows/Linux پر موجود نہیں) تھوڑا خاص طریقے سے کام کرتا ہے۔ ہمیں پہلے "Develop menu" میں سے اسے Enable کرنا پڑتا ہے۔
5151

52-
Open Preferences and go to the "Advanced" pane. There's a checkbox at the bottom:
52+
پریفرینسز (Preferences) کھولیے اور "Advance" pane میں جائیے۔ نیچے ایک checkbox موجود ہے اسے کلک کیجیے۔
5353

5454
![safari](safari.png)
5555

56-
Now `key:Cmd+Opt+C` can toggle the console. Also, note that the new top menu item named "Develop" has appeared. It has many commands and options.
56+
اب `key:Cmd+Opt+C` console کو کھول اور بند کر سکتی ہے۔ مزید نوٹ کیجیے کہ ایک نیا مینیو "Develop" بھی آ گیا ہے۔ اس میں بہت سی کمانڈز اور آپشنز موجود ہیں۔
5757

5858
## Summary
5959

60-
- Developer tools allow us to see errors, run commands, examine variables, and much more.
61-
- They can be opened with `key:F12` for most browsers on Windows. Chrome for Mac needs `key:Cmd+Opt+J`, Safari: `key:Cmd+Opt+C` (need to enable first).
60+
- Developer tools ہمیں ایررز دیکھنے، کمانڈز چلانے، ویری ایبلز کا جائزہ لینے اور بہت سی چیزیں کرنے کے قابل بناتے ہیں۔
61+
- یہ وندوز پر زیادہ تر براؤزرز میں `key:F12` سے کھولے جا سکتے ہیں۔ Mac پر Chrome پر انہیں کھولنے کیلیے `key:Cmd+Opt+J` اور Safari پر کھولنے کیلیے (جسے پہلے این ایبل کرنا پڑتا ہے) `key:Cmd+Opt+C` دبانے کی ضرورت ہوتی ہے۔
6262

63-
Now we have the environment ready. In the next section, we'll get down to JavaScript.
63+
اب ہمارا environment تیار ہو گیا ہے۔ اگلے سیکشن میں ہم Javascript کی طرف بڑھیں گے۔

Diff for: 1-js/01-getting-started/4-devtools/bug.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<body>
99

10-
There is an error in the script on this page.
10+
اس پیج پر موجود سکرپٹ میں ایک ایرر ہے۔
1111
<script>
1212
lalala
1313
</script>

0 commit comments

Comments
 (0)