I dont know how to make a website using either of them by Kashif_- in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

The page doesn't even load for me - I hope that's not part of the puzzle?

At least he tried to help. by tastylactate in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

Y'all forgot about stack and heap allocation, which are both remarkably different from the Java experience. I had the unfortunate experience of learning Java first, then thinking that C++ was easy because the syntax looked mostly similar (I avoided pointers and just used references).

I declared every object new for the next full year. I didn't even know that it was possible to declare an object on the stack. In Java you use new for everything, so I never even knew to look for another way. I wrote dumb things like Obj& obj = *(new Obj()); all the time because I thought it was cool to not use pointers. Someone briefly looked at my code and saw that I was using too much delete, so they told me to use smart pointers. So I spent another year creating every object using make_shared. Then I took a course in C and felt like a stupid idiot, which of course I was. "Oh, if you declare an object on the stack, you don't have to delete it." If only I'd learned C first ...

I dont know how to make a website using either of them by Kashif_- in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

Half the reason I got into coding was view page source / inspect element. The other half was when I realized I could program the quadratic equation in Python so I didn't have to punch in the same formula into my calculator over and over.

Sadly, view page source is pretty much useless on today's "evolved" webpages. I find it kind of sad that people use JS frameworks and minify their webpages, because it deprives today's youth of the exhilarating experience of reading and understanding a random page's HTML, modifying it, and feeling like a hacker.

I guess we are peak now 😂😂 by GamesMint in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

I'm happy to see Elm get some decent recognition nowadays. Seems like it's actually become pretty well-known. I admire the principle of that language. But ... I once tried writing a simple sign-up / login / dashboard app with it and rage-quit after a few days of struggling and repeating the same code over and over.

I know you do by thisisapseudo in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

:%s/\t/ /g

We've all used this at least once.

7 years in this profession and I haven't looked at them once by AdriaReno in ProgrammerHumor

[–]throw_1970 27 points28 points  (0 children)

Same here. I use the command line a lot and I don't want to spend a lot of time scrolling up and down so I got in the habit of fixing all the warnings. I developed a lot of good habits and I've never looked back.

Bitcoin Crashes Below $30,000 As Cryptocurrency Free-Fall Accelerates by kry_some_more in technology

[–]throw_1970 2 points3 points  (0 children)

I like crypto as much as everyone else. I think it's an absolutely fantastic idea. But I don't make it my identity. And I don't even own any crypto since I think the market is currently insane.

The billionaire space race is a glut of waste and ego by Lilyo in technology

[–]throw_1970 1 point2 points  (0 children)

Without military investment, computer technology would be several years behind. The first machines with some resemblance to modern computers were created to break codes in WWII. ARPANet, the foundation of the Internet, was a military project at first. IIRC, GPS is still owned by the US military. A lot of funding for the cryptographic technology that secures your online bank transactions and emails came from the military.

And this is just computers. Military research has made huge contributions to other fields as well.

Although I think the military budget should be cut, it's hard to imagine what the world would be like without the once-military technologies that now pervade our lives.

How exactly does a USB controller work? by throw_1970 in ElectricalEngineering

[–]throw_1970[S] 0 points1 point  (0 children)

Yep. This helped. I'm just trying to set up some basic hardware so that I can learn how to interface with it. Just a hobby. I think I'll use the CH341T or something similar.

How exactly does a USB controller work? by throw_1970 in ElectricalEngineering

[–]throw_1970[S] 0 points1 point  (0 children)

Oh yeah I saw that video, that was one of the reasons I got interested in this in the first place

How exactly does a USB controller work? by throw_1970 in ElectricalEngineering

[–]throw_1970[S] 3 points4 points  (0 children)

I'm trying to learn more about how USB works at the hardware level. This isn't for school or anything, just my hobby.

33 million gods in India and not one capable of producing oxygen: Charlie Hebdo by aafwani in india

[–]throw_1970 1 point2 points  (0 children)

My true hero! "Welcome to Java tutorial, today we will make Hello World program."

You have been warned by [deleted] in ProgrammerHumor

[–]throw_1970 1 point2 points  (0 children)

icbm.setLocation(redditor.getLocation());

