Hirdetés
- Öszvér módszerrel veszi fel a harcot a memóriapánikkal szemben az ASRock
- XL-esre gyúrta magát a Fractal Design tágas háza
- Mi a labubu? – és pár fontos dolog, amire idén rágugliztál
- Olyan erőre tettek szert a böngészők, ami átformálhatja a piacot
- Az ötlet jó, de milyen a kivitelezés? Teszten a Chieftec Kockája
- Az ötlet jó, de milyen a kivitelezés? Teszten a Chieftec Kockája
- Kormányok / autós szimulátorok topikja
- Rémisztő árakkal szembesülnek a notebookgyártók az új mobil platformoknál
- TCL LCD és LED TV-k
- Egérpad topik
- AMD Navi Radeon™ RX 9xxx sorozat
- AMD Navi Radeon™ RX 5xxx sorozat
- Apple asztali gépek
- NVIDIA GeForce RTX 5080 / 5090 (GB203 / 202)
- AMD Navi Radeon™ RX 7xxx sorozat
-
PROHARDVER!
JavaScript != Java (A JavaScript nem összekeverendő a Javával, két különböző programozási nyelvről van szó!)
Új hozzászólás Aktív témák
-
Jim-Y
veterán
válasz
Sk8erPeter
#5127
üzenetére
BRENDAN: ... But long story short, there was an idea in JavaScript that I was pursuing, and maybe a few others saw it, too, of a language that wasn’t C-like. It was easy to use. It was meant for people who were building things inductively. They were learning programming for the first time. And they didn’t necessarily have to know where semicolons had to go, or even curly braces. I lost the curly brace front. On the semicolon front I said, “It’s ridiculous to reject a program because of a missing semicolon. We should do some kind of error correction procedure.” So, I made one up on the spot and that became automatic semicolon push.
[Laughter]
CHUCK: I kind of hacked this in and it stayed.
BRENDAN: Yup.
AARON: That’s awesome.
JOE: And 15 years later, people are still fighting over it.
JAMISON: That’s every programmer’s nightmare, right?
CHUCK: It’s so true.
JAMISON: Just the hack [inaudible] that you made.
AJ: I felt a sudden tremor in the force as if a thousand semicolons suddenly screwed up everything.
[Laughter]
BRENDAN: Yeah, there are definitely some issues there. But in fact, I remember Jamie Zawinski was writing some JavaScript and he had a long return expression so he put it on the next line with no semicolon after the return. And he was outraged that ASI would insert a semicolon after the return making the ‘return’ return the undefined value and the next line becomes dead code, a useless expression. It’s unreachable in the control flow of that function. He was totally outraged. [Laughs] But I said, “It’s too late. I can’t change it.” Once you ship things on the web, it’s very hard to change it.
Új hozzászólás Aktív témák
- Bomba ár! Dell Latitude 3500 - i5-8GEN I 8GB I 256SSD I HDMI I 15,6" FHD I Cam I W11 I Gar!
- BESZÁMÍTÁS! ASUS H510M i5 10500 16GB DDR4 512GB SSD RTX 2060 Super 8GB Zalman T4 Plus ADATA 600W
- BESZÁMÍTÁS! ASRock B450M R5 5600X 16GB DDR4 512GB SSD RX 5700 XT 8GB Thermaltake VersaH17 ADATA 650W
- HP ProBook 650 G8 Intel i5-1145G7 16GB 512GB magyarbill 1 év garancia
- LG 43NANO763QA 108 cm / 43 4K UHD NanoCell Smart TV 6 hó garancia Házhozszállítás
Állásajánlatok
Cég: ATW Internet Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


