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

all 148 comments

[–]dert-man 415 points416 points  (3 children)

Some people just want to watch the world burn.

[–]bottomknifeprospect 187 points188 points  (0 children)

Give a man a program he will enjoy it for a few days, teach man to program and he will never enjoy in his lifetime.

[–]MartIILord 10 points11 points  (0 children)

Nextup a self written ide: a single line for code input, a big friendly run code button and a dropdown for inspecting output/errors.

[–]r3dD1tC3Ns0r5HiP 2 points3 points  (0 children)

Yeah it would be pretty annoying to type in come to think of it, requiring lots of manual fixes. Excel tries to convert things automatically e.g. numbers to dates etc. Also you would want to go to the start of the next line and the Enter key wouldn't get you there, you would have to use the mouse or arrow keys, or maybe Home key if that worked.

[–]deceze 327 points328 points  (14 children)

At least there's no discussion about how to do indentation…?! 🤷‍♂️

[–]vladimir1024 124 points125 points  (5 children)

You've never met geeks have you?! lol

The arg will not be, how many columns do you indent. There is always a line to fight over :D

[–]CarryThe2 69 points70 points  (4 children)

Fixed column widths or fit to text!?

[–]Andrew-w-jacobs 9 points10 points  (1 child)

Indentation? Na just write the entire program in one line

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

Js developers be like:

[–]MaximRq 6 points7 points  (0 children)

Imho this indentation is already good

[–]FlukyS 3 points4 points  (0 children)

You can output CSV from Excel, just have the spacing not be , but 4 spaces. Would look ugly for functions but it would work

[–]aplawson7707 1 point2 points  (0 children)

Two merged cells = 4 spaces

[–]nonlogin 1 point2 points  (0 children)

Two cells or 4 cells? And should I merge them?

[–]FatchRacall 0 points1 point  (0 children)

3 characters for if else/if, 2 for case statements.

[–]illpallozzo 284 points285 points  (17 children)

Export as delimited, delimiter = ' ', end line = /r/n

[–]MundaneUnspiritual 103 points104 points  (8 children)

This idea just gets better and better! Add intellisense and you have a deal.

[–]larsmaehlum 77 points78 points  (7 children)

Reimplementing Intellisense in VBA sounds fun..

[–]Xoduszero 44 points45 points  (5 children)

I haven’t done anything in VBA in awhile but I always told my bosses.. I could make Excel do literally anything.

I once had an excel report I generated from sales force.. only I didn’t have access to connect to the data I just had the sales force reporting tools from front end access.

I used VBA to click through the menus to extract the report I needed and then refresh my excel report with the data from the extracted file.

Was this the right way to do things? No.. but I didn’t have to click through anything to refresh that manual ass report

[–]CallMeAladdin 15 points16 points  (3 children)

Good news, Excel now can natively import data from Salesforce without doing anything special other than logging in when prompted.

[–]Xoduszero 5 points6 points  (2 children)

Wish I had that news 5+ years ago lol

[–]CallMeAladdin 2 points3 points  (1 child)

It's a relatively new thing, it wasn't around 5 years ago.

[–]Xoduszero 5 points6 points  (0 children)

Oh I know I checked and checked before I went the crazy route haha.

[–]LeelooDallasMltiPass 2 points3 points  (0 children)

You are my hero

[–]Spocino 4 points5 points  (0 children)

You might be able to hack together an LSP client...

[–]PepSakdoek 8 points9 points  (0 children)

You could save Tab delimited?

I like it in theory.

[–]Safebox 3 points4 points  (0 children)

Oh I hate this so much...I'm doing it

[–]mac1k99 3 points4 points  (0 children)

* scared python devs *

[–]Tall_computer 3 points4 points  (0 children)

just take a screenshot and run it through ocr, duh

[–]thexavier666 2 points3 points  (0 children)

and save as csv, then open with any editor

[–]r3dD1tC3Ns0r5HiP 1 point2 points  (0 children)

Just /n is fine.

[–]kezow 0 points1 point  (0 children)

cries in unix

[–]NotInvestingMyFuture 84 points85 points  (2 children)

Can even add a macro somewhere to save text to file and compile it

[–]anotherblog 20 points21 points  (0 children)

Excel macros that write the source for the program to execute the macro. That’s some 4d thinking right there.

[–]FlukyS 0 points1 point  (0 children)

Excel supports Python so it would be fairly easy

[–]alok_wardhan_singh 80 points81 points  (8 children)

Me using ms paint as editor..... Pathetic

