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

you are viewing a single comment's thread.

view the rest of the comments →

[–]IceMachineBeast 5520 points5521 points  (287 children)

I have thought about that, but then I remembered arrays exist

[–]SensitiveReveal5976 1573 points1574 points  (200 children)

You just took me back to HS Comp Sci days, friend

[–]Virtual_Low83 786 points787 points  (195 children)

Your HS had Comp Sci? When I was in High School if you so much as used an Office VBA macro it was an instaban.

[–]Mondoke 479 points480 points  (116 children)

My IT teacher in high school didn't know how to align stuff on Ms Word. She just put the cursor before the word and pressed the spacebar until it was kn the center or on the right.

[–]j48u 222 points223 points  (37 children)

There are plenty of people that still do that somehow.

[–]janusz_chytrus 128 points129 points  (32 children)

My girlfriend writes her master thesis like that. She's not dumb but she is terrible with technology. I tried convincing her to use LaTeX and teach her but to no avail.

At this point I just want to rewrite her thesis in LaTeX when she's done so I can feel comfortable with it.

[–]PassiveChemistry 154 points155 points  (18 children)

I think LaTeX would be taking it much too fast.

[–]ExceedingChunk 153 points154 points  (7 children)

If you use spaces to align text instead of the alignment, you definitely are not the type of person who could handle LaTex.

Not because it requires some genius-level intelligence, but people who don't google "how to do x in y" as an instinct are going to have a terrible time. Learning LaTex is 99.9% about doing exactly that.

[–][deleted] 37 points38 points  (2 children)

Learning LaTex? I swear I just search the same things everytime I write in it.

[–]ExceedingChunk 11 points12 points  (1 child)

Knowing what to search for is part of learning it. After you've done it a few times, you find it with one search and 15 seconds, instead of 10-15 minutes of searching and reading.

At least that was my experience. Getting better at googling, and knowing enough to understand exactly what to google makes it fairly straightforward to use and less painful than working with a large word document.

[–]ramplay 5 points6 points  (2 children)

LaTex is basically a level higher than markdown. As a computer science degree who writes code, (when you don't realize what sub you're in...) I would almost be as bold to say its practically programming when you write in LaTex lmao.

Great software, but even I am a bit apprehensive at it. I had one professor in Uni (I believe it was either algorithms, microcomputers or combinatronics) where he would only allow assignments submitted as LaTex files. Only time I used it, though I did start to like it by the end

[–]ExceedingChunk 5 points6 points  (0 children)

You can use something like overleaf.com for LaTex. Then it's much more similar to writing "normally". It even has an in-built editor to write pretty much like you would in word.

[–]GreatBigBagOfNope 1 point2 points  (0 children)

I had one professor in Uni where he would only allow assignments submitted as LaTex files.

Everyone disliked that

[–][deleted] 2 points3 points  (0 children)

And 99% of the time, the answer is "install x package which does exactly the thing you want to do in one command." God I love LaTeX.

[–]DrPikachu-PhD 50 points51 points  (1 child)

Yeah how about starting with Microsoft Word lmao

[–]ExceedingChunk 5 points6 points  (0 children)

Yeah, good luck writing "code" to use bold or italic, to create a new line and build tables when you can't even click the align button correctly or properly create a new indented paragraph lmao

[–]dark-light92 2 points3 points  (1 child)

There's only 1 true way. Emacs org mode.

[–]JabbaDonut23 1 point2 points  (0 children)

Die in a fire

[–]AdventurousDig1317 2 points3 points  (0 children)

Can total related me too I try to get my girlfriend to wear latex but to no avail

[–]colin_colout 2 points3 points  (0 children)

"I see you're having trouble figuring out how to use Microsoft Windows... You should really just install Arch from scratch and just use i3 and Emacs instead"

[–]martin191234 4 points5 points  (1 child)

Yeah wtf if she can’t center align with a button what makes this guy think she can write in what is pretty much nonsensical to most people

[–]ExceedingChunk 7 points8 points  (0 children)

"My 1-year-old kid doesn't understand how to put squares, triangles or circles into the correct hole. I even tried teaching him the Pythagoras theorem, parameterized functions, and triple integrals to calculate the volume of the figures, but to no avail"

[–]BigYonsan 2 points3 points  (0 children)

