Author Topic: Programming Megathread  (Read 143707 times)

I feel like I can look at a lot of coding languages and tell what's going on, but I can't do it myself. :(

I feel like I can look at a lot of coding languages and tell what's going on, but I can't do it myself. :(
maybe if u weren't a tard :^)

maybe if u weren't a tard :^)

confirmed he is tard

i dont understand how webpages function

most seem to use like 5 different languages and it's a cluserforget of fitting them together

even using straight python with html seems loving useless cause you cant do anything with it

i dont understand how webpages function
most seem to use like 5 different languages and it's a cluserforget of fitting them together
HTML: layout & content
CSS: style
JavaScript:........... .... changingness

take this:

<div>
    <p class="big-text">pls don't look at me</p><br>
    <button id="btn">Click here</button>

</div>


that's HTML (not exactly valid, but u know). all it does is stick the text "pls don't look at me" on a blank page, with a button labeled "Click here" on the next line
which is boring. so add CSS

.big-text {
    font-size: 100px;
}


now the text is big
but all it does is sit there, so it's time for JS

document.getElementById('btn').addEventListener('click', function () {
    var p = document.getElementsByTagName('p')[0];
    p.parentElement.removeChild(p);
});


now, when you click on the button, it'll remove the text! probably. I didn't test it

in the end the whole document should look like this

<!DOCTYPE html>
<html>
    <head>
        <style>
            .big-text {
                font-size: 100px;
            }

        </style>
    </head>
    <body>
        <p class="big-text">pls don't look at me</p><br>
        <button id="btn">Click here</button>

       
        <scrip>
            document.getElementById('btn').addEventListener('click', function () {
                var p = document.getElementsByTagName('p')[0];
                p.parentElement.removeChild(p);
            });

        </scrip>
    </body>
</html>


"script" is intentionally misspelled because cloudflare is irritating
(edit: switched to dark colors. looks much better)

idk why I keep making these big long posts
you should go learn it yourself
http://codecademy.com/
« Last Edit: October 29, 2015, 10:52:59 PM by Foxscotch »

you guys forgot malbolge
Code: [Select]
('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>

HTML: layout & content
CSS: style
JavaScript:........... .... changingness
Plus (optionally) a server-side language
That's four.
The closest I can think of to get two five would be using a web framework like asp.net which has all it's asp controls...but that's not a language


HTML: layout & content
CSS: style
JavaScript:........... .... changingness
I'm that person that knows HTML and CSS, and a ton of PHP; but I've got no real experience applying javascript to anything. I guess I've just been so traumatized by big enterprise sites that abuse the forget out of it making their website the laggiest thing in existence. I just don't trust it.

I'm that person that knows HTML and CSS, and a ton of PHP; but I've got no real experience applying javascript to anything. I guess I've just been so traumatized by big enterprise sites that abuse the forget out of it making their website the laggiest thing in existence. I just don't trust it.

Now I know that programmers love to jerk one way or the other about languages and all. But I've heard of some really odd peculiarities built into PHP from it being built upon what was essentially a personal project and was never intended to be as widely used as it was. I only did a little with PHP but I didn't mind it all that much, though I never got super deep into it.

I never got very deep into javascript but recently started getting interested in home automation and Internet of Things type stuff and it seems like it's widely used their. I've heard a lot of good things about node.js

you guys forgot malbolge
Code: [Select]
('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
malbolge sounds like the most scumbag language ever

I like every language I've used except PHP
I can't stand PHP

edit: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
« Last Edit: October 30, 2015, 07:56:53 AM by Foxscotch »



You can do some really disgusting stuff syntax-wise with PHP, but I think the sanest of us can avoid that. I generally like how it basically just blends with HTML, considering it's in essence designed just to make dynamic HTML pages.
« Last Edit: October 30, 2015, 10:10:42 AM by Pecon »

I like html and css too

I'd like to link some of the work I've done on webpages here, but I don't wanna give my IP out