Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "clean monitor"
I just spent 5 minutes trying to fix an error saying that I am missing a ";".
I saw a ; at the end of statement but I kept on getting the error.
After cleaning the monitor the ; disappeared and I was able to see the problem.
Clean your monitor once in a while.11
Root rents an office.
Good thing I don't work for a company that handles sensitive data! /s But at least I don't have access to it, or any creds that matter.
So, I've been running my phone's connection through a tor vpn and sharing that with my lappy. It works, provides a little bit of security, but it's slow as crap. GET YOUR SHIT TOGETHER, REGUS.
AND WHILE YOU'RE AT IT, CLEAN THE SHIT OUT OF THE FUCKING BATHROOM FFS.
Ugh. $12/day to work in a freaking wind tunnel (thanks, a/c; you're loud as fuck and barely work), hear other people's phone conversations through two freaking walls, pee in a bathroom that perpetually smells like diarrhea, and allow anyone and everyone within a 50+ meter radius to listen to everything my computer says.
Oh, they also 'forgot' to furnish my office, like they promised. Three freaking times. At least I have a table and chair. 🙄
Desk? What desk?
*sees everybody saying how great Linux is*
*Tries deepin OS*
*Keyboard backlight not working *
*Searches YouTube for a fix*
*Fixes the Backlight*
*Screen resolution set to 800*600 by defualt (monitor 1920*1080)*
*Grub decides there is no need for a windows entry*
*plugs in Windows USB*
*sel disk 0*
*sel vol 3*
*boots into windows*
*Follows a guide to remove grub*
*Learns the lesson*
*Ooh OS X seems nice*
I'm now typing clean code. 
And it shows - the code really looks better. 
 I cleaned my keyboard by removing every single key and wiping it with alcohol.
 After I bought a new monitor, that is.1
I'll use this topic to segue into a related (lonely) story befitting my mood these past weeks.
This is entire story going to sound egotistical, especially this next part, but it's really not. (At least I don't think so?)
As I'm almost entirely self-taught, having another dev giving me good advice would have been nice. I've only known / worked with a few people who were better devs than I, and rarely ever received good advice from them.
One of those better devs was my first computer science teacher. Looking back, he was pretty average, but he held us to high standards and gave good advice. The two that really stuck with me were: 1) "save every time you've done something you don't want to redo," and 2) "printf is your best debugging friend; add it everywhere there's something you want to watch." Probably the best and most helpful advice I've ever received 😊
I've seen other people here posting advice like "never hardcode" or "modularity keeps your code clean" -- I had to discover these pretty simple concepts entirely on my own. School (and later college) were filled with terrible teachers and worse students, and so were almost entirely useless for learning anything new.
The only decent dev I knew had brilliant ideas (genetic algorithms, sandboxing, ...) before they were widely used, but could rarely implement them well because he was generally an idiot. (Idiot sevant, I think? Definitely the idiot part.) I couldn't stand him. Completely bypassing a ridiculously long story, I helped him on a project to build his own OS from scratch; we made very impressive progress, even to this day. Custom bootloader, hardware interfacing, memory management, (semi) sandboxed processes, gui, example programs ...; we were in highschool. I'm still surprised and impressed with what we accomplished.
But besides him, almost every other dev I met was mediocre. Even outside of school, I went so many years without having another competent dev to work with. I went through various jobs helping other dev(s) on their projects (or rewriting them), learning new languages/frameworks almost every time: php, pascal, perl, zend, js, vb, rails, node, .... I learned new concepts occasionally (which was wonderful) but overall it was just tedious and never paid well because I was too young to be taken seriously (and female, further exacerbating it). On the bright side, it didn't dwindle my love for coding, and I usually spent my evenings playing with projects of my own.
The second dev (and one one of the best I've ever met) went by Novo. His approach to a game engine reminded me of General Relativity: Everything was modular, had a rich inheritance tree, and could receive user input at any point along said tree. A user could attach their view/control to any object. (Computer control methods could be attached in this way as well.) UI would obviously change depending on how the user could interact and the number of objects; admins could view/monitor any of these. Almost every object / class of object could talk to almost everything else. It was beautiful. I learned so much from his designs. (Honestly, I don't remember the code at all, and that saddens me.) There were other things, too, but that one amazed me the most.
I havent met anyone like him ever again.
Anyway, I don't know if I can really answer this week's question. I definitely received some good advice while initially learning, but past that it's all been through discovering things on my own.
It's been lonely. ☹2
Finally got the time to show my setup. Darn simple, but clean as well. How do you think?
LG 29 inch Ultra-Wide monitor (LG29UM58E)
Logitech BT Keyboard K380
Logitech Wireless Mouse B175
LG 15 inch laptop (15U570-KA5EK), not in picture
Rubber duck (a.k.a. TOLO BATH DUCK)19
About a year ago I found this old desktop in my storage room. I plugged it into a monitor, started it, opened a game, and the game was running at about 5 fps. Unplugged it, opened the cover, saw loads of dust, got rid of all the dust, started it again. Fps increased 1000%.
Moral of the story is, CLEAN YOUR FRICKIN COMPUTER.3
Got a second 1080p monitor for Xmas ans it gave me an excuse to clean my desk off ;)
I included the obligatory 'screenfetch' window as well, haha.
Now to see if I can hack together something resembling a KVM switch from parts I have, to use the Mac mini on one of them (when it's needed on rare occasion, lol).
P.s. I'm sure many of you have more bad ass setups, I even used to have quads myself... But I'm not posting this to start some pissing contest! It's just mine and I'm proud of it :P
Happy new year everyone!!!!6
I often read articles describing developer epiphanies, where they realized, that it was not Eclipse at fault for a bad coding experience, but rather their lack of knowledge and lack of IDE optimization.
No. Just NO.
Eclipse is just horrendous garbage, nothing else. Here are some examples, where you can optimize Eclipse and your workflow all you like and still Eclipse demonstrates how bad of an IDE it is:
- There is a compilation error in the codebase. Eclipse knows this, as it marks the error. Yet in the Problems tab there is absolutely nothing. Not even after clean. Sometimes it logs errors in the problems tab, sometimes t doesn't. Why? Only the lord knows.
- Apart from the fact that navigating multiple Eclipse windows is plain laughable - why is it that to this day eclipse cannot properly manage windows on multi-desktop setups, e.g. via workspace settings? Example: Use 3 monitors, maximize Eclipse windows of one Eclipse instance on all three. Minimize. Then maximize. The windows are no longer maximized, but spread somehow over the monitors. After reboot it is even more laughable. Windows will be just randomly scrabled and stacked on top of each other. But the fact alone that you cannot navigate individual windows of one instance.. is this 2003?
- When you use a window with e.g. class code on a second monitor and your primary Eclipse window is on the first monitor, then some shortcuts won't trigger. E.g. attempting to select, then run a specific configuration via ALT+R, N, select via arrows, ALT+R won't work. Eclipse cannot deal with ALT+R, as it won't be able to focus the window, where the context menus are. One may think, this has to do with Eclipse requiring specific perspectives for specific shortcuts, as shortcuts are associated with perspectives - but no. Because the perspective for both windows is the same, namely Java. It is just that even though Shortcuts in Eclipse are perspective-bound, but they are also context-sensitive, meaning they require specific IDE inputs to work, regarldless of their perspective settings. Is that not provided, then the shortcut will do absolutely nothing and Eclipse won't tell you why.
- The fact alone that shortcut-workarounds are required to terminate launches, even though there is a button mapping this very functionality. Yes this is the only aspect in this list, where optimizing and adjusting the IDE solves the problem, because I can bind a shortcut for launch selection and then can reliably select ant trigger CTRL+F2. Despite that, how I need to first customize shortcuts and bind one that was not specified prior, just to achieve this most basic functionality - teminating a launch - is beyond me.
Eclipse is just overengineered and horrendous garbage. One could think it is being developed by people using Windows XP and a single 1024x768 desktop, as there is NO WAY these issues don't become apparent when regularily working with the IDE.9
Best debugging trick ever:
Wear your fucking glasses while coding so that you do not mistake COMMA(,) with a DOT (.).
1. Doing that (which obviously aren't a huge number) and
2. Cleaning my screen (yes that).
I was able to wrap my head around the issue that almost wasted one day.
So what I intended to pass as string concatenation join operation value actually was being passed as an argument to the underlying function (that wasn't taking care of it and returning a timestamp from thin air).
Murphy's Law in production and practice.
Depressing music continues......!3
My standing desk (yes with a button became a standing desk) with a usb pedal that I scripted on Linux to move the mouse cursor.
There are also papers top of the monitor to help me to remember new hotkeys of Vim or other software.
My "clean" desk with a lot of fidgets that right now is quite clean.4
I prefer to have lesser things to my desk except my monitor I connect my laptop to and my speakers and peripherals.
I like my desk to be absolutely as clean as it can get.
tl;dr I should start writing sitcoms
So my mind is going crazy. Last I night I had a dream about a colleague. He was working on a kind of smart photo frame thingie, which should be published to stores like walmart and so on. Also his 30th birthday was around the corner and his soon to be wife was driving him nuts. So the stage is set for some action. I was visiting him along to said store on the publishing day since he was that paranoid as his job was tightly connected to the success of this project. Anyway now the whole thing gets this tragic comedic type of feeling. He is about to go through a mental breakdown in the very store. Destroying things, yelling like a gramps and stuff you know from sitcoms. I swear at some point he did loose his pants. Also the staff didn't give a damn about him. I was trying to clean his path of destruction so that no one takes note of this. Of course I failed gloriously. This thing goes on for a while. Finally in some kind of credits scene he was sitting in front of his laptop reading a blog post about the success of this thingie. After an insanly long pause of suspension he was starting to kiss his monitor in relief. I swear to god there was fake laughter somewhere in the background like in the good old sitcoms.... Never eat pizza right before sleeping....