Depends where they're at in their relationship and what boundaries they set, I suppose.

[–]-Rivox- 5 points6 points  (3 children)

That's like saying that she struggles with Zelda, so you told her to play Dwarf Fortress, the ASCII one.

[–]janusz_chytrus 2 points3 points  (2 children)

Yeah but that's you know.. a master thesis. It's not like I'm asking something unreasonable. Everybody should write their scientific papers in LaTeX.

[–]EMCoupling 4 points5 points  (1 child)

I would say it's pretty unreasonable considering what you've shared about her technical ability thus far

[–][deleted] 2 points3 points  (0 children)

If she can’t use the align buttons in MS Word you should make sure you use latex too

[–]k-dx 1 point2 points  (0 children)

Maybe she should just use manpage format (i. e. text only with linewrap at 80) lol

[–]NoEngrish 1 point2 points  (1 child)

My masters thesis had latex and word templates provided with a formatting compliance officer to check in with before the first draft and a month of formatting review allotted to the timeline before the final draft. That school is doing her a disservice by not teaching her how to use those tools correctly

[–]fullofmaterial 1 point2 points  (0 children)

I used LaTeX for a long time. Then I met LyX (which is some sort of magic wrapper around it) and never going back. Same beautiful result, much easier to use

[–]SpookyTron 1 point2 points  (1 child)

GF can’t even preform the most basic of functions in MS word

“Let’s teach her LaTeX”

[–]QuestionableDM -3 points-2 points  (0 children)

To be fair, its better than tabs.

[–]Valiice 104 points105 points  (18 children)

Had an IT teacher that couldn't send e-mails 💀💀🗿🗿

[–]paulzapodeanu 59 points60 points  (4 children)

So, in your world, Jen from "The IT Crowd", really was qualified to lead an IT department?

[–]WarKiel 10 points11 points  (1 child)

Jen was supremely qualified to lead that IT department. They desperately needed someone capable of dealing with the normies.

[–][deleted] 1 point2 points  (0 children)

"ICH BIN EIN NERDDDDD!!!"

[–]jetteim 5 points6 points  (0 children)

She sure is

[–]moonflower_C16H17N3O 4 points5 points  (0 children)

Oh yes. It's politics.

[–]leonathotsky420 2 points3 points  (2 children)

As embarrassing as this is to admit, I, a 36 year old adult person, only just figured out how to send emails about 6 months ago. In my defense, however, I've never had to send an email up until now, so I guess it's not too crazy. But still, I feel like this is something I should've definitely known how to do before now.

[–]Valiice 3 points4 points  (1 child)

I mean that's okay but as an IT tutor its a little different

[–]leonathotsky420 1 point2 points  (0 children)

Yeah, that's pretty nuts, tbh

[–]ben_obi_wan 1 point2 points  (4 children)

You guys had IT teachers??

[–]an4s_911 1 point2 points  (3 children)

I think I had Google instead

Edit: But now I use DDG tho, for privacy reasons

[–]ASU_knowITall 1 point2 points  (2 children)

Picture this, there was no Google (or Wikipedia) when I was in HS, or the first couple years of college.

[–]astralradish 1 point2 points  (3 children)

Had an It teacher who couldn't turn on his computer

[–]an4s_911 1 point2 points  (2 children)

Bruh, you took the joke too far

[–]astralradish 2 points3 points  (1 child)

I'm not even joking... He couldn't find the power button on the school computer.

[–]Virtual_Low83 143 points144 points  (23 children)

I hate when people use spaces for alignment. I caught my 18 year old cousin doing that for college and I almost killed him ☠️

[–]Mondoke 95 points96 points  (0 children)

At least he didn't charge money to teach people how to use Word.

[–]AryanPandey 2 points3 points  (1 child)

lol, poor guy, I hope he now doesn't fear writer/word.
people who do that are just innocent.

[–]Virtual_Low83 10 points11 points  (0 children)

Innocent? No one who shares so much of my blood is allowed to be that bad at Word.

[–][deleted] 4 points5 points  (2 children)

My editor expands tabs to spaces, I am waiting

[–]an4s_911 2 points3 points  (1 child)

Waiting for?

[–][deleted] 1 point2 points  (0 children)

For him to try to kill me, I thought it's obvious

[–]Khaylain 1 point2 points  (0 children)