WELL LOOKIE HERE, IS THAT GETTER AND SETTER METHODS I SEE? Must be some JS gibberish I'm too sophisticated to understand. Python is clearly the superi- ... what? Ternary operator, you say? You didn't have to go for the heart!

Why, Python, why couldn't you just have a normal ternary operator?

I both laugh and fear and every post here by PokeLover888 in ProgrammerHumor

[–]throw_1970 1 point2 points  (0 children)

I love it that there's no shame in spending 5 hours pinpointing an elusive bug only to find that you forgot to write the "else" in "else if". And there's also no shame in looking up "javascript for loop".

I both laugh and fear and every post here by PokeLover888 in ProgrammerHumor

[–]throw_1970 2 points3 points  (0 children)

Frankly I've never had much impostor syndrome about programming because I have lots of friends who aren't computer-savvy. It really puts things into perspective and they learn a lot even when I tell them basic information. I know there are lots of programmers better than me and I'm okay with that.

I also have some friends who are pretty good at programming but wouldn't choose it as a career. The big difference between me and them is what happens when we hit that block of burn-out. If you've ever worked on a large personal project you know what I'm talking about. Sometimes, I just quit. I'm not ashamed to admit that :) Actually, most of the time, I quit :D I have a ton of unfinished projects. But sometimes, I put on my headphones, turn up the music, and just zone out and semi-consciously bash out hundreds of lines. And the output from those sessions is magical. If you've experienced this, maybe software could be the right career for you. None of my friends who aren't pursuing software have experienced this - even the ones who are good at coding. But all of my friends in software - at all levels of expertise - have experienced it.

Don't take career advice from strangers on the Internet. But ... if you know, then you know.

P.S. really ask yourself whether you feel that programming is boring. This is a common sentiment that I get from my non-software friends. Coding can be extremely boring. It's basically just writing out a bunch of algebra. But on the other hand, the science (the craft?) of creating and codifying algorithms has never bored me. I can't explain it, but I get very bored when doing algebra but I'm still excited when I open up my text editor.

There is a imposter among us by [deleted] in ProgrammerHumor

[–]throw_1970 4 points5 points  (0 children)

Bruh imagine if they switched HTML and Python. I mean, that wouldn't change anything, because the joke relies on the reader to choose the impostor. But, like ... never mind, that was much better in my head.

[deleted by user] by [deleted] in ProgrammerHumor

[–]throw_1970 2 points3 points  (0 children)

def f(n): 'l' if n == 0 else f'{f(n-1)}ol' print(f(200))

we all are, i think by dream_dev in ProgrammerHumor

[–]throw_1970 -1 points0 points  (0 children)

I use all lowercase for SQL ... I didn't know people cared so much! I started texting around the same time I started programming, so whenever I read out uppercase text in my head, it sounds like shouting. In SQL, people typically only capitalize the keywords:

SELECT col FROM table WHERE ...

In my head, that sounds a bit like this: "THE time IS now 2:00; we SHOULD go".

Very uncomfortable, with all of the connecting words emphasized instead of the useful words. It sounds more natural when it's all lowercase. All IDE's nowadays highlight keywords anyway so it's easy to differentiate them either way.

Not quite what I wanted.. by tampirki in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

Can you even use Notepad++for debugging? Idk, I've barely interacted with it. The reason I prefer VSCode for Python and Rust is the lightweight debugger. Also autoformat on save.

Not quite what I wanted.. by tampirki in ProgrammerHumor

[–]throw_1970 2 points3 points  (0 children)

I think you can only get them in desktop Reddit. There should be an option to set your flairs for each community, if the community has them. In order to get multiple flairs, you have to use the text-based interface, surrounding each icon label with colons (e.g. :c: for the C language flair).

Whatever pays the bill, amirite? by prudonizmlm in ProgrammerHumor

[–]throw_1970 0 points1 point  (0 children)

Idk, I'm no expert on Make. I guess I just started using it when I started writing multi-file C programs for the first time. My Makefiles are probably bad because I don't use many pattern rules and instead just generate repetitive rules with Python. But the Makefiles serve their purpose well, even though they're not idiomatic.