- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Don't forget all the exciting debugging features you can use with Word!
Admin
I remember writing my first code on a C64 basic prompt, my second on an Acorn basic prompt, my third on a BBC basic prompt, my 4th in notepad for Borland C compiler, my 5th in notepad for Java lessons at university, it was only when I actually needed a large codebase for my final year project that I started using an IDE. Now at work with everything in an IDE, I look back at myself and laugh. Good for training the eye on errors rather than letting the IDE do it for you mind.
Admin
sounds like some failed Microsoft hidden publicity on their new IDE ....
Admin
Which one was that? I must be doing it wrong :)
Admin
I do know an example of the opposite, a PhD student who wrote his entire dissertation with the Turbo Pascal editor.
Which sounds more sane than coding in word.
Admin
TRWTF is that visual studio won't even open .docx without starting word for you, unless you set it to open with the binary editor
Admin
Admin
Where's the WTF? I write code in Notepad all the time.
Biff is right. Choice of editor is a personal preference. The code is what really matters, not the tools used to write it.
What's next? An article about the superiority of fountain pens and the elitist snobs who use them?
Admin
Admin
This guy's trolling, right?
Admin
btw I happen to use vim, so I think had he coded in notepad - there wouldn't be wtf at all
captcha: IDEo - lol
Admin
As you can read in the article the code didn't work.
Admin
Admin
Do you really want to unleash the powers of the butterfly? (yes or no) yes
Amazing physics going on... Successfully flipped one bit!
Admin
So in order to produce some printed documentation, I wrote a BASIC (this was the early 90s) program on the same machine I used in the project to control a test rig.
Endless rows like 100 PRINT "blah blah blah...", but since the printer was of course printing in a fixed-width font I managed to produce some ten or so nicely formatted pages of documentation without too much fiddling :-)
Sounds weird, but you use the tools you have and the result was still far superior to my handwriting ;-)
Admin
Real programmers, of course, program in whatever tools are most appropriate for the application in question.
I happen to be using Eclipse (with Notepad++ for convenience in certain circumstances), because it just happens to allow reasonably efficient code development. We've all standardised on it in this code shop. It has its advantages.
Many moons ago I was tasked with transferring our help documentation (which had been written in some in-house document writer software - told you this was a long time ago) onto a web-based solution. We were VAX-based, and had managed to build a just-about usable interface with the Windows-PC-based network used by the non-technical operations team. To this end we had developed a few templates and macros to be able to write html code with reasonable efficiency, and to style it sufficiently neatly as to be able to present it in the same style as the old documents, but in a form you didn't have to process into postsript and print out before you could read. In short, to make the docs available "on-line".
All went swimmingly until one of my colleagues (older and considerably dafter than me, and that's saying something) only decided that she could edit the damn things using Word. This of course completely destroyed the neat presentation that we had designed, because the html capabilities of Word were considerably substandard and did not support the functionality we had designed. And the real WTF was: even when she had been informed that this was not the best way of maintaining the documentation (she could log onto the VAX like the rest of us, she knew that, she was part of the VAX team by dammit), she insisted on continuing to use Word because it was "convenient". And who cared whether the result was less than readable? She didn't use documentation herself.
Admin
I worked with a experienced engineer, who felt that Word 2.0 was the best way to write CPLD code. He'd write the code in one color, the comments in another and the compiler directives in a third color.
Of course, the .doc file would not compile as written. First, the text was exported as a .rtf file. Next, he ran a complex script that used the text color as a cue to format the commands correctly. Finally, he ran the resultant source file into the CPLD compiler.
As our organization had long ago made the transition to XP (under which Word 2.0, not surprisingly, does not run), he kept a special machine loaded with Win95, on which he ran his editing system. As this machine wasn't networked, the source code had to be transferred to the system on which the CPLD compiler ran by USB key.
I wish I was kidding. I actually saw this and had to work on his code, when he left on a two week summer vacation. There was nothing wrong with his code, the guy was a good engineer. He just had this desire to make everything more intricate and complex than it needed to be. Job enrichment, I guess.
I ended up exporting his source .doc files as .txt and editing them in either vim or Visual Slickedit, something with an automatic syntax formatter for Verilog. I made some progress on the project. When he returned, he was annoyed. The boss seemed to be willing to let me continue to work on the project. The Word 2.0 afficianado left shortly afterwards, leaving us the legacy of a great tale...
Admin
Admin
There's really no excuse for typing code in Word unless you are writing an article or paper or something and show code examples. I use minimal text editors for writing quick things when I don't really care about compiling and just want syntax highlighting, but this sounds like Biff is just an idiot. I think something had to have been left out of the story because it reads like he would write code in Word, and then copy it into Visual Studio? That doesn't even make any sense why you would do that, as Word doesn't give you syntax highlighting (to my knowledge) unless you manually go and change the font color of keywords, obviously it has no Intellisense, it won't tell you if your code will actually compile...
Now I have seen people write sample code in say a Word doc and give to someone as an example of what could be done (although I always find plain ol' .txt to be better) but this reads like he's actually writing code that is supposed to be compiled in Word for some reason.
Either this lost something in the anonymization process, Biff is totally clueless and a moron to boot, or Jim missed some crucial thing here (maybe the code Biff sent wasn't meant to be used as-is but more an example) but this story as it reads is too far-fetched.
Admin
However in this case Biff is the WTF and a big one.
I don't know one developer who complains about fixed-width-fonts in an editor. It usually is the other way round but anyway, if I remember correctly, you can set the font in Visual Studio to anything you want. No need to use Word if all you want is TrueType.
Productivity is much improved if you use a modern IDE. Compiling at the click of a button, method lists, refactoring tools etc etc. Not to use Visual Studio in a .NET shop meaning you have to do all the things like creating a solution, compiling etc on foot is such a waste of resources (i.e. time), any decent head of department would probably had a chat with Biff long ago.
If you want licence to do whatever you want because you claim guru status, you should be. And obviously Biff wasn't, since his code was "loaded as it was with misspelled identifiers, missing semicolons, and AWOL closing braces". This refers back to point 2) since now Jim can clean up after Biff and Biff is probably not getting Jim's wages deducted from his own.
So all in all I would have to conclude that Biff is the WTF in this story.
And now back to vim.
Admin
It's possible (tho unlikely in the early 90s - 80s possibly?) that the machine did not have any kind of text editor and that, like a C64 or BBC Micro, the only way to iteratively generate anything was to write a BASIC prog via the inline editor / command prompt.
Admin
Also, get off my lawn.
Admin
That machine was like a home computer of the 80s. It booted into a BASIC shell and that was basically that. No fancy editor, the only software on the machine being its ROM and the BASIC program currently in memory. Which you could write to disk. Which, of course I did. But even on disk it was a still BASIC program.
Admin
Admin
I think the clue is the lack of source control. Who needs it when Word has revision control built in? The version history travels with the document !
(Ducks)
Admin
Nowadays, I prefer glorified plaintext editors (sublime text or notepad++) over full IDE's such as visual studio, eclipse, etc.
With macros/plugins all of them support the needed functionality anyway (as does vim or emacs); but it feels more productive for me, and less constrained towards a specific toolkit/language/approach as the IDEs.
Admin
It means that every single class is saved within one file. The convention in question states that each class should be saved within its own respective .cs file, although there is a handful of exceptions...
Admin
Admin
I once had a client call to tell me their website was down. Basic checks revealed that there was an error happening on every page-load, but without access to the server and the client insisting that nothing had changed since installation, no way to go forward. This was local government at it worst, so it took seven weeks of form-filling, waiting for critical people who were off sick to return, etc. etc. to actually get permission and credentials to vpn in and take a look, by which time the client had already tried to have me formally dinged for breaking the SLAs.
No web.config
Instead, web.config.docx
Admin
"There's really no excuse for typing code in Word ..." Stop right there.
Dead right. $\LaTeX$ is far superior (if you ignore its colossal disk space footprint).
Admin
There are some good arguments for using proportional fonts: they are easier to read, though I still use a monospace font myself
http://developers.slashdot.org/story/10/01/17/0715219/Programming-With-Proportional-Fonts [original blog post is gone]
Admin
This reminds me of a help authoring tool (let's call it DUH) circa 1999. This was a Word add-on which allowed you to write documents which could be compiled into Windows Help and which could also be used to produce print documents from the same source. Now admittedly, this was actually a document and not a program, so doing it in Word was not TRWTF.
The source document was a Word document formatted mostly like the intended print output, though certain formatting features were reserved for special meanings in help. (Keep with next, I think, marked a paragraph as belonging in the non-scrolling region at the top of the help topic typically occupied by a heading. Conveniently, headings typically had that formatting option. But this particular WTF is properly credited to Microsoft, as their Windows Help compiler, which operated on an RTF file, used the equivalent feature in RTF for this meaning.)
TRWTF was that when you wanted to build the help, an incredibly long set of Word macros used information in the document and in text configuration files to insert a bunch of footnote marks that the help compiler used to store metadata about the topics, such as their actual titles (which could be different than the headings, but Doc-to-Help made them the same unless you had multiple identical headings in your document) and index entries.
Or maybe TRWTF (at least, the one that reminded me of this) was in the way that DUH used colors to indicate sections for print-only (red, I believe) or help-only (magenta). Another part of that long chain of macros removed all the print-only text and changed all the help-only text to black. A new version came out during this period that added support for HTML Help and other output formats; this assigned meanings to a bunch of other colors, allowing you to mark text as belonging only to one specific help output, in case you were building all these different help outputs from the same source for some weird reason.
And one of my predecessors had constructed this enormous manual/help file which had some very large tables which were deemed reference material and not needed in the help output. So there were pages and pages of red tables that got deleted from the temporary copy each time help was built. This went on for a while (with multiple-hour help builds spending most of their time deleting these tables, one cell at a time). There were lots of other help projects that didn't have massive amounts of print-only material and their help builds ran in a reasonable time; it was only this one project that I'd start when I went out to lunch or at the end of the day and pray it ran successfully.
Only when Word started crashing did I try to do something about it. It seemed that Word maintained undo information in one of those temporary files that get created whenever you open a Word document. Normally, Word would periodically flush out old undo information and keep this file from growing too large. But while a macro was running, unless you did something to give Word control for a moment, like saving the file, Word never did this. When these tables grew too large, the undo file reached the maximum file size limit on whatever ancient version of Windows we were using, and Word crashed.
The temporary solution was to split this section up across multiple files. This forced a save in the middle which flushed the undo file.
The intermediate solution was when I discovered DUH provided hooks within their build process where I could insert my own macros. I wrote a macro which checked to see if an entire table was red, and if so, delete it. And it didn't work, because when you have too big a selection (in this case, more than about 50 table cells was too big), Word's object model wouldn't tell you its color, instead returning the code that indicates the selection has multiple colors. So I rewrote it to check the color of every row, and if all rows were red, then delete the entire table. This reduced the runtime of the print-only-deletion code by about 90%.
The ultimate solution, when we merged with another group that was using another help authoring tool, was to not defend this tool at all and accept whatever the other group was using, which at the time did not support conditional text, so we had to abandon some of this and either maintain parallel copies or just write things in such a way that they worked in both print and help.
Admin
I had a similar, although stupider, issue - on my first computer, a 486 (I was about 12-13ish), I didn't know what a word processor was or where I would get one. The first text-editing program I found was the system's BASIC editor. So I wrote several school papers in that before my parents finally picked up word perfect.
Admin
Admin
Admin
Not that it matters much - I have learned to take things said in job interviews with a grain of salt.
My favorite is: "Except the gui we do everything inhouse".
"inhouse" on that occasion meant: at any one of a handful of sister companies scattered around the country.
Admin
Ditto. My setup is "editor with one-key invocation of make, and keep the makefile up in one of the tabs". Currently that editor is SciTE, but that could be switched out for any of a large number of editors.
Oh, and 42 terminal windows or so. To me, a GUI is a system for laying out terminals so I can find the one I want...
Admin
Did Dan want to feel superior by referencing the Capgras Delusion? The Capgras Delusion is the belief that someone has been replaced by a double. It has nothing to the feelings "Jim" was experiencing; even the phrase "Jim couldn't help feeling like a bit of an impostor" is too weak for Capgras.
Oh, like everyone else, I can't imagine a modern programmer using Word to code (and saving the code in a non-text format). To be fair, docx is an xml derived format, and Biff may have been typing on a wooden table.
Admin
A good WTF
And in a similar vein (and this is sad) kids at school (GCSE) are "learning" html and css by using Dreamweaver.
Guess what, none of them have even seen the html!
Admin
Admin
Admin
I actually did that. Sherman, set the wayback machine for 1982... I was in high school, and had just spent all my money on a shiny new Apple //e. I had no money left over for software, but I had a paper due and wanted to use my shiny new toy. So one of my very first programs ever was a cheap-ass "word processor". It was a loop around an input statement, appending anything I typed to a single string variable. It did actually have the ability to backspace and delete characters, but it had no other cursor control. I don't even remember if it saved to disk. I do remember that it got progressively slower the more text was entered, and after a page or so it was just plain agonizing. But hey, I got an A on the paper! And continued using the program throughout the semester.
Admin
Almost certainly.
I think he was shooting for the "Dunning-Kruger effect" and missed.
Admin
Admin
If they were using a SCV it wouldn't work with Word documents.
Admin
Admin
That's not a WTF of the IDE, that's a WTF of the curriculum. Dream weaver is fine for editing HTML or CSS in code or split view. I realize that it has all sorts of wysiwyg nonesense in it as well but you can write pretty much any code in it with varying degrees of syntax hilighting and code completion; ie: C#, PHP, vbscript, ruby, sass, JavaScript, etc... It's not as feature complete as VIsual Studio but for teaching kids HTML and CSS, it should be fine, providing they are writing the code.
Admin
Admin
Yep I have it exactly similar, nice to know I'm not alone....
Yazeran
Plan: To go to Mars one day with a hammer
Admin
You could have earned some more "historical" points by saying "Which you could write to tape" :) :) :)
Got my start on ZX Spectrum and HC-85(Romanian clone of the ZX Spectrum) :)
CAPTCHA: tation; "It's a tation, not a citation!!!"