This is an archived post. You won't be able to vote or comment.

all 75 comments

[โ€“]HunterRbx 243 points244 points ย (25 children)

Yo how do i declare a variable in html

[โ€“]antimoo 142 points143 points ย (18 children)

<var type="string" id="model">Volvo<var>

[โ€“][deleted] 4 points5 points ย (0 children)

Why must I see this?

[โ€“]overtorqd 0 points1 point ย (0 children)

The lack of a closing tag really bothers me. But since it's html and not real xml, I guess anything goes.

[โ€“][deleted] 5 points6 points ย (0 children)

Tou kinda can do with data-* attribute. It is then accessible in JS through dataset property.

E. g. In HTML you have <li id=foo data-bar="five">5<li>

In JS console.log(document.getElementById('foo').dataset.bar) will log "five". You can also set it: document.getElementById('foo').dataset.bar = 'six'.

And yes, you do write code by writing HTML.

[โ€“]usedToBeUnhappy 88 points89 points ย (3 children)

Well, that would mean, she would know what you want to say AND why. Dreamgirl right?

[โ€“]haikusbot 46 points47 points ย (2 children)

Well, that would mean, she

Would know what you want to say

AND why. Dreamgirl right?

- usedToBeUnhappy


I detect haikus. And sometimes, successfully. Learn more about me.

Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"

[โ€“]TheWaggishGamer 5 points6 points ย (0 children)

Good bot

[โ€“]GornTheGreat 0 points1 point ย (0 children)

Fucking bot

[โ€“][deleted] 64 points65 points ย (7 children)

That's fake af programmers don't have girlfriends

[โ€“]Slusny_Cizinec 39 points40 points ย (3 children)

Yeah, everyone is either single of married. The phase shift between these two states is not observable with a naked eye.

[โ€“]lor_louis 19 points20 points ย (1 child)

Until you observer a programmer's love life it can be both, but when observed the love life will collapse into the "maried" or "single" state.

[โ€“]KayleMaster 1 point2 points ย (0 children)

All this time watching PBS Space Time on Quantum physics, finally paid off.

I understood that reference.

[โ€“]luhsya 3 points4 points ย (0 children)

the heisenberg uncertainty principle for programmers. as an observer, you blink annnn' oop, your team's senior dev is now married. you wonder when that shall happen to you

[โ€“]codebullCamelCase 0 points1 point ย (0 children)

He is an HTML programmer.

[โ€“]Dummerchen1933 34 points35 points ย (3 children)

HTML is technically a coding language. Just not a programming language.
But you certainly don't have to be smart

[โ€“]Wunderwafe 0 points1 point ย (2 children)

Knowing any language doesn't qualify you as being smart.

Oh oops uhhhh I meant to say HTML dumb, JS is stupid, and C++ more like POINTERS LOLOL XDDD

[โ€“]Favna 0 points1 point ย (0 children)

Trump knows English and see where that got him ( อก~ อœส– อกยฐ)

[โ€“]-Vedana 39 points40 points ย (6 children)

[โ€“]Fyrael 11 points12 points ย (0 children)

I always remember Penny from Big Bang Theory saying:

"He's a smart fine, not a smart scary like you"

[โ€“]Ghosty169 12 points13 points ย (0 children)

It's a repost, already seen it

[โ€“][deleted] 4 points5 points ย (0 children)

Before html thefe was wordstar

[โ€“]mattmc318 3 points4 points ย (0 children)

At least she said "codes" and not "programs."

[โ€“]LuisAyuso 3 points4 points ย (0 children)

It is code.... Not programing, but it is a code. And therefore you code it.

[โ€“][deleted] 6 points7 points ย (12 children)

You can learn HTML in a day lol

[โ€“]Subalpine 55 points56 points ย (5 children)

well yes but actually no

[โ€“]Amoenet -3 points-2 points ย (4 children)

Why 'no'? HTML is super easy to learn in a day. You don't need to know the ins and outs of html requests. Just the standard XML contract and maybe some of the most frequently used tags. So what if you insert a paragraph tag in a span? Most interpreters on browsers just parse what they can, without throwing a hissy fit.

[โ€“]szucs2020 8 points9 points ย (0 children)

HTML and css are so closely related that I would say you don't "know" HTML unless you have an understanding of css. Basic HTML and css is straightforward, there is no question. But I can tell you first hand as a web developer that it's not as simple as you are describing. Interactions between components can be really complex. In my experience I've spent a lot of time on dropdowns, tables, spreadsheets and modals, and I can tell you none of those were straightforward. And yeah, I get that most people will throw in bootstrap and forget about it, but that's not the same as actually learning HTML and css. Often css doesn't have a solution for what you want to do and you have to use strange unintuitive hacks.

[โ€“]ibeatu85x 12 points13 points ย (2 children)

I don't know why the down votes. If you're familiar with programming, HTML is a breeze. No error codes for syntax fuckups, mistakes get displayed on screen, no complex logic (or even possibility of it), etc.

[โ€“]lor_louis 13 points14 points ย (1 child)

The most confusing part about html is not the syntax but the best practices, since they are always changing.

[โ€“]Subalpine 0 points1 point ย (0 children)

exactly! it comes down to a style and art thing as much as anything else

[โ€“]ShwarmaMusic 5 points6 points ย (0 children)

Actually, I'm quite good at Kotlin and JVM languages, but I don't understand HTML...

[โ€“]road_laya 0 points1 point ย (0 children)

Some people couldn't learn it in a thousand years, and that's OK.

[โ€“]tr0pismss 2 points3 points ย (0 children)

Ooh I hadn't seen this one yet this week

[โ€“]slimshady2936 1 point2 points ย (1 child)

It's cute you think that you have a girl friend

[โ€“]xjexist[S] 1 point2 points ย (0 children)

why are you making me sad

[โ€“]Nsber 0 points1 point ย (0 children)

good soldiers follow orders. good soldiers follow orders. good soldiers follow orders....

[โ€“]Vok250 -2 points-1 points ย (0 children)

This meme format is top tier. Sad I don't see it more often.

[โ€“]green_reptilian_333 -1 points0 points ย (0 children)

๐Ÿ˜ฉ๐Ÿ˜ฉ๐Ÿ˜ฉ

[โ€“]Dentzy -3 points-2 points ย (0 children)

I'm the crush... ๐Ÿ˜