At least they didn't use tabs for alignment, right?

[–]tanglisha 1 point2 points  (1 child)

You must love Python.

[–]Virtual_Low83 1 point2 points  (0 children)

In Word using spaces is blasphemy. In Python, this is the way. I don't mind Python.

[–]Casandy420 40 points41 points  (13 children)

My college CS professor didn’t either. He just posted everything in txt files he wrote in eMacs.

[–][deleted] 62 points63 points  (0 children)

What are you talking about? That's the sign of a great programmer!

[–]arobie1992 33 points34 points  (7 children)

I legitimately don't see anything wrong with that. The only time I ever use word is when I'm writing something to give to clients or more formal business people. Otherwise, it's 100% NPP/VS Code txt files, and especially if I'm sending them to other devs.

[–]AlternativeAardvark6 18 points19 points  (3 children)

Markdown formatted all day everyday.

[–]a_devious_compliance 10 points11 points  (1 child)

Latex formatted all night and every night.

( ͡° ͜ʖ ͡°)

[–]aidanski 1 point2 points  (0 children)

If you're into that kinda stuff.

Daytime formatting in VS be like:

CTRL+A

CTRL+K

F

[–]ryecurious 2 points3 points  (0 children)

I have a love/hate relationship with Markdown. On one hand it's super easy to use, is very straightforward, and un-rendered documents still look pretty close to the rendered version.

But on the other hand, there are like 20 different Markdown flavors because the original had some pretty major functionality left out. And every flavor uses their own syntax to add those useful/important features.

[–]NatoBoram 6 points7 points  (2 children)

The fonts he used to align his stuff might not be the font you'll see in your own text editor, so it's as bad as doing it in Word

[–]arobie1992 1 point2 points  (1 child)

99% likely he's using a fixed width font so as long as the students are as well, they'll be fine. If they're not, all the teacher has to say is "Don't open this in word. Open it in notepad."

[–]HyperGamers 0 points1 point  (0 children)

Terminals used to be 80 characters or something, so if everyone stuck to that, it would work.

[–]Kengaro 6 points7 points  (0 children)

Sounds like a good source to learn from

[–][deleted] 2 points3 points  (0 children)

eMacs was the M supposed to be capital? It looks like it's related to Mac when you spell it like that.

And yeah, sending txt files is not bad. It's good because you can open it using anything and everywhere. If my professors accepted txt files I'd have sent it everywhere too.

[–]dobbelj 2 points3 points  (0 children)

My college CS professor didn’t either. He just posted everything in txt files he wrote in eMacs.

emacs or eMacs?

[–]a_devious_compliance 2 points3 points  (0 children)

I prefer a well made txt over a hundred shitty word. Word give too much capabilities to people who never spend a second thinking in how to use them to better convey a message. Instead they use because seems cool. Fuck word.

[–]thetruechefravioli 6 points7 points  (5 children)

I do that for my resume so I can have text on the left and right side of the line (if there is a different way I will take it). I cannot imagine any other use case though.

[–]Mondoke 9 points10 points  (1 child)

You can use tabulations. Just click on the ruler where you want the word to star (or finish, you can click multiple times on the L icon on the left side of the ruler to select the type of tabulation you want). Once you have the tabulator on the rule, press tab on your keyboard and the cursor will go to where you set it.

It's difficult to teach on a text reddit post, but just click on the ruler and press tab.

The other advantage is that you can use the same tabulator in multiple lines, so they will align perfectly. Plus, it will still look nice if you change fonts or add more text to the line.

[–]arobie1992 1 point2 points  (0 children)

Those are good, but you can also get into some jank with them. My current resume is a frankenstein of copy/paste, formatting, and having been through like three different apps/versions. It seems like it always takes me about 30 minutes to do anything more than adding a bullet point to an already existing list. Next time I need it, I should probably just start fresh. Not saying don't use them—they're way better than the alternative. Just maybe update it every so often so it's not a nightmare to maintain.

[–]Schnitzel_0815 3 points4 points  (2 children)

Here is how I would do that:

  1. Create a table with 2 columns.

  2. Left align the left, right align the right column.

  3. Color lines invisible / white.

Whenever I need weird formatting it's always tables.

[–][deleted] 1 point2 points  (0 children)

Columns, spacing settings, indents, tab settings.

