-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
540 lines (500 loc) · 18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Programlama Dilleri</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="programlama-dilleri/package.json">
<link rel="stylesheet" href="programlama-dilleri/src/assets/styles/variables.scss">
<link rel="stylesheet" href="programlama-dilleri/src/assets/styles/main.scss">
<script src="script.js" defer>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('nav a').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const sectionId = this.getAttribute('href');
const section = document.querySelector(sectionId);
section.scrollIntoView({ behavior: 'smooth' });
});
});
});
const sections = document.querySelectorAll('section');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
sections.forEach(section => {
section.style.opacity = '0';
section.style.transform = 'translateY(20px)';
observer.observe(section);
});
document.addEventListener('scroll', () => {
sections.forEach(section => {
section.style.opacity = '0';
section.style.transform = 'translateY(20px)';
});
});
const header = document.querySelector('header');
const nav = document.querySelector('nav');
const footer = document.querySelector('footer');
const headerHeight = header.offsetHeight;
const navHeight = nav.offsetHeight;
const sectionsHeight = Array.from(sections).reduce((acc, section) => acc + section.offsetHeight, 0);
const footerHeight = footer.offsetHeight;
window.scrollTo({ top: headerHeight + navHeight + sectionsHeight + footerHeight, behavior: 'smooth' });
</script>
</head>
<body>
<header>
<h1>Popüler Programlama Dilleri</h1>
<nav>
<ul>
<li><a href="#python">Python</a></li>
<li><a href="#javascript">JavaScript</a></li>
<li><a href="#java">Java</a></li>
<li><a href="#cpp">C++</a></li>
<li><a href="#csharp">C#</a></li>
<li><a href="#swift">Swift</a></li>
<li><a href="#kotlin">Kotlin</a></li>
<li><a href="#ruby">Ruby</a></li>
<li><a href="#pascal">Pascal</a></li>
<li><a href="#basic">BASIC</a></li>
<li><a href="#cobol">COBOL</a></li>
<li><a href="#perl">Perl</a></li>
<li><a href="#ada">Ada</a></li>
<li><a href="#fortran">Fortran</a></li>
<li><a href="#delphi">Delphi</a></li>
</ul>
</nav>
</header>
<main>
<section id="python">
<h2>Python</h2>
<article>
<h3>Python Hakkında</h3>
<p>Python, öğrenmesi kolay ve çok yönlü bir programlama dilidir. Veri bilimi, yapay zeka ve web geliştirme gibi alanlarda yaygın olarak kullanılır.</p>
<ul>
<li>Kolay okunabilir sözdizimi</li>
<li>Zengin kütüphane desteği</li>
<li>Geniş kullanım alanı</li>
</ul>
<div class="code-example">
<h4>Python Sözdizimi Örneği:</h4>
<pre><code class="language-python">
# Basit bir Python fonksiyonu
def selamla(isim):
return f"Merhaba {isim}!"
# Liste işlemleri
sayilar = [1, 2, 3, 4, 5]
kareler = [x**2 for x in sayilar]
# Sınıf tanımlama
class Kullanici:
def __init__(self, isim, yas):
self.isim = isim
self.yas = yas
</code></pre>
</div>
</article>
</section>
<section id="javascript">
<h2>JavaScript</h2>
<article>
<h3>JavaScript Hakkında</h3>
<p>JavaScript, web geliştirmenin temel taşlarından biridir. Hem frontend hem de backend geliştirmede kullanılabilir.</p>
<ul>
<li>Web tarayıcılarında çalışır</li>
<li>Node.js ile sunucu tarafı geliştirme</li>
<li>Dinamik web siteleri oluşturma</li>
</ul>
<div class="code-example">
<h4>JavaScript Sözdizimi Örneği:</h4>
<pre><code class="language-javascript">
// Modern JavaScript özellikleri
const selamla = (isim) => {
return `Merhaba ${isim}!`;
};
// Dizi metodları
const sayilar = [1, 2, 3, 4, 5];
const kareler = sayilar.map(sayi => sayi ** 2);
// Class tanımlama
class Kullanici {
constructor(isim, yas) {
this.isim = isim;
this.yas = yas;
}
}
</code></pre>
</div>
</article>
</section>
<section id="java">
<h2>Java</h2>
<article>
<h3>Java Hakkında</h3>
<p>Java, kurumsal uygulamalar ve Android uygulama geliştirmede yaygın olarak kullanılan güçlü bir dildir.</p>
<ul>
<li>Platform bağımsız çalışma</li>
<li>Nesne yönelimli programlama</li>
<li>Güvenli ve güvenilir</li>
</ul>
<div class="code-example">
<h4>Java Sözdizimi Örneği:</h4>
<pre><code class="language-java">
public class Ornek {
public String selamla(String isim) {
return "Merhaba " + isim + "!";
}
// Ana method
public static void main(String[] args) {
ArrayList<Integer> sayilar = new ArrayList<>();
sayilar.add(1);
sayilar.add(2);
sayilar.add(3);
}
}
</code></pre>
</div>
</article>
</section>
<section id="cpp">
<h2>C++</h2>
<article>
<h3>C++ Hakkında</h3>
<p>C++, yüksek performanslı uygulamalar ve sistem programlama için tercih edilen bir dildir.</p>
<ul>
<li>Hızlı çalışma zamanı</li>
<li>Donanıma yakın programlama</li>
<li>Oyun geliştirmede yaygın kullanım</li>
</ul>
<div class="code-example">
<h4>C++ Sözdizimi Örneği:</h4>
<pre><code class="language-cpp">
#include <iostream>
#include <vector>
using namespace std;
class Ornek {
public:
string selamla(string isim) {
return "Merhaba " + isim + "!";
}
};
int main() {
vector<int> sayilar = {1, 2, 3, 4, 5};
for(int sayi : sayilar) {
cout << sayi << endl;
}
return 0;
}
</code></pre>
</div>
</article>
</section>
<section id="csharp">
<h2>C#</h2>
<article>
<h3>C# Hakkında</h3>
<p>C#, Microsoft tarafından geliştirilen modern ve nesne yönelimli bir programlama dilidir. Windows uygulamaları ve oyun geliştirmede popülerdir.</p>
<ul>
<li>.NET platformu ile tam entegrasyon</li>
<li>Unity oyun motoru desteği</li>
<li>Güçlü tip sistemi ve modern özellikler</li>
</ul>
<div class="code-example">
<h4>C# Sözdizimi Örneği:</h4>
<pre><code class="language-csharp">
using System;
using System.Collections.Generic;
public class Program {
public string Selamla(string isim) {
return $"Merhaba {isim}!";
}
public static void Main() {
var sayilar = new List<int> { 1, 2, 3, 4, 5 };
sayilar.ForEach(Console.WriteLine);
}
}
</code></pre>
</div>
</article>
</section>
<section id="swift">
<h2>Swift</h2>
<article>
<h3>Swift Hakkında</h3>
<p>Swift, Apple tarafından iOS ve macOS uygulamaları geliştirmek için tasarlanmış modern bir programlama dilidir.</p>
<ul>
<li>Hızlı ve güvenli performans</li>
<li>iOS ve macOS uygulama geliştirme</li>
<li>Modern sözdizimi ve güvenlik özellikleri</li>
</ul>
<div class="code-example">
<h4>Swift Sözdizimi Örneği:</h4>
<pre><code class="language-swift">
// Swift fonksiyon
func selamla(isim: String) -> String {
return "Merhaba \(isim)!"
}
// Dizi işlemleri
let sayilar = [1, 2, 3, 4, 5]
let kareler = sayilar.map { $0 * $0 }
// Class tanımlama
class Kullanici {
var isim: String
var yas: Int
init(isim: String, yas: Int) {
self.isim = isim
self.yas = yas
}
}
</code></pre>
</div>
</article>
</section>
<section id="kotlin">
<h2>Kotlin</h2>
<article>
<h3>Kotlin Hakkında</h3>
<p>Kotlin, JetBrains tarafından geliştirilen ve Android uygulama geliştirmede tercih edilen modern bir programlama dilidir.</p>
<ul>
<li>Java ile tam uyumluluk</li>
<li>Android geliştirme için resmi dil</li>
<li>Daha az kod yazarak daha çok iş yapma</li>
</ul>
<div class="code-example">
<h4>Kotlin Sözdizimi Örneği:</h4>
<pre><code class="language-kotlin">
// Kotlin fonksiyon
fun selamla(isim: String): String {
return "Merhaba $isim!"
}
// Liste işlemleri
val sayilar = listOf(1, 2, 3, 4, 5)
val kareler = sayilar.map { it * it }
// Data class
data class Kullanici(
val isim: String,
val yas: Int
)
</code></pre>
</div>
</article>
</section>
<section id="ruby">
<h2>Ruby</h2>
<article>
<h3>Ruby Hakkında</h3>
<p>Ruby, basit ve zarif sözdizimi ile tanınan, web geliştirme için popüler bir programlama dilidir.</p>
<ul>
<li>Ruby on Rails framework'ü</li>
<li>Temiz ve okunabilir kod yapısı</li>
<li>Zengin gem (paket) ekosistemi</li>
</ul>
<div class="code-example">
<h4>Ruby Sözdizimi Örneği:</h4>
<pre><code class="language-ruby">
# Ruby method
def selamla(isim)
"Merhaba #{isim}!"
end
# Dizi işlemleri
sayilar = [1, 2, 3, 4, 5]
kareler = sayilar.map { |x| x ** 2 }
# Sınıf tanımlama
class Kullanici
def initialize(isim, yas)
@isim = isim
@yas = yas
end
end
</code></pre>
</div>
</article>
</section>
<section id="pascal">
<h2>Pascal</h2>
<article>
<h3>Pascal Hakkında</h3>
<p>Pascal, eğitim amaçlı olarak geliştirilmiş, yapısal programlama paradigmasını destekleyen bir programlama dilidir.</p>
<ul>
<li>Güçlü tip sistemi</li>
<li>Kolay okunabilir sözdizimi</li>
<li>Yapısal programlama desteği</li>
</ul>
<div class="code-example">
<h4>Pascal Sözdizimi Örneği:</h4>
<pre><code class="language-pascal">
program HelloWorld;
var
name: string;
begin
writeln('İsminizi girin:');
readln(name);
writeln('Merhaba ', name, '!');
end.
</code></pre>
</div>
</article>
</section>
<section id="basic">
<h2>BASIC</h2>
<article>
<h3>BASIC Hakkında</h3>
<p>BASIC, başlangıç seviyesindeki programcılar için tasarlanmış, öğrenmesi kolay bir programlama dilidir.</p>
<ul>
<li>Basit sözdizimi</li>
<li>Yorumlanan dil</li>
<li>Eğitim odaklı tasarım</li>
</ul>
<div class="code-example">
<h4>BASIC Sözdizimi Örneği:</h4>
<pre><code class="language-basic">
10 PRINT "İsminizi girin:"
20 INPUT NAME$
30 PRINT "Merhaba "; NAME$
40 END
</code></pre>
</div>
</article>
</section>
<section id="cobol">
<h2>COBOL</h2>
<article>
<h3>COBOL Hakkında</h3>
<p>COBOL, iş dünyası için geliştirilmiş, veri işleme odaklı bir programlama dilidir.</p>
<ul>
<li>İş odaklı sözdizimi</li>
<li>Güçlü veri işleme yetenekleri</li>
<li>Mainframe sistemlerle uyumluluk</li>
</ul>
<div class="code-example">
<h4>COBOL Sözdizimi Örneği:</h4>
<pre><code class="language-cobol">
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 NAME PIC X(30).
PROCEDURE DIVISION.
DISPLAY "İsminizi girin:".
ACCEPT NAME.
DISPLAY "Merhaba " NAME.
STOP RUN.
</code></pre>
</div>
</article>
</section>
<section id="perl">
<h2>Perl</h2>
<article>
<h3>Perl Hakkında</h3>
<p>Perl, metin işleme ve sistem yönetimi için güçlü özelliklere sahip bir programlama dilidir.</p>
<ul>
<li>Güçlü metin işleme</li>
<li>Regular expression desteği</li>
<li>Sistem yönetimi araçları</li>
</ul>
<div class="code-example">
<h4>Perl Sözdizimi Örneği:</h4>
<pre><code class="language-perl">
#!/usr/bin/perl
use strict;
use warnings;
print "İsminizi girin: ";
my $name = <STDIN>;
chomp $name;
print "Merhaba $name!\n";
</code></pre>
</div>
</article>
</section>
<section id="ada">
<h2>Ada</h2>
<article>
<h3>Ada Hakkında</h3>
<p>Ada, güvenilirlik ve güvenlik odaklı, askeri ve havacılık uygulamaları için geliştirilmiş bir dildir.</p>
<ul>
<li>Güçlü tip kontrolü</li>
<li>Paralel programlama desteği</li>
<li>Yüksek güvenilirlik</li>
</ul>
<div class="code-example">
<h4>Ada Sözdizimi Örneği:</h4>
<pre><code class="language-ada">
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
Name : String(1..30);
Last : Natural;
begin
Put_Line("İsminizi girin:");
Get_Line(Name, Last);
Put_Line("Merhaba " & Name(1..Last) & "!");
end Hello;
</code></pre>
</div>
</article>
</section>
<section id="fortran">
<h2>Fortran</h2>
<article>
<h3>Fortran Hakkında</h3>
<p>Fortran, bilimsel hesaplamalar için geliştirilmiş ilk yüksek seviyeli programlama dilidir.</p>
<ul>
<li>Bilimsel hesaplama optimizasyonu</li>
<li>Matris işlemleri desteği</li>
<li>Yüksek performans</li>
</ul>
<div class="code-example">
<h4>Fortran Sözdizimi Örneği:</h4>
<pre><code class="language-fortran">
program hello
implicit none
character(len=30) :: name
print *, "İsminizi girin:"
read *, name
print *, "Merhaba ", trim(name), "!"
end program hello
</code></pre>
</div>
</article>
</section>
<section id="delphi">
<h2>Delphi</h2>
<article>
<h3>Delphi Hakkında</h3>
<p>Delphi, hızlı uygulama geliştirme için tasarlanmış, Pascal tabanlı bir programlama dilidir.</p>
<ul>
<li>Görsel programlama araçları</li>
<li>Hızlı uygulama geliştirme</li>
<li>Veritabanı entegrasyonu</li>
</ul>
<div class="code-example">
<h4>Delphi Sözdizimi Örneği:</h4>
<pre><code class="language-delphi">
program HelloWorld;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
name: string;
begin
Write('İsminizi girin: ');
ReadLn(name);
WriteLn('Merhaba ' + name + '!');
ReadLn;
end.
</code></pre>
</div>
</article>
</section>
</main>
<footer>
<p>© 2024 Programlama Dilleri Rehberi - Tüm hakları saklıdır.</p>
</footer>
</body>
</html>