[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_07052026.jpg (159 KB, 1206x1612)
159 KB JPG
Day 1 of self learning programming
>>
>>108772226
learn a real programming language like CSS, HTML is too outdated to compete with modern programming languages.
>>
i hate women
>>
>>108772226
goorl let's make an app
>>
>>108772226
> Forgets to close h1
> Unironically filtered by HTML
>>
>>108772226
may as well become a chimney sweep.
>>
File: 1699106834909.jpg (4 KB, 294x171)
4 KB JPG
>>108772226
HTML is a document format not a programming language.
Listen to me anon, drop everything you're doing and start watching this course by the legendary MIT hackers:
https://www.youtube.com/watch?v=-J_xL4IGhJA&list=PLE18841CABEA24090
Thank me later.
>>
>>108772293
modern browsers automatically fix it
>>
>>108772226
>No <!DOCTYPE html>
>body opened twice
>h1 not closed
>nitpicky but indentation and line breaks is all sorts of fucked up
>>
>>108772226
2 body tag
1 /body tag

you should be learning basic instead.
>>
>>108772348
And that's why the modern web is such utter shit.
>>
>>108772226
Didn't I see this exact same post like a month ago? Are you in tutorial hell OP?
>>
>>108772226
When you go to learn a framework eventually after you get done with HTML, CSS, and Javascript, give Alpine.js a try. It's written in the HTML and doesn't need compiling, it's a very beginner friendly framework.
>>
>>108772399
I quit because you niggas were mean to me, but now I m gonna stick with it
>>
File: file.png (593 KB, 732x791)
593 KB PNG
>>108772412
Mhm
>>
>>108772348
Modern browsers guess what the retard making the HTML intended.
And that's why webpages now take up 4GB of memory.
>>
>>108772363
>>
>>108772226
op you forgot this
</h1>
>>
File: 1612268783523.gif (256 KB, 1500x1000)
256 KB GIF
>>108772226
I'm probably a retard but I work in backend and I legitimately find web shit more difficult. CSS is a fucking nightmare
>>
>>108772772
It's a big bag of rules with esoteric interactions. You can't really learn it any other way than lots of experimentation.
>>
>>108772226
Legit, pen and paper are decent ways to learn how to think through programming. 99% think you here think you're good at understanding code. Take away your ability to just run the code on command, and you'd shit your pants.
>>
>>108772772
You get used to it. Use a framework or library to start out, bootstrap, tailwind, whatever looks nice to you. They have decent defaults for newbies.
>>
>>108773051
I don't get this idea. I learn by doing. Running code essentially lets you verify your mental model in a tight feedback loop.
>>
>>108773113
Pen and paper just make you spend more time on things. If you're copying instructions your brian has to absorb it in order to scribe it. Yes, with code specifically there's the advantage of running it through an interpreter, but two things come to mind:
>Having a physical copy of learned materials is invaluble (yes you can print a digital copy off, but nobody owns a printer)
>>You could take a photo and feed it through an AI or dedicated app to digitize it. Simple.
>>
I will create the logo
>>
File: Ft_im8hWwAE7gyv.jpg (71 KB, 1102x967)
71 KB JPG
>>108772226
I want to go back to pre-AI developing. Nowadays employers expect you to slop it up and deliver features almost instantly.
>>
>>108772772
Back in the late 90s when I was a kid I got into html and started making web pages. Thought it was cool as shit.
Then CSS became mainstream and it made zero sense to me. Was basically nonsensical bullshit compared to the perfect simplicity that is HTML.
Basically gave up and moved on at that point to C and real programming languages.
Ultimately glad I did
>>
>>108773151
I don't think the extra time spent on writing code on paper is useful. Code is a mapping of your mental model to a mechanical language which expresses it. By running code you verify that the code and your mental model match. Doodling pseudocode with a pen for the purpose of producing a mental model is fine I think, but anything beyond I find pointless.
>>
>>108773205
I forgot to mention that the reason why I think it's pointless is that there's a risk of writing code with wrong assumptions how it behaves. The faster you get rid of those faults in your understanding the better. With paper you might ponder code which doesn't actually work like you assumed, which ends up being wasted thinking time.
>>
Is it worth it learning programming as a hobby, without pretention to get a job or earn money? I'm a NEET and just want to pass time.
>>
>>108772226
>>
>>108773299
If the thought of making computer do stuff sounds cool, go for it. The worth of a hobby is something (You) decide.
>>
File: p0281-02.jpg (24 KB, 552x181)
24 KB JPG
>>108773224
Sure. Go ahead and test out your mental model on this problem, with list containing the values
>6 1 8
I can't stop you from shoving this into an LLM. But if you want to be truthful to yourself, and determine how strong your mental model really is, you will do this in your head and put it in a computer after you're sure you have the right answer. Don't cheat, you will only be cheating yourself.
>>
>>108773736
The problem being: what is list after the loop
>>
>>108772226
Good, lass.
Don't listen to these >>108772235
Novus homo.
The truth is html is perfect for a locked down environment where you're denied admin privileges.
>>
>>108773736
I'm not sure if you got my point.

I'm assuming that's Java. I'm not familiar how the methods of the list object work. For example with add(param1, param2) I have no idea what the 2 params do. I could guess, and work out how the code would work with my assumption, but until I run the code I can't say for sure if I'm correct.

Is the time spent using my head as a fantasy interpreter worth doing if my assumption doesn't match the actual interpreter? I don't think it is, so it's far better to run the code and see.
>>
>>108773877
The methods are stupid obvious, come on now.

You're not getting my point though. It's about intuition. You should be able to look at a chunk of code and have a reasonable expectation of what it's going to output when you run it. It's like in math, what is 78 * 63? I don't know off the top of my head, but I do know it's supposed to be in the thousands. So if I see an answer like 345, or 144,553, I know some calculation went wrong.

Same with programming, if you told me the answer to that was 6 1 3 3 4 5 2 4, I'd immediately know you're wrong because the length is off, and the first integer is supposed to be a 2. Doing problems by hand helps you build that intuition. You can't get that with a computer telling you the answer all the time.
>>
>>108773967
>The methods are stupid obvious, come on now.
I don't think so. I took a gander at the signature and I don't think it's obvious that with the 2 param overload the first one denotes index and the second what to put there. My assumption would have been the other way around. A small thing that's the result of unfamiliarity with the language interface conventions.

As for intuition, that piece of code you gave might as well throw some sort of OutOfBoundsException or something in reality. I can't say without knowing the nitty-gritty rules. That's why I think intuition is worth jack shit when it comes to actual languages, more so with living languages with their warts.
>>
File: woman-moment-code.jpg (183 KB, 1070x1583)
183 KB JPG
>>
>>108774042
Well you seem to know the rules now, first parameter is the position, and the second is the value. You can go ahead an solve it.

If you think that would throw an OOB exception your mental model and intuition are out of wack. For loops are pretty wildly written in that manner across languages, and it's easy to see that even with your misundstanding of the parameters, it still wouldn't throw an OOB error. The rules aren't "nitty gritty" they're very simple, and this problem is simple if you put thought into it.

I've worked with people who can't understand code without running it. They'd ask me "hey why isn't this working?" And I take one look at it and and see that a loop ran past the index. Nowadays you can smooth over your lack of understanding with LLMs, until you're "absolutely right"-ed that is. Running code is not a substitute for understanding it.
>>
>>108772376
>>No <!DOCTYPE html>
use case?
>>
File: 1748777872715976.png (445 KB, 743x743)
445 KB PNG
>learning to code in 2026
Use case?
>>
>>108774573
arms development for clanker genocide
>>
>>108772343
LISP and Massachusetts lost, anon. You will be Unix and you will be happy. infinite Berkeley dub
>>
Everyone dunks on women here, but we're running circles around you careerwise. You're just sore losers.
>>
>>108775166
smaller bait than your brain
>>
>>108775130
berkeley had a sicp source for much longer than mit. their current sicp course is now using python but still has a few lessons about scheme after midterm https://cs61a.org/
the alternate self paced version is closer to the old sicp course. https://berkeley-cs61as.github.io/

the old sicp course is available here
https://archive.org/search?query=Computer+Science+61A&tab=collection
https://github.com/theurere/berkeley_cs61a_spring-2011_archive

the old cs61a/b/c courses were golden. cs61c with Dan Garcia was the best introduction to computer architecture/engineering.
>>
Do people unironically write HTML and CSS by hand in 2026? At the minimum, thats one of the things AI is best at.
>>
>>108772226
I'm going to help you out a little bit.
1. Create a new file on your computer.
2. name it my_program_name.html
3. Drag that file to your chrome browser to open up the webpage in your browser.

Following the steps above will allow you to test your program which is just a text file.

The text file is read by the web browser. The web browser interprets the text and executes instructions on your machine.

my_program_name.html can be named anything like mywebpage.html or index.html so long as it has the .html extension.

The .html extension hints that the file is a .html file which is the same as a .txt file, except when the file extension is .html it is easier understood by the webbrowser program and interprets it correctly with the correct processor system.
>>
File: 1749452816527.png (1.44 MB, 1080x1302)
1.44 MB PNG
>>108772226
I unironically taught myself VBA with zero programming knowledge in a couple of months to automate my work in an Excel grunt job I had out of college. Used pic related.

I have been off to the races ever since. Best decision/purchase of my life.
>>
>>108776738
I use safari
>>
>>108773299
Absolutely, yeah. It's extremely intellectually stimulating and it's not hard to make a name for yourself. Just stay away from a corpo job and you'll be happy.
>>
>>108772226
I wish I had good handwriting like OP
>>
>>108773736
Either Index error on the last iteration of the loop or [6, 0, 1, 2]
>>
>>108777048
Same but without a book. Used Excel's macro recorder to figure out what did what. Filled in the gaps with cannibalized Stack Overflow code and a lot of trial and error.
>>
>>108774573
So I can vibe code more efficiently.
>>
>>108772226
Stop
Learn something useful, like plumbing
>>
>average /g/ poster is so autistic they don't realize OP was making fun of the retard in the pic
>proceed to UMM AKSHUALLY
grim
>>
>>108772226
What would Day 1 of learning C++ looks like?
>>
>>108779624
I don't care what op meant, writing down stuff in a notebook is proven to commit stuff to the brain better than typing. Try it! try writing "I am a faggot" on a piece of paper so you'll remember it better!
>>
>>108779783
A person hanging from a tree
>>
>>108779783
Male pattern baldness
>>
>>108779783
#include <iostream>
#include <utility>
using namespace std;

template <char... C> void meow(integer_sequence<char, C...>) {
(cout << ... << C);
}

int main() {
meow(integer_sequence<char, 'H', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '!', '\n'>());
}
>>
>>108774573
If you can read code and genuinely understand it, vibe coding becomes much more efficient.
>>
>>108772343
>document format
No it a markup language for hypertext.
>>
>>108781172
splitting hairs



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.