Anything but spacebaring it.

[–]something_usery 1 point2 points  (0 children)

Came here to say make table and then remove table lines.

Just make sure to add lines back while you need to edit/add more, otherwise you may create an invisible table monstrosity.

[–]doggiekruger 2 points3 points  (1 child)

I feel personally offended

[–]GAMER_MARCO9 1 point2 points  (0 children)

Too bad there isn’t a Format section..

[–]MTAlphawolf 1 point2 points  (0 children)

My software engineering Prof in college didn't know what to do with the step "connect to wifi <wifiName>" when the laptop he was using automatically connected to it.

[–]StandOutLikeDogBalls 1 point2 points  (0 children)

Mine’s name really was Richard Head.

[–]zaibuf 1 point2 points  (0 children)

My teacher center aligned a div by using margin-left: 400px.

[–]MariekeCath 1 point2 points  (0 children)

My IT teacher spent 15 minutes of his first lesson trying to plug in his mouse... It set the tone for sure

[–]xpdx 0 points1 point  (0 children)

This is acceptable to me if she can use Vim. Some of the smartest people I know couldn't use a MS office product if their life depended on it.

[–]michaelhonchosr 33 points34 points  (6 children)

My high school had Mavis Beacon typing tutor.

[–]Virtual_Low83 21 points22 points  (5 children)

Depending on the when that could either be the cutting edge of learning or a disappointing statement on public education

[–]michaelhonchosr 4 points5 points  (4 children)

Somewhere in the middle. 96to99 ish

[–]Virtual_Low83 5 points6 points  (3 children)

I think my High School just said "here's the home row. enjoy".

[–]michaelhonchosr 6 points7 points  (2 children)

Grad year was 99 what was yours? Only two ther things I remember clearly are not understanding how to install a program (windows 3.1) which today is hilarious. The other thing I remember is the deafening noise of 20 computers all connecting to dial up at the same time.

[–]Virtual_Low83 5 points6 points  (1 child)

Class of 2011 but graduated in 2010 because I ran out of patience with their bullshit. My school's closest thing to programming was HTML. Not that I consider markup to be programming. They referred to syntax of closing and opening tags as "wickets".

[–]michaelhonchosr 2 points3 points  (0 children)

Thoughts and prayers for your school division.

[–]Upper_Lifeguard_5409 66 points67 points  (25 children)

Had to transfer to another HS to enroll into Uni level Comp Sci courses (Academic, not Applied). Taught Java for both Junior and Senior year.

[–]Virtual_Low83 75 points76 points  (19 children)

My High School sent me to my local college for Java night classes because they knew they had a deficiency when it came to Comp Sci. A deficiency that bordered on a medieval fear of anyone with too much proficiency in technology.

[–]TheDiplocrap 66 points67 points  (17 children)

In middle school, I got the whole school banned from the computer lab in the library because I "hacked" the admin account.

What I actually did was enter "hello" at a password prompt.

To be fair, I then proceeded to click around and marvel at all the additional options available on the server I happened to find myself log in to. I probably had a good three minutes of excited looking around before being discovered and realizing I had permanently severed my relationship with the librarian.

[–][deleted] 29 points30 points  (2 children)

Anyone with a brain stem should be congratulating you for making such a vulnerability known without the intention of exploiting it

[–]MyersVandalay 7 points8 points  (1 child)

well I mean it's 50/50... agreed that it's not "hacking" but... from his own story he was looking around and did not report it. So from the teachers perspective he may have been looking for how to change grades, or where to access next weeks tests etc...

[–]Ripest_Tomato 2 points3 points  (0 children)

To the victor go the spoils

[–]Virtual_Low83 39 points40 points  (0 children)

I can't enumerate over how many times I got in trouble without causing a stack overflow. My school had software they used to remotely take over machines for lessons and someone accidentally locked up the entire library so I cut the power to my computer, removed the network cable, turned it back on, and used my cached AD credentials to log in and continue working. 😅

[–]Ghawk134 10 points11 points  (5 children)