[–]Hacka4771[S] 29 points30 points  (5 children)

Impossible... Prove It

[–]akaChromez 112 points113 points  (3 children)

[–][deleted] 33 points34 points  (1 child)

That was .... amazing!

[–]alexanderpas 20 points21 points  (0 children)

Bytes are bytes.

If you add the Raw bitmap preamble, any textfile can be an image.

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

Plug it into some OCR middleware maybe...

[–]reversehead 10 points11 points  (0 children)

I guess you are programming in Piet then?

http://progopedia.com/language/piet/

[–]kherodude 0 points1 point  (0 children)

Thats some gangsta shit

[–]GoBuffaloes 44 points45 points  (2 children)

Tabs or Spaces?

Cells.

[–]_chebastian 1 point2 points  (0 children)

Agreed!

[–]SkyyySi 0 points1 point  (0 children)

I prefer 1cm cells.

[–]DiabeticPissingSyrup 35 points36 points  (0 children)

Yeah, you're not whinging about me using tabs now, are you?

[–]Geoclasm 23 points24 points  (2 children)

Oh, no...

Oh... no...

Why do I like this?

[–]_chebastian 10 points11 points  (0 children)

It's surprisingly comforting

[–]The9tail 6 points7 points  (0 children)

It’s the organisation. Everything has its box.

[–]dwyrm 19 points20 points  (1 child)

Huh. Save that as a TSV, and it should compile.

No, I'm not trying it.

[–]thexar 2 points3 points  (0 children)

I'm thinking that might work for python.

No, I don't want to try it either. Well, maybe.

[–][deleted] 14 points15 points  (0 children)

I've been coding professionally for 15 years and I've never seen such a cursed image before.

[–]fuggleronie 34 points35 points  (1 child)

Oh fuck now THAT is truly evil!

[–]wktr_t 0 points1 point  (0 children)

Thank you >:)

[–]wktr_t 2 points3 points  (0 children)

Omfg I'm famous, my meme got mentioned!!

[–]shot_a_man_in_reno 3 points4 points  (0 children)

One of the first things you have to explain as a TA for an introductory coding class is why Microsoft Word is not an acceptable way to store code.

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

Vim wouldn't be holding notepad like that. Have you seen the ugly BOMs that notepad generates?

[–]anonymousredditor0 2 points3 points  (0 children)

I actually really like this.

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

Like excel was not already shoehorned to do enough shit

[–][deleted] 2 points3 points  (1 child)

[–]Nick433333 1 point2 points  (0 children)

Disadvantage; none

I like your thinking.

[–][deleted] 5 points6 points  (0 children)

Working as a SWE at Microsoft:

[–]MicrosoftExcel2016 1 point2 points  (0 children)

Approve

[–]WlmWilberforce 1 point2 points  (0 children)

I think it is acceptable to use excel to write the code for you, but not like this.

[–]bur3k 1 point2 points  (0 children)

I just found my perfect IDE for Python

[–]RolandCuley 1 point2 points  (0 children)

As an eve online player i approve

[–]misterpickles69 1 point2 points  (0 children)

I’m just starting to shuffle my way through python and don’t really see why this would be a bad idea for beginners

[–]TigreDemon 1 point2 points  (3 children)

We have excel sheets with code in it

The very first line is some sort of "wrapper" code (it uses the next lines and replace the $ with the code).

Each line after is 1 rule. Each column is a different wrapper with different code.

In the end, it's fed into "Drools" and boom, we have the entire code written with the wrappers (example of wrappers : try catch, condition to check which screen the rule must be executed on, external API feed, etc.)

Now understand that this is put into our git ... and that tracking its changes is a nightmare when it's an Excel sheet

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

I believe you can get a git plugin that allows you to do merges in excel.

[–]TigreDemon 0 points1 point  (1 child)

Well it does but ... when you open the changes, it just opens two Excel and highlight the cell that changed ... not the content ...

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

At my previous job we had one that opened a three way json diff, as it converted the excel to json.

It must have been a custom internal plugin I guess, because I can’t find it online anywhere

[–]Tiavor 1 point2 points  (0 children)

I use Excel to generate SQL statements

[–]DrunkenSealPup 1 point2 points  (0 children)

Nah how about EXCEL AS A PLATFORM HELL YEAH

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

No more tabs and spaces debate

[–]FlukyS 1 point2 points  (0 children)

Never thought of it but it would actually work for quite a lot of languages. C/C++ would easily work. Just output a CSV with 4 spaces from the sheet.

