FILE: IDE Kill File Running Notes LAST: 2017-06-09 ARCHIVED: 2021-05-24 (c) Copyright Brett Paufler # # # # # # # # # # # # # # # # # # # # # # # # # # # # Notes as pertain to Refactoring, Reorganization, and Removal of Code from My IDE (Eclipse). The notes aren't that good. And years later, they are hugely uninteresting. Anyway, prior to Dead Code and The Data Dump (spurs on my website), there was this file and some degree of desire to clean and reorganize My IDE. As a side note, I am finding it interesting to pursue data these days. And by that I mean Recording Raw Data. And as follows is some degree of data concerning an IDE Reorganization. It's not clearly presented, though. And the question (in my mind then) becomes what needs to be done differently (on future occasions) such that there is clarity for myself and others years down the road. This being a question that the following (implicitly) asks but does little to (explicitly) answer, it serving as little more than a negative example of what not to do. # # # # # # # # # # # # # # # # # # # # # # # # # # # # Original Text (presumably in full) [redactions as required] {Notes made at Time of Archive} # # # # # # # # # # # # # # # # # # # # # # # # # # # # Notes for the Files Being Killed {removed from eclipse} Killing, so not really sure why even writing this note. AgentQueryExtraction.Py What: Data Extraction of Agent information from Cut and paste text from website Why Cut: Use case is history (perhaps one shot deal) No great code, nothing to be proud of If do over: favor regex over simplistic data munging store intermidiate values as a csv (this output is to be processed again) formatTextForImageSukiTextMod What: a one shot script, replace text for file in place Why: clearly a one shot script If do over: simply use notepad to find/replace emailsPastYear What: data munging, text extractor saves name of sender for all emails in a directory counts number of emails per sender and outputs as: count, friend/foe, email address Why: One shot, not of current use... if do over, would take almost as long to test as rewrite If do over: have to assume a regex would work just as well if not better the project just wasn't that complicated Other: Astounding how few folks I had a regular interaction with basically my communication was one sided OK: I think I've decided to reopen this Ultimately, email project created used as 'inspiration' for notes still need to do class, etc look for existing parsing library first attTextToOneFile What: All text files in target directory All unique lines thereof Saved to new text file Why: One shot Haven't used since Seems easy to implement with sets If do over: Would use sets ImageMagick follows im_gif_effects im_image_effects im_word_tile createLetter (now, create_letter createCompleteFont ( createSimpleWord (now, create_word assembleWord (now, im_append) All from IM, ImageMagick What: functions that automate ImageMagick command line interfaces from the IM suite creates a letter block the other assembles into words Why: Well, these were already present in IM the ImageMagick master control file so, they should have been deleted long ago If Do Over: Make sure to delete these files the first time actually spent time refactoring a file that was no longer the working version Lots of duplicated code, createCompleteFont is wholesale refactor/reimplementation of createLetter sampleLineLongTermKill matrixTextTilesOLD What: more imageMagick utilities don't work right now, so not sure exactly what Well, first makes a line, next a specialized sort of line Why: Old and LongTermKill in the name pretty much says it all If Do Over: There's a lot of specialized functions Maybe have a separate module that only calls the base IM in this case And does the project by project maneuverings all these are in im_gif_effects) to be sorted later makeGifRotatorImages makeBarrelDistortImages What: Actually fairly cool effects Image distortion, MogWave and the like Barrel distortion, probably does barrel roll, corner pull Why: Duplicate, already in IM If Do Over: Well, this probably doesn't belong in IM as IM will likely be reduced to word effects so, after killing this file, I'll likely make a new module to hold this starEffectsFromScratch (makes a pointed star) sizeFromScratchEffects (survey of IM effects) testEnvironmentEffectsToWhiteCanvas (might as well have been called, workpspace What: Tester scripts, a big mess To try the different ImageMagick Functionality Why: It's a big mess Have to really be on top of like an unorganized toolbox takes too long to find anything If Do Over: Well, obviously not like this but this was pretty much almost about the time I was learning functions no classes, no modules organization was for dodo so, live and learn Actually used a list(25 long) of 2 item dictionaries irfanView Killing the entire sub directory and moving as one file to img_work What: a bunch of early image work using IrfanView Why: it's really only a single module, not the 8 I had If Do Over: As a single Module??? Actually, there are things IrfanView does best, So, an the irfan module might have a future It is a lot easier than batch in irfan, in many ways Though, I can recommend the review, I got a screencapture utility out of it, just a few more lines of code. So, hidden functionality. TalesOfTheNav: separate module, later deleted, presumed included in above (had shift so, this is what I used for the first ones) PIL - Library workspace: barely counts stripped_image2gif: duplicate of third party, so noise waterMarkFourCorners: turned into an extension of watermark blackAndWhite: moved into existing black_white module surprising what one duplicates GhostlyImage: changed to Img subclass, ghostly_aura, cleaner skimageeffects (a tester function) didn't work after the update of skimage and abandonded the rework of it DemonLover: well, it needed to be refactored, lots of crap, lots of bad technique as much as anything, decrypting bad variable names #336 Lines pre-refactor, #154 after, but lost gif Likely will be using stacked numpy image arrays for future gif work (150 lines after revised comments) squareButterfly: does nothing, project started never completed not much done, taking up space, deleted images2gif: third party, deleting not working, author of code has moved on to imageio, so, downloaded that convolveFilters: at almost 2000 lines, its quite the module, started with exploring convolve filters but has hog, ghostlyAura, butterFly which is a colored fly 4-7-2014, so early on, half a year before DemonLover dated again on June 4th, 2014 So many functions, the list goes off eclipses page relabelling function replaced by '%0.3d' % d Ghostly_Aura: Duplicate Code: removed to Ghostly Aura Much duplicated, unorganized code Histogram of Gradients: killed analyse tester, filter no longer worked, question why reworking refactored as a simple hog filter Far from DRY: every function repeats itself EmeraldEyes: classic effect, from 400 lines to a lazy 100, but lost gif and multi image capability ironically, will likely only add a line or two (and a few dozen to the class) when added back so, a 4x programmer, I am PauflerNetGif I used it to make a Birthday Gif Combo to resize, watermark, and make gif deleted wholesale ApplyAllToAll Batch sampler that I stopped using, forgot about From all the changes, moves, renames easier to build again from scratch Utilities: - inserting this here, so revisions stay in order doc_converter (.doc to .txt, .html) made smaller, tighter img_work(again) SquaresMultiTestArea (squares and grids) 447 lines at start, looks to be grid test area (like for mazes) Still at 447, after pasting in paint.test_squares complete, which should add lines (after doing all the work, of course) 200 at the end, bug_eyes to montage, half is a test output Much better islands(5-18-17) moved from procedural, folded tests back into one file A year ago, I hit a snag and got discouraged started by killing 200 lines of slop (at 200 with tests) changed name to drawing_circle_fill recursiveInfill eh, for the most ignoring the old, old had better quality but old, confusing, it was a one shot renamed to borders (image framing) so, a good module to have, good start old deleted, never really looked at, used PIL good for the idea, the next step, working on borders itself, the old code was a one shot I remember thinking, I should have just done it in a photo editor at the time zebra 200 lines, left in crapy shape, as saved output looked like crap not the good stuff, good thing I remembered obvious redundances (save, black white, invert, etc) 250 lines, refactoring/numpy practice and can actually use but beyond that, I question utility commodities Looked at, imported gold, renamed folders, bailed on any further action img_work (again) power_effects (previously nxn pixelate) chopped all sorts of length mainly in a shorter loop for tester at 0.25 provides a different way to posterize cv2_hogtest no longer have cv2, moved to graveyard as holding skimage_effects 650 lines, revisiting again tester added a tester module, organized as such, 17 output images it doesn't seem that impressive, like I have done that much