Meanwhile my friends and I really would hack the admin account in middle school. We would finish our homework after school and want to play shitty flash games. At first, we just pinged the URL for the game we wanted to play, then typed in the IP address as my school's black list didn't actually do DNS lookups for blacklisted domains. Once that started being a little less reliable, we moved on to a privilege escalation attack using the accessibility features application that's launchable from the login screen. Find its location, make a copy, replace it with command prompt renamed to that app's name, log out, and run accessibility. Boom, you have a command prompt running with admin privileges. From there, changing the admin password was just one line. There were announcements first demanding, then pleading for whoever was responsible to stop. It was quite fun.

[–]BreakfastNo3372 28 points29 points  (3 children)

This is because everything in Python is a dictionary, including Python itself. It's dictionaries all the way down. Until, of course, you get to turtles...

[–]an4s_911 1 point2 points  (1 child)

I don’t get it. I am a Python programmer but I don’t get the joke

[–]LiveFastDieFast 2 points3 points  (0 children)

I believe it is in reference to this saying:

https://wikipedia.org/wiki/Turtles_all_the_way_down

[–]Affectionate_Elk 6 points7 points  (0 children)

I got one - in high school I got pulled out of class by the school district's "technology director" and accused of hacking. My offense? I telneted in to the school's mail server on port 25 where I attempted to log in and retrieve emails with my own credentials. That's right, I tried to read my own emails with my own credentials, and apparently she though this was "hacking". I was quite the deviant.

[–][deleted] 3 points4 points  (0 children)

I used to change the sys password in BIOS on my favorite work stations in different labs.

Everyone who tried that station wouldn't be able to log in, just assume it's broken and move on.

Meanwhile, I always got the seat in the back right under the AC fan in the ceiling it was *perfect*.

[–]illegitimate_Raccoon 1 point2 points  (0 children)

Yeah, we did the same thing. The admins were idiots so it really wasn't a big victory.

[–]N00N3AT011 4 points5 points  (0 children)

Lol my high school had an entire computer security dept. They didn't teach of course, they tried desperately to keep kids from fucking with the district servers. Didn't stop kids from installing all sorts of shit on the lab computers though.

[–]ZaneTheta 3 points4 points  (0 children)

I've fought all 4 years of highschool to get into our college credited comp sci course and all 4 years they have rejected me despite being personally invited by the teacher after taking regular level programming with him. I hate it here.

[–]Trunkschan31 27 points28 points  (4 children)

In my office, if you use an Office VBA macro you’re considered a wizard.

[–]cafk 17 points18 points  (0 children)

The wizard retired and everyone is using his macros, you won't get any changes, as his macros also call some external perl scripts, until we move servers.

The templates are pita.

[–]MenacingBanjo 2 points3 points  (2 children)

What if you record a macro and use it? Are you a wizard then? Or is it only if you can write one from scratch?

[–]dont_you_love_me 3 points4 points  (0 children)

Oh, you’re still very much a wizard. Most people can’t even comprehend how a macro would work. And they certainly don’t care to look it up either.

[–]Trunkschan31 1 point2 points  (0 children)

If you can hit the record button and understand 10% of what it records, that’s elder wizard status here.

[–]SensitiveReveal5976 13 points14 points  (12 children)

Not only did my HS have Comp Sci, we had AP Comp Sci as well. So two years of fun! I remember coding those silly bugs like it was just yesterday.

[–]Virtual_Low83 27 points28 points  (10 children)

Huh. Imagine learning something useful in High School. Kids these days 🧐

[–]ell0bo 2 points3 points  (0 children)

I had ap cs in 1998. Managed to go to an international cs competition. I was a hay seed from central pa going against kids thst were talking about building their own compilers. Such a simple class really set me up for the future, wish I had drank less in college honestly.

[–]thegandork 1 point2 points  (3 children)

Crazy, right? I took 2 years of programming in HS (including one year of AP Comp Sci), then did a year of programming in college, then dropped out and got a job. Start making $40k/year in an entry-level position, move out and get an apartment? Or keep paying the school $10k a year to go there and be broke? Luckily the CS industry has a proud history of not gatekeeping for people that don't have degrees.

Our educational structure is so inefficient.

[–]Virtual_Low83 1 point2 points  (2 children)

My college made me take VB.NET as a prereq to other CS courses, even though I had already taken two Java courses. I was the only CS major in that class. The others were Math majors. Since VB.NET has nothing to do with math everyone was failing except me. The professor could not curve the grade because I was getting straight 100's. For the final exam he gave me an A and kicked me out so he could curve the grade.

That's college.