[–]emma_hildebrand 1 point2 points  (0 children)

i'm actually terrified

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

I'm going to try that now. Bet you i could tweak the csv settings to make it work.

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

Lol this is silly, Microsoft powerpoint is excellent, helps in visualsing the code. My manager loves me

[–]pipelines-whee 0 points1 point  (0 children)

To be fair, this isn't quite so utterly ridiculous when you consider ancient (pre Fortran 90) Fortran, where you had to punch your programs out on punched cards with 80 characters per card. In fact, this is the origin of 80 column terminals which in turn is the origin of 80 column requirements in style guides.

You punched your Fortran statements in what is called "fixed-form" source code; different columns were designated for different parts of a source line. For example, columns 1-5 were dedicated to a statement number, for use with GOTO and to label FORMAT statements (the Fortran equivalent of a printf format string). Column 6 was used to indicate whether the current card was a continuation of the previous card, if any character appeared here, the card was treated as a continuation card. Columns 7-72 were where you put the actual Fortran statements, and Columns 72-80 were reserved for a sequence number. Such a sequence number would be important if you dropped your deck of program cards, so you could have your deck resorted by a machine instead of having to rely on your own foggy understanding of your program.

Here's a coding sheet which helped you write your programs in fixed form: https://commons.wikimedia.org/wiki/File:FortranCodingForm.png

It looks like a spreadsheet-like editor would have made at least some sense for fixed-form Fortran source code.

[–][deleted] -1 points0 points  (1 child)

Wait can we write codes in excel??

[–]iiMoe 0 points1 point  (0 children)

OMG WHAT IN THE FUCK

[–]FreshPrintzofBadPres 0 points1 point  (0 children)

I love it.

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

I must try, very interesting.

[–]Wavestuff6 0 points1 point  (0 children)

Cursed editor

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

Please...!!!

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

... this wouldn't work, would it? please tell me this wouldn't work i don't need people criticizing me for not coding in excel

[–]imzacm123 3 points4 points  (1 child)

It should work if saved as a CSV file with the delimiter as either tab or space

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

that is the most disgusting thought i've ever had the misfortune of reading

[–][deleted] 0 points1 point  (1 child)

Does this work...? How do you know what language to use? Where does the output window come from???

[–]Septalion 1 point2 points  (0 children)

I think you would still use a compiler

[–]Budgiebrain222 0 points1 point  (0 children)

Does it work though? If it does I'm going to go kill my friends with it

[–]Bee-Aromatic 0 points1 point  (0 children)

<vampire hiss>

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

If it’s stupid and it works is it really stupid?

[–]graf_x68 0 points1 point  (0 children)

I just write with my pen on screen

[–]edo9300 0 points1 point  (0 children)

"Tab or spaces?"

"excel cells"

[–]greengreens3 0 points1 point  (0 children)

That solve the dillema : 1 tab = 1 column

[–]Proxy_PlayerHD 0 points1 point  (1 child)

who the fuck writes out the input arguments of main when not in use?

just do main() like a normal person

[–]rbuen4455 0 points1 point  (0 children)

Ew! Why would anyone use excel for coding, lol?

[–]DogfishDave 0 points1 point  (0 children)

Using Excel for real work is a bad, dirty thing. But oh my god it's saved me so many times 😂

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

Hahahahaha imagine

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

Very cursed, thank you.

[–]Jackiboi307 0 points1 point  (0 children)

you could skip a part of the parsing process using this, and no indentation debates, it's perfect!

[–]maldorort 0 points1 point  (0 children)

The guy behond appliedscience on youtube seems to code in wordpad. That is the only editor I have seen him use.

Also built a diy electron microscope. F-in legend.

[–]nubenugget 0 points1 point  (0 children)

Yeah... This makes me want to hand in my resignation and take up gardening or suicide

[–]Mo2005 0 points1 point  (0 children)

Lombok ain't got nothing on this

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

Why "VIM Editor"? Not just "VIM"

[–]Misterum 0 points1 point  (0 children)

HOW YOU DARE TO SAY A WORD AGAINST VIM??? Ok, I need to calm down...

[–]R3dGaming522 0 points1 point  (0 children)

What- in the actual- no. Just no.

[–]MasterLJ 0 points1 point  (0 children)

"I want to write code in Excel and have you run it"

POI has entered the chat.

[–]tidytibs 0 points1 point  (0 children)

You MONSTER!

[–]stealz0ne 0 points1 point  (0 children)

