diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/tr/learn/common_questions | |
parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip |
remove retired locales (#699)
Diffstat (limited to 'files/tr/learn/common_questions')
3 files changed, 0 insertions, 469 deletions
diff --git a/files/tr/learn/common_questions/how_does_the_internet_work/index.html b/files/tr/learn/common_questions/how_does_the_internet_work/index.html deleted file mode 100644 index 199ba351ea..0000000000 --- a/files/tr/learn/common_questions/how_does_the_internet_work/index.html +++ /dev/null @@ -1,95 +0,0 @@ ---- -title: How does the Internet work? -slug: Learn/Common_questions/How_does_the_Internet_work -translation_of: Learn/Common_questions/How_does_the_Internet_work ---- -<div>{{LearnSidebar}}</div> - -<div class="summary"> -<p>This article discusses what the Internet is and how it works.</p> -</div> - -<table class="learn-box standard-table"> - <tbody> - <tr> - <th scope="row">Prerequisites:</th> - <td>None, but we encourage you to read the <a href="/en-US/docs/Learn/Thinking_before_coding">Article on setting project goals</a> first</td> - </tr> - <tr> - <th scope="row">Objective:</th> - <td>You will learn the basics of the technical infrastructure of the Web and the difference between Internet and the Web.</td> - </tr> - </tbody> -</table> - -<h2 id="Summary">Summary</h2> - -<p>İnternet, web'in belkemiği, web'i mümkün kılan teknik altyapıdır. İnternet, en temel haliyle, hepsi birbirleriyle iletişim kuran geniş bir bilgisayar ağıdır.</p> - -<p>İnternetin tarihi biraz belirsiz. 1960'larda ABD Ordusu tarafından finanse edilen bir araştırma projesi olarak başladı ve daha sonra birçok devlet üniversitesinin ve özel şirketin desteğiyle 1980'lerde kamu altyapısına dönüştü. İnterneti destekleyen çeşitli teknolojiler zamanla gelişti, ancak çalışma şekli o kadar değişmedi: İnternet bilgisayarları birbirine bağlamanın ve ne olursa olsun, bağlantıda kalmanın bir yolunu bulan bir yoldur.</p> - -<h2 id="Active_Learning">Active Learning</h2> - -<ul> - <li><a href="https://www.youtube.com/watch?v=7_LPdttKXPc" rel="external">How the internet Works in 5 minutes</a>: A 5 minute video to understand the very basics of Internet by Aaron Titus.</li> -</ul> - -<h2 id="Deeper_dive">Deeper dive</h2> - -<h3 id="A_simple_network">A simple network</h3> - -<p>When two computers need to communicate, you have to link them, either physically (usually with an <a href="http://en.wikipedia.org/wiki/Ethernet_crossover_cable" rel="external">Ethernet cable</a>) or wirelessly (for example with <a href="http://en.wikipedia.org/wiki/WiFi" rel="external">WiFi</a> or <a href="http://en.wikipedia.org/wiki/Bluetooth" rel="external">Bluetooth</a> systems). All modern computers can sustain any of those connections.</p> - -<div class="note"> -<p><strong>Note:</strong> For the rest of this article, we will only talk about physical cables, but wireless networks work the same.</p> -</div> - -<p><img alt="Two computers linked together" src="https://mdn.mozillademos.org/files/8441/internet-schema-1.png" style="height: 152px; width: 600px;"></p> - -<p>Such a network is not limited to two computers. You can connect as many computers as you wish. But it gets complicated quickly. If you're trying to connect, say, ten computers, you need 45 cables, with nine plugs per computer!</p> - -<p><img alt="Ten computers all together" src="https://mdn.mozillademos.org/files/8443/internet-schema-2.png" style="height: 576px; width: 600px;"></p> - -<p>To solve this problem, each computer on a network is connected to a special tiny computer called a <em>router</em>. This <em>router</em> has only one job: like a signaler at a railway station, it makes sure that a message sent from a given computer arrives at the right destination computer. To send a message to computer B, computer A must send the message to the router, which in turn forwards the message to computer B and makes sure the message is not delivered to computer C.</p> - -<p>Once we add a router to the system, our network of 10 computers only requires 10 cables: a single plug for each computer and a router with 10 plugs.</p> - -<p><img alt="Ten computers with a router" src="https://mdn.mozillademos.org/files/8445/internet-schema-3.png" style="height: 576px; width: 600px;"></p> - -<h3 id="A_network_of_networks">A network of networks</h3> - -<p>So far so good. But what about connecting hundreds, thousands, billions of computers? Of course a single <em>router</em> can't scale that far, but, if you read carefully, we said that a <em>router</em> is a computer like any other, so what keeps us from connecting two <em>routers</em> together? Nothing, so let's do that.</p> - -<p><img alt="Two routers linked together" src="https://mdn.mozillademos.org/files/8447/internet-schema-4.png"></p> - -<p>By connecting computers to routers, then routers to routers, we are able to scale infinitely.</p> - -<p><img alt="Routers linked to routers" src="https://mdn.mozillademos.org/files/8449/internet-schema-5.png" style="height: 563px; width: 600px;"></p> - -<p>Such a network comes very close to what we call the Internet, but we're missing something. We built that network for our own purposes. There are other networks out there: your friends, your neighbors, anyone can have their own network of computers. But it's not really possible to set cables up between your house and the rest of the world, so how can you handle this? Well, there are already cables linked to your house, for example, electric power and telephone. The telephone infrastructure already connects your house with anyone in the world so it is the perfect wire we need. To connect our network to the telephone infrastructure, we need a special piece of equipment called a <em>modem</em>. This <em>modem</em> turns the information from our network into information manageable by the telephone infrastructure and vice versa.</p> - -<p><img alt="A router linked to a modem" src="https://mdn.mozillademos.org/files/8451/internet-schema-6.png" style="height: 340px; width: 600px;"></p> - -<p>So we are connected to the telephone infrastructure. The next step is to send the messages from our network to the network we want to reach. To do that, we will connect our network to an Internet Service Provider (ISP). An ISP is a company that manages some special <em>routers</em> that are all linked together and can also access other ISPs' routers. So the message from our network is carried through the network of ISP networks to the destination network. The Internet consists of this whole infrastructure of networks.</p> - -<p><img alt="Full Internet stack" src="https://mdn.mozillademos.org/files/8453/internet-schema-7.png" style="height: 1293px; width: 340px;"></p> - -<h3 id="Finding_computers">Finding computers</h3> - -<p>If you want to send a message to a computer, you have to specify which one. Thus any computer linked to a network has a unique address that identifies it, called an "IP address" (where IP stands for <em>Internet Protocol</em>). It's an address made of a series of four numbers separated by dots, for example: <code>192.168.2.10</code>.</p> - -<p>That's perfectly fine for computers, but we human beings have a hard time remembering that sort of address. To make things easier, we can alias an IP address with a human readable name called a <em>domain name</em>. For example (at the time of writing; IP addresses can change) <code>google.com</code> is the domain name used on top of the IP address <code>173.194.121.32</code>. So using the domain name is the easiest way for us to reach a computer over the Internet.</p> - -<p><img alt="Show how a domain name can alias an IP address" src="https://mdn.mozillademos.org/files/8405/dns-ip.png" style="height: 160px; width: 330px;"></p> - -<h3 id="Internet_and_the_web">Internet and the web</h3> - -<p>As you might notice, when we browse the Web with a Web browser, we usually use the domain name to reach a website. Does that mean the Internet and the Web are the same thing? It's not that simple. As we saw, the Internet is a technical infrastructure which allows billions of computers to be connected all together. Among those computers, some computers (called <em>Web servers</em>) can send messages intelligible to web browsers. The <em>Internet</em> is an infrastructure, whereas the <em>Web</em> is a service built on top of the infrastructure. It is worth noting there are several other services built on top of the Internet, such as email and {{Glossary("IRC")}}.</p> - -<h2 id="Next_steps">Next steps</h2> - -<ul> - <li><a href="/en-US/Learn/Getting_started_with_the_web/How_the_Web_works">How the Web works</a></li> - <li><a href="/en-US/docs/Learn/page_vs_site_vs_server_vs_search_engine">Understanding the difference between a web page, a web site, a web server and a search engine</a></li> - <li><a href="/en-US/docs/Learn/Understanding_domain_names">Understanding domain names</a></li> -</ul> diff --git a/files/tr/learn/common_questions/index.html b/files/tr/learn/common_questions/index.html deleted file mode 100644 index 4aafae4a32..0000000000 --- a/files/tr/learn/common_questions/index.html +++ /dev/null @@ -1,135 +0,0 @@ ---- -title: Common questions -slug: Learn/Common_questions -tags: - - CodingScripting - - Infrastructure - - Learn - - NeedsTranslation - - TopicStub - - Web - - WebMechanics -translation_of: Learn/Common_questions ---- -<div>{{LearnSidebar}}</div> - -<p class="summary">This section of the Learning Area is designed to provide answers to common questions that may come up, which are not necessarily part of the structured core learning pathways (e.g. the <a href="/en-US/docs/Learn/HTML">HTML</a> or <a href="/en-US/docs/Learn/CSS">CSS</a> learning articles.) These articles are designed to work on their own.</p> - -<h2 id="How_the_Web_works">How the Web works</h2> - -<p>This section covers web mechanics —questions relating to general knowledge of the Web ecosystem and how it works.</p> - -<dl> - <dt> - <h3 id="How_does_the_Internet_work"><a href="/en-US/docs/Learn/Common_questions/How_does_the_Internet_work">How does the Internet work?</a></h3> - </dt> - <dd>The <strong>Internet</strong> is the backbone of the Web, the technical infrastructure that makes the Web possible. At its most basic, the Internet is a large network of computers which communicate all together. This article discusses how it works, at a basic level.</dd> - <dt> - <h3 id="What_is_the_difference_between_webpage_website_web_server_and_search_engine"><a href="/en-US/docs/Learn/Common_questions/Pages_sites_servers_and_search_engines">What is the difference between webpage, website, web server, and search engine?</a></h3> - </dt> - <dd>In this article we describe various web-related concepts: webpages, websites, web servers, and search engines. These terms are often confused by newcomers to the Web, or are incorrectly used. Let's learn what they each mean!</dd> - <dt> - <h3 id="What_is_a_URL"><a href="/en-US/docs/Learn/Common_questions/What_is_a_URL">What is a URL?</a></h3> - </dt> - <dd>With {{Glossary("Hypertext")}} and {{Glossary("HTTP")}}, URL is one of the key concepts of the Web. It is the mechanism used by {{Glossary("Browser","browsers")}} to retrieve any published resource on the web.</dd> - <dt> - <h3 id="What_is_a_domain_name"><a href="/en-US/docs/Learn/Common_questions/What_is_a_domain_name">What is a domain name?</a></h3> - </dt> - <dd>Domain names are a key part of the Internet infrastructure. They provide a human-readable address for any web server available on the Internet.</dd> - <dt> - <h3 id="What_is_a_web_server"><a href="/en-US/docs/Learn/Common_questions/What_is_a_web_server">What is a web server?</a></h3> - </dt> - <dd>The term "Web server" can refer to the hardware or software that serves web sites to clients across the Web — or both of them working together. In this article we go over how web servers work, and why they're important.</dd> - <dt> - <h3 id="What_are_hyperlinks"><a href="/en-US/docs/Learn/Common_questions/What_are_hyperlinks">What are hyperlinks?</a></h3> - </dt> - <dd>In this article, we'll go over what hyperlinks are and why they matter.</dd> -</dl> - -<h2 id="Tools_and_setup">Tools and setup</h2> - -<p>Questions related to the tools/software you can use to build websites.</p> - -<dl> - <dt> - <h3 id="How_much_does_it_cost_to_do_something_on_the_Web"><a href="/en-US/docs/Learn/Common_questions/How_much_does_it_cost">How much does it cost to do something on the Web?</a></h3> - </dt> - <dd>When you're launching a website, you may spend nothing or your costs may go through the roof. In this article we discuss how much everything costs and what you get for what you pay (or don't pay).</dd> - <dt> - <h3 id="What_software_do_I_need_to_build_a_website"><a href="/en-US/docs/Learn/Common_questions/What_software_do_I_need">What software do I need to build a website?</a></h3> - </dt> - <dd>In this article we explain which software components you need when you're editing, uploading, or viewing a website.</dd> - <dt> - <h3 id="What_text_editors_are_available"><a href="/en-US/docs/Learn/Common_questions/Available_text_editors">What text editors are available?</a></h3> - </dt> - <dd>In this article we highlight some things to think about when choosing and installing a text editor for web development.</dd> - <dt> - <h3 id="What_are_browser_developer_tools"><a href="/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools">What are browser developer tools?</a></h3> - </dt> - <dd>Every browser features a set of devtools for debugging HTML, CSS, and other web code. This article explains how to use the basic functions of your browser's devtools.</dd> - <dt> - <h3 id="How_do_you_make_sure_your_website_works_properly"><a href="/en-US/docs/Learn/Common_questions/Checking_that_your_web_site_is_working_properly">How do you make sure your website works properly?</a></h3> - </dt> - <dd>So you've published your website online — very good! But are you sure it works properly? This article provides some basic troubleshooting steps.</dd> - <dt> - <h3 id="How_do_you_set_up_a_local_testing_server"><a href="/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server">How do you set up a local testing server?</a></h3> - </dt> - <dd> - <div> - <p>This article explains how to set up a simple local testing server on your machine, and the basics of how to use it.</p> - </div> - </dd> - <dt> - <h3 id="How_do_you_upload_files_to_a_web_server"><a href="/en-US/docs/Learn/Common_questions/Upload_files_to_a_web_server">How do you upload files to a web server?</a></h3> - </dt> - <dd>This article shows how to publish your site online with <a class="glossaryLink" href="https://developer.mozilla.org/en-US/docs/Glossary/FTP" title="FTP: FTP (File Transfer Protocol) is the standard network protocol for transferring files from one host to another over the Internet through TCP.">FTP</a> tools — one of the most common ways to get a website online so others can access it from their computers.</dd> - <dt> - <h3 id="How_do_I_use_GitHub_Pages"><a href="/en-US/docs/Learn/Common_questions/Using_GitHub_Pages">How do I use GitHub Pages?</a></h3> - </dt> - <dd>This article provides a basic guide to publishing content using GitHub's gh-pages feature.</dd> - <dt> - <h3 id="How_do_you_host_your_website_on_Google_App_Engine"><a href="/en-US/Learn/Common_questions/How_do_you_host_your_website_on_Google_App_Engine">How do you host your website on Google App Engine?</a></h3> - </dt> - <dd>Looking for a place to host your website? Here's a step-by-step guide to hosting your website on Google App Engine.</dd> - <dt> - <h3 id="What_tools_are_available_to_debug_and_improve_website_performance"><a href="/en-US/docs/Tools/Performance">What tools are available to debug and improve website performance?</a></h3> - </dt> - <dd>This set of articles shows you how to use the Developer Tools in Firefox to debug and improve performance of your website, using the tools to check the memory usage, the JavaScript call tree, the amount of DOM nodes being rendered, and more.</dd> -</dl> - -<h2 id="Design_and_accessibility">Design and accessibility</h2> - -<p>This section lists questions related to aesthetics, page structure, accessibility techniques, etc.</p> - -<dl> - <dt> - <h3 id="How_do_I_start_to_design_my_website"><a href="/en-US/docs/Learn/Common_questions/Thinking_before_coding">How do I start to design my website?</a></h3> - </dt> - <dd>This article covers the all-important first step of every project: define what you want to accomplish with it.</dd> - <dt> - <h3 id="What_do_common_web_layouts_contain"><a href="/en-US/docs/Learn/Common_questions/Common_web_layouts">What do common web layouts contain?</a></h3> - </dt> - <dd>When designing pages for your website, it's good to have an idea of the most common layouts. This article runs thorugh some typical web layouts, looking at the parts that make up each one.</dd> - <dt> - <h3 id="What_is_accessibility"><a href="/en-US/docs/Learn/Common_questions/What_is_accessibility">What is accessibility?</a></h3> - </dt> - <dd>This article introduces the basic concepts behind web accessibility.</dd> - <dt> - <h3 id="How_can_we_design_for_all_types_of_users"><a href="/en-US/docs/Learn/Common_questions/Design_for_all_types_of_users">How can we design for all types of users?</a></h3> - </dt> - <dd>This article provides basic techniques to help you design websites for any kind of user — quick accessibility wins, and other such things.</dd> - <dt> - <h3 id="What_HTML_features_promote_accessibility"><a href="/en-US/docs/Learn/Common_questions/HTML_features_for_accessibility">What HTML features promote accessibility?</a></h3> - </dt> - <dd>This article describes specific features of HTML that can be used to make a web page more accessible to people with different disabilities.</dd> -</dl> - -<h2 id="HTML_CSS_and_JavaScript_questions">HTML, CSS and JavaScript questions</h2> - -<p>For common solutions to HTML/CSS/JavaScript problems, try the following articles:</p> - -<ul> - <li><a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto">Use HTML to solve common problems</a></li> - <li><a href="/en-US/docs/Learn/CSS/Howto">Use CSS to solve common problems</a></li> - <li><a href="/en-US/docs/Learn/JavaScript/Howto">Use JavaScript to solve common problems</a></li> -</ul> diff --git a/files/tr/learn/common_questions/what_are_browser_developer_tools/index.html b/files/tr/learn/common_questions/what_are_browser_developer_tools/index.html deleted file mode 100644 index 685317a3fa..0000000000 --- a/files/tr/learn/common_questions/what_are_browser_developer_tools/index.html +++ /dev/null @@ -1,239 +0,0 @@ ---- -title: Tarayıcı geliştirici araçları nelerdir? -slug: Learn/Common_questions/What_are_browser_developer_tools -translation_of: Learn/Common_questions/What_are_browser_developer_tools -original_slug: Learn/Common_questions/Tarayıcı_geliştirici_araçları_araçları_nelerdir ---- -<div>{{IncludeSubnav("/en-US/Learn")}}</div> - -<div class="summary"> -<p>Günümüzde hemen hemen tüm modern tarayıcılar güçlü ve gelişmiş geliştirici araçlarına sahip. Bu araçlar yüklenmiş durumdaki sayfanın HTML, CSS ve JavaScript kodlarını incelemekten sayfanın istediği asset'lere ve bu asset'lerin yüklenme süresini görebilmeye kadar pek çok işleve sahip. Bu yazıda size kullandığınız tarayıcının geliştirici araçlarının temel işlevlerini öğreneceksiniz.</p> -</div> - -<div class="note"> -<p><strong>Not</strong>: Aşağıdaki örnekleri çalıştırmadan önce <a href="/en-US/Learn/Getting_started_with_the_web">Getting started with the Web</a> yazısında geliştirdiğimiz <a href="http://mdn.github.io/beginner-html-site-scripted/">Beginner's example site</a> adlı web sitesini açmalısınız. Bu siteyi aşağıdaki adımları takip ederken açık tutmalısınız.</p> -</div> - -<h2 id="Tarayıcının_geliştirici_araçlarına_ulaşmak">Tarayıcının geliştirici araçlarına ulaşmak</h2> - -<p>Geliştirici araçları tarayıcınızda aşağıdaki görseldekine benzer bir pencerede bulunmakta:</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16205/DevTools_63_inspector.png" style="border: 1px solid black; display: block; height: 1364px; margin: 0px auto; width: 672px;"></p> - -<p>Peki bu pencereyi nasıl açabiliriz? Bunun üç yolu bulunmakta:</p> - -<ul> - <li><em><strong>Klavye ile:</strong></em> <em><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd></em>, ya da - - <ul> - <li><strong>Internet Explorer ve Edge için: </strong><kbd>F12 </kbd></li> - <li><strong>macOS için: </strong><em><span class="Unicode"><kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I </kbd></span></em></li> - </ul> - </li> - <li><span class="Unicode"><em><strong>Menü çubuğu ile: </strong></em></span> - <ul> - <li><strong>Firefox: </strong>Menu <img alt="" src="https://mdn.mozillademos.org/files/9637/2014-01-10-13-08-08-f52b8c.png" style="height: 16px; width: 16px;"> <span class="Unicode"><em><span class="Unicode">➤ Web Developer </span></em><em><span class="Unicode">➤ Toggle Tools, </span></em><span class="Unicode">ya da </span><em>Tools ➤</em></span><em> Web Developer ➤ Toggle Tools</em></li> - <li><strong>Chrome:</strong> <em><span class="Unicode">More tools</span> ➤ Developer tools</em></li> - <li><strong>Safari:</strong> <em><span class="Unicode">Develop ➤</span> Show Web Inspector.</em> Eğer Develop menüsünü göremiyorsanız, <em>Safari<span class="Unicode"> ➤</span> Preferences ➤ Advanced</em>, ve son olarak menü çubuğunda <em>Show Develop</em> seçeneğini işaretleyin.</li> - <li><strong>Opera</strong>: <em><span class="Unicode">Developer ➤</span> Developer tools</em></li> - </ul> - </li> - <li><strong><em>Bağlam menüsü ile:</em></strong> Web sayfasındaki bir öğenin üstünde sağ tıkladıktan (Mac için Ctrl-click), sonra açılan menüden <em>Inspect Element </em>seçeneğini seçin. (Bu yöntemin en büyük avantajı açılan pencerede seçilen kodu vurgulaması.)</li> -</ul> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16206/inspector_context.png" style="display: block; height: 232px; margin: 0px auto; width: 350px;"></p> - -<h2 id="Inspector_DOM_kaşifi_ve_CSS_editörü">Inspector: DOM kaşifi ve CSS editörü</h2> - -<p>Geliştirici araçları genelde varsayılan olarak Inspector penceresini, aşağıdaki görseldekine benzer şekilde, açar. Bu araç bulunduğunuz sayfanın o anki HTML kodunu ve o koda uygulanan CSS kodlarını gösterir. Ayrıca gösterilen kodları düzenleyebilmenizi ve canlı olarak bu değişimleri görebilmenizi sağlar.</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16208/inspector_highlighted.png" style="border-style: solid; border-width: 1px; display: block; height: 509px; margin: 0px auto; width: 672px;"></p> - -<p>Eğer inpector penceresini göremiyorsanız,</p> - -<ul> - <li><em>Inspector</em> sekmesine tıklayın/dokunun.</li> - <li>Internet Explorer kullanıyorsanız <em>DOM Explorer</em>'a tıklayın/dokunun ya da <kbd>Ctrl</kbd> + <kbd>1</kbd> tuşlarına basın.</li> - <li>Microsoft Edge ya da Opera kullanıyorsanız Elements'e tıklayın/dokunun.</li> - <li>Safari kullanıyorsanız kontroller çok açık olmayabilir, fakat eğer başka bir seçeneği seçmediyseniz HTML kodunu görebilmeniz gerek. CSS kodlarını görmek için <em>Style</em> butonuna tıklayın.</li> -</ul> - -<h3 id="DOM_inspector'ünü_keşfetmek">DOM inspector'ünü keşfetmek</h3> - -<p>Başlangıç olarak DOM inspector'deki herhangi bir HTML öğesine sağ tıklayın ve açılan bağlam menüsüne göz atın. Mevcut seçenekler tarayıcıdan tarayıcıya değişiklik gösterebilse de başlıca seçenekler hemen hemen her tarayıcıda aynıdır:</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16209/dom_inspector.png" style="border: 1px solid black; display: block; height: 320px; margin: 0px auto; width: 350px;"></p> - -<ul> - <li><strong>Delete Node</strong> (bazen <em>Delete Element</em>). Seçili öğeyi siler.</li> - <li><strong>Edit as HTML</strong> (bazen <em>Add attribute</em>/<em>Edit text</em>). Seçili HTML öğesini düzenleyebilmenizi ve sonuçlarını canı olarak görebilmenizi sağlar. Debugging ve test yapmak için oldukça kullanışlı bir özellikdir.</li> - <li><strong>:hover/:active/:focus</strong>. Seçilen öğenin tasarımının nasıl değişeceğine göz atabilmeniz için öğe için seçilen durumu açık duruma getirir.</li> - <li><strong>Copy/Copy as HTML</strong>. Seçilen HTML kodunu kopyalar.</li> - <li>Bazı tarayıcılar Copy CSS Path ve Copy XPath seçeneklerine de sahiptir. Bu seçenekler o anki HTML öğesini seçecek CSS işaretçisini ya da XPath ifadesini kopyalayabilmenizi sağlar.</li> -</ul> - -<p>Şimdi elinizdeki DOM yapısını düzenlemeyi deneyin. Öncelikle bir öğenin üstünde çift tıklayın, ya da sağ tıklayıp Edit as HTML seçeneğini seçin. Sonrasında seçtiğiniz öğeyi istediğiniz gibi düzenleyebilirsiniz fakat unutmayınki bu değişiklikler kalıcı değildir.</p> - -<h3 id="CSS_editörünü_keşfetmek">CSS editörünü keşfetmek</h3> - -<p>Varsayılan olarak CSS editörü seçili öğeye uygulanan CSS kurallarını gösterir:</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16211/CSS_Inspector.png" style="border: 1px solid black; display: block; height: 281px; margin: 0px auto; width: 500px;"></p> - -<p>CSS editörünün pek çok kullanışlı özelliği var:</p> - -<ul> - <li>Öğeye uygulanan kurallar öğe için en spesifik olandan en az spesifik olana doğru sıralanır.</li> - <li>Deklarasyonların yanındaki kutucuklara tıklayarak o deklarasyonun kaldırılması durumunda ne olacağını görebilirsiniz.</li> - <li>Kısaltılmış özelliklerin yanlarındaki ok işaretlerine tıklayarak uzun hallerini görebilirsiniz.</li> - <li>Özellik isimlerine ya da değerlere tıklarsanız bir metin kutusu açılacaktır. Bu metin kutusunda yeni değerler ekleyebilir ve canlı olarak oluşacak tasarımı görebilirsiniz.</li> - <li>Her kuralın yanında kuralın dosya adı ve bulunduğu satır numarası bulunmakta. Kurala tıklamanız durumunda geliştirici aracı sizin için kural dosyasını açacaktır. Bu dosyada kuralları düzenleyebilir ve kaydedebilirsiniz.</li> - <li>Kuralların süslü parantezlerinden kapatma parantezine tıklayarak yeni deklarasyonlar yazabileceğiniz bir metin kutusunu açabilirisiniz.</li> -</ul> - -<p>CSS Viewer üzerinde tıklayabileceğiniz bir kaç sekme görebilirsiniz:</p> - -<ul> - <li><em>Computed</em>: Bu sekme size seçili öğenin hesaplanmış son tasarımını (tarayıcın öğeye uyguladığı son veriler ile) gösterir.</li> - <li><em>Layout</em>: Firefox'da bu alan iki bölümden oluşur: - <ul> - <li><em>Box Model</em>: Seçili öğenin box modelini görsel bir şekilde temsil eder. Bu modelde öğenin sahip olduğu pading, border ve margin değerlerini ve öğenin büyüklüğünü görebilirsiniz.</li> - <li><em>Grid</em>: Eğer inceledeğiniz sayfa CSS grid yapısını kullanıyorsa bu yapının detaylarını gösterir.</li> - </ul> - </li> - <li><em>Fonts</em>: Firefox'da <em>Fonts </em>sekmesi seçili öğede kullanılan fontları gösterir.</li> -</ul> - -<h3 id="Daha_fazlası_için">Daha fazlası için</h3> - -<p>Farklı tarayıcıların Inspector'larını keşfedin:</p> - -<ul> - <li><a href="https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector">Firefox Page inspector</a></li> - <li><a href="http://msdn.microsoft.com/en-us/library/ie/dn255008%28v=vs.85%29.aspx">IE DOM Explorer</a></li> - <li><a href="https://developer.chrome.com/devtools/docs/dom-and-styles">Chrome DOM inspector</a> (Opera'da da aynı şekilde çalışmaktadır.)</li> - <li><a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/ResourcesandtheDOM/ResourcesandtheDOM.html#//apple_ref/doc/uid/TP40007874-CH3-SW1">Safari DOM inspector and style explorer</a></li> -</ul> - -<h2 id="JavaScript_debugger'ı">JavaScript debugger'ı</h2> - -<p>JavaScript debugger, kodunuzdaki problemleri belirleyebilmek için kodun çalışması sırasında beklemesini istediğiniz noktalarda değişkenlerin değerlerini gözlemleyebilme ve breakpointler atayabilme olanağı sağlar.</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16239/firefox_debugger.png" style="border: 1px solid black; display: block; height: 556px; margin: 0 auto; width: 672px;"></p> - -<p>Debugger'a erişmek için:</p> - -<p><strong>Firefox</strong>: JavaScript debugger için, <img alt="" src="https://mdn.mozillademos.org/files/9637/2014-01-10-13-08-08-f52b8c.png" style="height: 16px; width: 16px;"> Simgesine tıkla ➤ <em>Web Developer</em> ➤ <em>Debugger</em> ya da <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd> tuşlarına bas. Eğer geliştirici araçları açık durumdaysa <strong>Debugger </strong>sekmesine tıkla.</p> - -<p><strong>Chrome</strong>: Geliştirici araçlarını aç ve <strong>S</strong><strong>ources </strong>sekmesine tıkla. (Opera'da da aynı yöntem geçerli.)</p> - -<p><strong>Edge ve Internet Explorer 11</strong>: <kbd>F12</kbd> tuşuna bastıktan sonra <kbd>Ctrl</kbd> + <kbd>3</kbd> tuşlarına basın. Eğer geliştirici araçları açık durumda ise Debugger sekmesine tıklayın.</p> - -<p><strong>Safari</strong>: Geliştirici araçlarını açtıktan sonra Debugger sekmesini tıklayın.</p> - -<h3 id="Debugger'ı_keşfetmek">Debugger'ı keşfetmek</h3> - -<p>Firefox'da JavaScript Debugger üç bölümden oluşmaktadır.</p> - -<h4 id="Dosya_Listesi">Dosya Listesi</h4> - -<p>Soldaki ilk bölmemiz bize debug ettiğiniz sayfa ile ilgili dosyaları listelemektedir. Üzerinde çalışmak istediğiniz dosyayı seçebilirsiniz. Bir dosyanın üstüne tıklayarak içeriğini Debugger'ın orta bölümünde görüntüleyebilirsiniz.</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16240/File_List.png" style="border: 1px solid black; display: block; height: 326px; margin: 0 auto; width: 350px;"></p> - -<h4 id="Kaynak_Kodu">Kaynak Kodu</h4> - -<p>Kodun çalışmasını durdurmak istediğiniz yere breakpoint atayabilirsiniz. Görseldeki kodun 18 numaralı satırının vurgulanması bu satıra bir breakpoint atandığını göstermektedir.</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16241/Source_code.png" style="border: 1px solid black; display: block; height: 251px; margin: 0 auto; width: 400px;"></p> - -<h4 id="Watch_expression'ları_ve_breakpoint'ler">Watch expression'ları ve breakpoint'ler</h4> - -<p>Sağdaki bölmede eklediğiniz watch expression'ların ve atadığınız breakpoint'lerin listesini görebilirsiniz.</p> - -<p>Görseldeki ilk kısım,<strong> Watch expression</strong>, listItems adlı bir değişkenin eklendiğini gösteriyor. Listeyi genişleterek dizinin içindeki değerlere göz atabilirsiniz.</p> - -<p>Bir sonraki kısım , <strong>Breakpoints</strong>, sayfaya atanmış breakpoint'leri listelemekte. Örnekteki example.js dosyasında <code>listItems.push(inputNewItem.value);</code> adlı ifadeye bir breakpoint atandığını görüyoruz.</p> - -<p>Son iki kısım sadece kod çalışıyorken görünmektedirler.</p> - -<p><strong>Call stack</strong> kısmı o anki satıra kadar çalışmış olan kodu göstermektedir. Örnekte kodun fare tıklamasını ele alan bir fonksiyon içinde olduğunu ve o an bir breakpoint'te beklediğini görebilirsiniz.</p> - -<p>Son kısım, <strong>Scopes</strong>, kodun farklı noktalarından hangi değerlerin görünür durumda olduğunu gösterir. Mesela, aşağıdaki resimde addItemClick fonksiyonun kodu için mevcut durumda kullanılabilecek nesneleri görebilirsiniz.</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16242/watch_items.png" style="border: 1px solid black; display: block; height: 743px; width: 350px;"></p> - -<h3 id="Daha_fazlası_için_2">Daha fazlası için</h3> - -<p>Farklı tarayıcıların JavaScript debugger'larını keşfedin:</p> - -<ul> - <li><a href="/en-US/docs/Tools/Debugger">Firefox JavaScript Debugger</a></li> - <li><a href="https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide/debugger">Microsoft Edge Debugger</a></li> - <li><a href="https://developers.google.com/web/tools/chrome-devtools/javascript/">Chrome Debugger</a></li> - <li><a href="https://developer.apple.com/safari/tools/">Safari Debugger</a></li> -</ul> - -<h2 id="JavaScript_konsolu">JavaScript konsolu</h2> - -<p>JavaScript konsolu, düzgün çalışmayan JavaScript kodlarınının debug edilmesi için harika bir araçtır. JavaScript konsolu yüklenmiş durumdaki sayfada JavaScript kodu çalıştırabilmenizi ve oluşan hataları görebilmenizi sağlar. Bu konsola ulaşabilmek:</p> - -<p>Eğer geliştirici araçları açık durumda ise Console sekmesine tıklayın.</p> - -<p>Diğer durumlarda Firefox <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>K</kbd> tuşları ile JavaScript konsolunu açabilmenize imkan tanır. Bir diğer yöntem ise menü komutlarını kullanmak: Menu <img alt="" src="https://mdn.mozillademos.org/files/9637/2014-01-10-13-08-08-f52b8c.png" style="height: 16px; width: 16px;"> <span class="Unicode"><em><span class="Unicode">➤ Web Developer </span></em><em><span class="Unicode">➤ Web Console, </span></em><span class="Unicode">ya da </span><em>Tools ➤</em></span><em> Web Developer ➤ Web Console. </em>Diğer tarayıcılarda<em> </em>JavaScript konsoluna ulaşmak için önce<em> </em>geliştirici araçlarını açıp sonra Console sekmesine tıklayabilirsiniz.</p> - -<p>Bu yöntemlerin sonucun görseldekine benzer bir pencere göreceksiniz:</p> - -<p><img alt="" src="https://mdn.mozillademos.org/files/16212/console_only.png" style="border: 1px solid black; display: block; height: 187px; margin: 0px auto; width: 672px;"></p> - -<p>Konsolun ne yapabildiğini görmek için örnekteki kod parçacıklarını konsolunuzda teker teker deneyin:</p> - -<ol> - <li> - <pre class="brush: js">alert('hello!');</pre> - </li> - <li> - <pre class="brush: js">document.querySelector('html').style.backgroundColor = 'purple';</pre> - </li> - <li> - <pre class="brush: js">var myImage = document.createElement('img'); -myImage.setAttribute('src','https://blog.mozilla.org/press/wp-content/themes/OneMozilla/img/mozilla-wordmark.png'); -document.querySelector('h1').appendChild(myImage);</pre> - </li> -</ol> - -<p>Şimdi de kodların hatalı örneklerini deneyin ve neler elde edeceğinizi görün.</p> - -<ol> - <li> - <pre class="brush: js">alert('hello!);</pre> - </li> - <li> - <pre class="brush: js">document.cheeseSelector('html').style.backgroundColor = 'purple';</pre> - </li> - <li> - <pre class="brush: js">var myImage = document.createElement('img'); -myBanana.setAttribute('src','https://blog.mozilla.org/press/wp-content/themes/OneMozilla/img/mozilla-wordmark.png'); -document.querySelector('h1').appendChild(myImage);</pre> - </li> -</ol> - -<p>Tarayıcınız hata döndürmeye başladığını göreceksiniz. Bu hatalar çoğu zaman çok açık ifadeler döndürmeselerde elinizdeki problemleri çözmek için yeterli olacaklardır.</p> - -<h3 id="Daha_fazlası_için_3">Daha fazlası için</h3> - -<p>Farklı tarayıcıların JavaScript konsollarını keşfedin:</p> - -<ul> - <li><a href="https://developer.mozilla.org/en-US/docs/Tools/Web_Console">Firefox Web Console</a></li> - <li><a href="http://msdn.microsoft.com/en-us/library/ie/dn255006%28v=vs.85%29.aspx">IE JavaScript console</a></li> - <li><a href="https://developer.chrome.com/devtools/docs/console">Chrome JavaScript Console</a> (Opera'nın inspector'ü aynı şekilde çalışmakta)</li> - <li><a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html#//apple_ref/doc/uid/TP40007874-CH6-SW1">Safari Console</a></li> -</ul> - -<h2 id="Ayrıca_bakınız">Ayrıca bakınız</h2> - -<ul> - <li><a href="/en-US/docs/Learn/HTML/Introduction_to_HTML/Debugging_HTML">Debugging HTML</a></li> - <li><a href="/en-US/docs/Learn/CSS/Introduction_to_CSS/Debugging_CSS">Debugging CSS</a></li> -</ul> |