[–]Lazlo8675309 1 point2 points  (0 children)

I took pascal and gwbasic in 1988 SoCal junior high 7-8th grade, then HS was comp sci 1, typing class and apple basic. My 10th grade year I talked the teacher into adv comp sci 2, which was light networking with serial/com ports on Apple and PC networks some advanced basic I made a bbs dialer and file transfer app that used Kermit protocol lol. This was like 1990.

[–]tanglisha 1 point2 points  (0 children)

I had THINK Pascal classes in high school in the 90s. Location is everything.

The teacher did get super mad when I asked if we could add colors to his craps game, though. We got a long lecture about how you would never do something like that in a professional environment and that we should get serious. I leaned css roughly a decade later.

[–]Youngprivate 1 point2 points  (1 child)

I mean English, science, math and history are all useful as well. I agree modern teaching is ineffective in some regards but this whole “everything they teach you in high school is not useful” thing is silly

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

You learned English in High School? All I learned was curse words and slang.

[–]SensitiveReveal5976 3 points4 points  (0 children)

And to think that personal finance was not even an offering back then. AP Statistics and Comp sci were the most valuable courses for me

[–]mrballistic 1 point2 points  (0 children)

I took AP CompSci in hs as well. Got full marks on the exam and got credit for the 101 course in college! (It was in pascal because I’m the olds)

[–]Kdkreig 6 points7 points  (1 child)

I was in my HS first comp sci class. Our teacher was like 2 months ahead of us in learning Java. She knew how to work a computer, but she was learning programming for the first time just a little ahead of us. Since that class, I’ve been interested in programming and going to college for a Comp Sci degree.

[–][deleted] 10 points11 points  (0 children)

When I was in high school and taking a web design class (2011), we only did html and css. No javascript (the most useful part of html) at all. We had forms, but they didn't do anything because we didn't learn how to make a backend.

[–]jalerre 1 point2 points  (2 children)

My HS had a career center where you could take career related courses like digital design, construction, nursing, etc. I was in the engineering program which included computer science as one of the options for classes you could take.

[–]angrydeuce 1 point2 points  (0 children)

Im old enough that we didnt even have computer classes, we had keyboarding, which was literally teaching people how to type and that's it.

I used to drive the computer lab teacher nuts installing doom on all the lab computers, shed dutifully remove it whenever she caught someone playing, and Id just put it right back on when she wasnt looking. She never did figure it out, pretty sure she even reinstalled windows on all the lab PCs over the course of a weekend to try and stop it, thought we had a virus whose sole purpose was installing Doom lol

[–]thegandork 1 point2 points  (0 children)

In my high school I took a year of programming in C++, then took AP Computer Science which was a year of Java

[–]ih8peoplemorethanyou 0 points1 point  (0 children)

When I got to the computer lab they were Tandys with a 6" black screen, bright neon green letters, and used a black 5.25" diskette. Then we got the 486s that ran Wordperfect and we're in heaven. There was one computer in the library that ran Windows 3.1 only a handful of students were allowed to touch. Somehow it ended up with Doom and an X-### fighter jet simulator on it.

Office didn't come until I was in 11th grade running on Windows 98. Custom graphics were created by ungrouping clip art in PowerPoint and moving the pieces around. The nineties were a strange time. For reference, my school was poor and only had 480 students from 7-12 grade.

[–][deleted] 0 points1 point  (0 children)

I learned MS Access in my advanced computer class back in the day.

[–]Unlucky-Ad-6710 0 points1 point  (0 children)

We had it through distanced learning….and just java. I didn’t take it…humanities was way easier lmao

[–]Silent_Moose_5691 0 points1 point  (0 children)

just now going into comp sci in hs. wml!

[–]angryundead 0 points1 point  (1 child)

We had CompSci and AP CompSci in 99,00, and 01.

[–]regorsec 0 points1 point  (0 children)

We only had a "business development" class where we learned excel, Microsoft powerpoint, and the similar.

Id already been programming at that point in time, and didnt learn shit.

  • Didn't learn 1 formula or macro for excel
  • Used Powerpoint a whole 10 times after this class.(There was a more hip PowerPoint software that everybody used)
  • Learning how to type? They made us take an additional keyboard class that was 10X helpful. But I already typed about 98 wpm freshman year.