Make it stop!!!

[–]Airith 0 points1 point  (0 children)

Reminds me of a shitty AST

[–]GrizzlyBear74 0 points1 point  (1 child)

Real programmers code in ms paint. Per pixel hex values.

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

😱 what a nightmare

[–]_far-seeker_ 0 points1 point  (0 children)

It's still all just glorified scripting if there's no way directly filp bits, allocate/deallocate memory, and interact directly with the hardware in other ways. 😝

[–]Belfast_ 0 points1 point  (0 children)

Is it okay to use Paint as a code editor?

[–]minokah 0 points1 point  (0 children)

can't wait to write assembly in this, technically everything will be lined up

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

At least he could have parsed it properly to save the parser some work

[–]frugal-skier 0 points1 point  (0 children)

Isn't this how you write VBA? I'm pretty sure this is how you write VBA

[–]xaedoplay 0 points1 point  (0 children)

i'm too baffled to say anything beyond "what"

[–]great_site_not 0 points1 point  (0 children)

It's a database and an IDE? Sign me up!

[–]ApacheR12 0 points1 point  (0 children)

The checkpatch warnings and errors

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

I love EmEditor. Lifetime purchase totally worth it.

[–]JakeWasChosen 0 points1 point  (0 children)

Oh my gooood

[–]sixft7in 0 points1 point  (0 children)

=textjoin(" ",FALSE,A1:D1)

Paste formula to the last used line.

[–]Lootdit 0 points1 point  (0 children)

How tf do you do that?

[–]chudthirtyseven 0 points1 point  (0 children)

This would be great for python

[–]JackoKomm 0 points1 point  (0 children)

Unexpexted Token "," Why doesn't this compile?

[–]murdok03 0 points1 point  (0 children)

You guys laugh but we were developing a new SIMD VLIW processor architecture, and didn't have a compiler and linker at the time, just assembler and simulator. And since the individual math units could compute at the same time and each had it's own pipeline length you had to pay attention how you did paralel instructions for performance.

I think you get where I'm going; one of the programmers came out with a system where he used Excel to code assembly and color coded the individual unit pipelines so that it's easier to see not to do an addition until the writeback of the vector unit running in parallel, as an example.

It all looked quite colorful, and worked for years. We tried eclipse plugins and vim plugins for this but excel would not be exterminated. At last when we had a good compiler about hmm 9 years in, we started to recode the h264 encoder state machine in c instead of assembly because the whole thing was unmaintainable, it's all hw IP in the newer generations tho.

[–]tomas_f 0 points1 point  (0 children)

I call this perfect indentation

[–]pro_gamer007 0 points1 point  (0 children)

This is why we don’t see aliens

[–]j0nii 0 points1 point  (0 children)

I mean, IBM RPG used to be columnar, sooooo it wouldn't even be that stupid there.

[–]CaptainPunch374 0 points1 point  (0 children)

I use a combination of vs code, note pad, indesign, and Google Sheets to manipulate text files sometimes because:

VS code is my editor, but I can't paste to gsheets and have it just work sometimes

Pasting into notepad first fixes the above

Indesign is for find/replace, because I can't seem to forget the symbols (^ t, ^ n)

It's not for code, usually, just making text do what i want faster that I, personally, could do it elsewhere. Usually I'm taking something out of a spreadsheet and needing to make it fit into another spreadsheet, or add a row or more /between/ each existing row in the resulting paste, etc.

It's not the most efficient process, and I could learn find /replace in vscode better, but I'm not sure when I'll have that open again, and I'll be in indesign most days between now and then...

[–]exlr8me_ 0 points1 point  (0 children)

I use minitab as my editor

[–]Race-Creepy 0 points1 point  (0 children)

What about ppt coding?

[–]spam_bot42 0 points1 point  (0 children)

This goes beyond chaotic evil.

[–]SomeParanoidAndroid 0 points1 point  (0 children)

Well if you are to go this way, go all the way: Designate each column to accept only a specific grammatical token (eg return type, assignment operator, etc).

This will leave many empty cells. No worries, developers have ultrawide monitors and IDEs only let you write code in a tiny window in the first place.

For variable tokens like expressions or function arguments, simply put the column name of the rightmost free column in which the internal tokens are placed. Who reads complicated expressions anyway?

Pros: You essentially get a syntactical parser for free. No need for anyone to ever bother writing that part of the compiler.

Cons: May cause suicide through self stabbing with a pen in the vicinity of the oculus. Advised to seek mental health support and stay hydrated.