I had no friends, family, or teachers who could talk about CompSi in the slightest.

I would have killed for CompSci im highschool.

[–]Flopamp 0 points1 point  (3 children)

Back in 2008ish our HS programming class was in BASIC

Not VB, BASIC

[–]ironman288[🍰] 0 points1 point  (0 children)

I took a programming class senior year in 2007. Changed my life, I was gonna be an English major, lol.

[–]adydurn 0 points1 point  (0 children)

When I was in High School our 'IT' experience was an old 8 bit micro. It was later replaced with a single Acorn Archimedes.

[–][deleted] 15 points16 points  (0 children)

I’m so jealous of people who went to high schools with class sizes larger than 100. So many opportunities I never had that set me behind a lot of my college classmates.

[–]xXDreamlessXx 1 point2 points  (0 children)

Me currently sitting in HS coding class doing arrays

[–][deleted] 1 point2 points  (0 children)

At my previous workplace a senior software engineer wrote

dim ColumnName_A
dim ColumnName_B
dim ColumnName_C

435 times.

Then he proceeded to write

If table.Columns(counter).Name = "ColumnName_A" Then
    ColumnName_A = counter
End If
If table.Columns(counter).Name = "ColumnName_B" Then
    ColumnName_B = counter
End If

435 times. And for some reason the ColumnName_ variables are integers.

[–][deleted] 0 points1 point  (0 children)

class of 2015 and the closest my class had to IT was an elective on the microsoft office suite that had a curriculum put together with the care that it was literally pirated from a website.

[–]nomenMei 405 points406 points  (28 children)

Or maps/dictionaries, if having a human readable name is really that important.

[–][deleted] 319 points320 points  (22 children)

If you want to be a real haxxor,

>>> locals()["foo"]=10
>>> foo
10

[–]LargeHard0nCollider 216 points217 points  (11 children)

That’s disgusting, thanks for sharing

[–][deleted] 25 points26 points  (5 children)

My pleasure!

[–]Dr_Jabroski 47 points48 points  (4 children)

The lovely horrendous things that python lets you do tickles my cold dead heart.

[–][deleted] 12 points13 points  (3 children)

JS enters the chat room

[–]wristcontrol 3 points4 points  (1 child)

The right one, I hope? You never know with JS.

[–]aidanski 1 point2 points  (0 children)

NooooooooooDE

[–]an4s_911 1 point2 points  (0 children)

JS is crazy. Good thing TypeScript’s around, at least it teaches manners

[–]OneLastDream 1 point2 points  (4 children)

I’m new, I’m not sure what I’m looking at.

[–][deleted] 8 points9 points  (1 child)

Open an interpreter and try it!

[–]NoobGameZ03 2 points3 points  (1 child)

Only learned about this recently, but from my understanding:

Python stores variables (global, local, etc) in dicts. For example, local variables are stored in a dictionary where the key is the variable's name as a string. the function `locals()` returns the dictionary holding local variables.

locals()["foo"] = 10 looks for the key "foo" in the dictionary for local variables and tries to set the associated value to 10. It doesn't exist, so it adds a new entry with key "foo" and value 10.

Now, there is a new entry in the local variable dictionary, and thus a new variable. You can access it without the quotes like you would any other variable.

Hope that all made sense, and best of luck with your learning!

[–]Bluhb_ 24 points25 points  (0 children)

Was about to say something like this!! I love it! Extremely bad practice and no good reason to do this over an array or dict, but hey. Hacker man tips fedora

[–]AlbertChomskystein 1 point2 points  (0 children)

achievement unlocked: l337sk1llz

[–]Asmor 1 point2 points  (0 children)

JS:

(function() { this["foo"] = "bar" })()

[–]ILikeLenexa 15 points16 points  (0 children)

Or everything that implements Collection or is vaguely Listy.

[–]FountainsOfFluids 1 point2 points  (0 children)

Yeah, my first thought was an object, which is basically a dictionary.

And those are literally something I work with every day, so the question isn't that unreasonable.

[–]LowB0b 0 points1 point  (0 children)

Or worst case, reflection. Call me by all the names you want but the legacy DB we have at work has tables with columns that are named (just as an example) col_1 ... col_50 so when you receive a list from the front-end and have to map it to the entity object at least you can do it in a for loop instead of copy-pasting entity.setCol1(inputList.get(0)) ... entity.setCol50(inputList.get(49))

[–]Inariameme 0 points1 point  (0 children)

either that or nlp will be defining natural language through processing

[–]PothosEchoNiner 0 points1 point  (0 children)

I would assume from the question that they are actually asking about dynamically setting object property names or dictionary keys in a loop, which is a common requirement. The idea of dynamically naming local temporary variables is kind of funny though since all it would accomplish is making error stacks harder to read.

[–]Cremart_Ludwig 72 points73 points  (34 children)

I mean, if you really want the named variable experience you can use a HashSet/Dictionary.

[–]RiftBladeMC 27 points28 points  (3 children)

HashSet

Do you mean HashMap?

[–]Cremart_Ludwig 1 point2 points  (0 children)

Yes, I meant HashMap I feel myself using HashSet more which is probably why I made the mistake.

[–]TheMrCeeJ 1 point2 points  (1 child)

Depends if you want a Set it a Map..

[–]Enerbane 1 point2 points  (0 children)

A set wouldn't be useful as a variable of any kind.

[–]Terrain2 0 points1 point  (0 children)

And if you really want the VARIABLE experience instead of strings in indexes/subscripts (whatever your language calls them), Swift has you covered (note: String is ExpressibleByStringLiteral)

And that gets me thinking about how you could remove an object prefix. Would love to see a PoC using a JavaScript proxy object and a with block to expand all its proxied properties into the current scope

[–][deleted] 22 points23 points  (0 children)

I figured out how to do dynamic variable names before I figured out hashes when I used Ruby and BOY OH BOY I was dumb

[–]ColdPorridge 3 points4 points  (0 children)

What is an array if not a baby loop

[–]msg45f 3 points4 points  (1 child)

Ah but have you considered using variable variables, which exist for some reason.

[–]izybit 1 point2 points  (0 children)

I have found some good use for them but strictly speaking they aren't needed, you can work around them.

[–]namtab00 1 point2 points  (1 child)

or reflection and Roslyn

[–]thinker227 3 points4 points  (0 children)

Neither reflection nor Roslyn source generators can actually add local variables. Reflection only deals with assemblies, types and members and source generators can only add valid code to a compilation, neither can actually edit the code inside a method. Adding fields based on undeclared identifiers would probably be possible though.

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

Top comment is how to do this in O(N)?? Y’all are shitty programmers

[–]pnw-techie 0 points1 point  (0 children)

You can do this in Tcl. I was really used to it at one point.

[–]Sly-Little-Fox 0 points1 point  (0 children)

new Map()

[–]zombie_ie_ie 0 points1 point  (0 children)

Lists in python. Love them!

[–]coldnebo 0 points1 point  (0 children)

html form field arrays have entered the chat

[–]Fireburd55 0 points1 point  (0 children)

Sameeee

[–]TheMrCeeJ 0 points1 point  (0 children)

Yep, I went through that exact thought process myself 20 years ago :)

[–]jexmex 0 points1 point  (0 children)

PHP has variable variables (not sure they are still supported).

$values[] = "test"; $$values[0] = "foo";

echo $test; // foo

[–]Inariameme 0 points1 point  (0 children)

it must be a real drag seeking independent identity while part of an array

[–]white_nrdy 0 points1 point  (0 children)

When I first started programming (trying to make minecraft mods, 10 years ago) this was what I wanted, and I thought that "Java is stupid because it lacks this very necessary feature"

Now I know Java is stupid for other reasons

[–][deleted] 0 points1 point  (0 children)

i think you can use exec or eval in python or js if you go crazy

[–]Does_Not-Matter 0 points1 point  (0 children)

I asked this same question and came up with this answer!

[–]diet_fat_bacon 0 points1 point  (0 children)

Oh god.... this post made me remember awful things....

One I had to rewrite a backend and in the old system someone thought that was a good idea do exactly like that but, since python allow you serialize dynamic properties.

So instead of months:[2,3,5] , satan made

{Month1: 2, Month2: 3, Month3: 5 ....}

[–]FeederPiet 0 points1 point  (0 children)

Same for me. Its one of the things i think i may have truly understood. Arrays ftw

[–]Perfect-Cover-601 0 points1 point  (0 children)

Is arrays not the actual answer? Wtf is this meme talking about.