Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "clean"
-
I was told during my initial interview that the book "Clean Code" is their Bible here.
And it's true. It's lying, unread in drawers and shelves all over the office.15 -
(!Rant) My Programming cave.
A clean environment has always been one of my 'must have' tools for development.
Keeping it clean keeps you calm while busting down on some difficult problems.
And you better believe late night programming marathons are a treat.23 -
Gf, shouting: why are you using my premium shampoo and hairdryer on your keycaps?
Me: because just like your haircut, they were unnecessarily expensive, they embody all my self worth, and deserve to be shiny and clean.
Gf, pondering: ... Could you clean my keyboard next?4 -
I never liked cleaning my room.... usually the conversation goes like this
Dad: clean ur room
Me: meh... I'll do it later
$200 robot vacuum: clean ur room otherwise the crap on the floor will jam me
Me: ok ok... Give me a few mins30 -
This guy next to me in the train is coding C#... but his codestyle looks like... no words... I am now reading Clean Code!
I hope he will notice!😂8 -
wrote shitload of clean architecture beautiful code and compiled successfully on the first try without crashes or errors11
-
Samsung.
They basically have Chinese crapware on many phones, disguised as "Smart Manager" or some bs. It's "powered by Clean Master". Clean Master is crapware developed by Cheetah Mobile.11 -
Just finished all the form function, time to clean up I guess.
Did you guys like to write it clean from start or do it later at the end?38 -
Picked this up the other day. Hope it's as good as people have been telling me.
If so, then here begins a new journey for me to better code.11 -
The proper use of comments is to compensate for our failure to express ourself in code.
Quote of the book "Clean Code" by "Uncle Bob".
#ShotsFired6 -
Ah, these classic LINUX commands:
$ unzip; strip; touch; finger; grep; mount; fsck; more; yes; fsck; fsck; umount; clean; sleep3 -
There is no reasonable excuse for doing anything less than your best.
- Robert C. Martin, Clean Code4 -
Had a friend who was forced to document his own code. He gave up after an hour of trying to figure out what methods 'somethingsomething()' and 'somethingsomething2()' did...3
-
I remember reading a comment on here that as developers, we are really authors. And that has changed how I write (and even read) code. I don't remember who and where it was, but whoever said that: Thank you.
-
Thank to “Weekly Rant 119” we all had to clean the place where working, eating, gaming, chilling, sex, porno watching, bugs fighting ,duck fucking, etc etc etc.
Salute to @dfox !2 -
That feeling when you refactor that spaghetti mess into clean beautiful code that passes all tests flawlessly4
-
I'm now typing clean code. [1]
And it shows - the code really looks better. [2]
.
.
.
.
[1] I cleaned my keyboard by removing every single key and wiping it with alcohol.
[2] After I bought a new monitor, that is.1 -
⬜️Finish my indie Game
⬜️Publish my Indie Game.
⬜️Make my wife pregnant.
⬜️Clean codebase current C++ job
⬜️Learn Piano play
⬜️Create clean coding presentation
⬜️Be more productive11 -
Why to most developers who look beautiful are JavaScript developers (looking at you Instagram) and all of them have the MacBook and perfectly clean desk. How's that possible.
If I were to clean up my desk it will take around 45 minutes to complete.21 -
You know it...from the introductory page of "Clean Code" by Robert C. Martin.
Which door represents your code?2 -
I've never had a problem with helping junior devs but when their keyboard and mouse looks like they bought it used from a primary school - glossy and covered in food etc... All I can think is burn it..... Burn it with fire.
Seriously... Keep your peripherals clean... They get nasty pretty quickly.1 -
*Build project*
*Build failed*
- Arrrg! Lets try cleaning first.
*Clean project*
*Clean failed*
- ...
- What the FUCK! How does the clean fucking project fail?!? Just delete fucking output you pile of shit!4 -
Front End vs Backend.
Today is my annual 'clean your keyboard' day. Anything used as much as a keyboard is bound to get dirty. Keep your gear clean kids.6 -
Refactoring
When wrote some abstraction,
commented out the old stuff,
replaced it with the new calls
and after it passes all tests
get to remove all the old crud.
( ☼ ◡ ☼ )
I feel clean again.3 -
FOR FUCKS SAKE, CLEAN YOUR KEYBOARD!
Today we had some presentations on a class, I was near the projector, so I volunteered to control the presentation flow.
Fast forward three teams, arrives this guy, lets his laptop and and I open it... SMELLS, FUCKING SMELLS BAD. Add to that grease and dirt all over the keyboard... I just pressed the right arrow key with the bare tip of my finger...
It's not that hard to keep your workstation clean. Most of all, odourless.4 -
As a developer, I want to write clean code and I want managers that understand the importance of clean code. I don’t want to work with people who force me to deploy untested code because "we need this feature working today".9
-
Uncle Bob and Martin Fowler. Their books (“Clean code”, “Clean architecture”, “Refactoring”) and Twitter posts have changed the way I look at software development.5
-
Visual studio 2017 with Xamarin:
* writing some sweet code, life is good.. build and run.
*change int age to 2, build, build failed, no single message why.
*clean, clean failed, no single message why.
* build rebuild clean all or by project, nothing works, no single message why.
*change nothing, restart VS, build success !
* writing some code, same problem
*restart VS, "this project is not compatible with Visual Studio"
Good bye guys, I'm gonna kill myself7 -
Why do people insist on moving stuff on my desk!
I've very particular about my desk, have my monitors, laptop stand, stands for devices etc. setup the way I like them, and every so often someone sits at my desk when i'm not in and just shoves everything around.
Last company I worked for, I came back from holidays to a thunderbolt cable, the connector of which, had been crushed under the wheel of a chair, because someone left it on the floor.
... Is it wrong or not "proper", to send around an email saying the next person to touch my stuff gets stabbed?10 -
Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best. - Clean Code2
-
Bob Martin. His books Clean Code and the Clean Coder, and all his talks on architecture, SOLID and TDD. I could listen to him talk for days, and he taught me everything i know about writing clean code.2
-
Sad. Got a new job. Apparently, readable code is not a priority. My suggestions were being ignored. Does the benefits of condensing an if-else to a simple one-line return statement really that hard to understand? Does making clean and readable code should be an optional thing to consider? It doesn't help that I'm the youngest, they felt like I don't have enough street cred. I'm starting to hate my job.11
-
The company that I currently work for has a strict clean-desk policy. So strict, there's even have a little booklet that they have about 1000 copies of lying around the office everywhere. In the booklet is a playful description (with cartoons!) of what can go wrong when sensitive information is lying around, or shared with outsiders through careless talk, etcetera. Employees are encouraged to take a copy of the booklet home.
Also in the booklet is a description of the importance of having a good password. It mentions the required minimum (x) and maximum (x+1) length of passwords, mandatory character classes, and how often the passwords have to be changed.6 -
Fuckwit tried to lecture me on clean code.
Checked his work, it seems like he writes the spaghettiest spaghetti I've ever seen. Who would have guessed it. At least he knows that something called 'clean code' exists.5 -
While I was in university, I used to be a good programmer (which I still am :D ), my friends used to copy my code for the assignments. One day, the teacher (one of my my mentors) called me in his office and said, "this is your code".
I'm like, in my mind, "How did he know this?"
The teacher said, "If you let others copy your code one more time, I will fail you".
I nodded my head in affirmation.
Later I understood that I've been a "Clean code" principle follower even before I knew this term. So, it was pretty easy to differentiate my codes from my friends. The teacher is really a genius ^_^5 -
Ah.. the beauty of clean code.
I wrote a very cleanly written program two years ago. Proper variable names, not too many, right naming, right design pattern,.. Now I come back to it and I am able to instantly figure out the code again. It only took me half a minute.
The importance of clean code... that's something the industry needs to understand more. Well, then there's the money issue. lol5 -
How to clean the new Macbook Pro ->
- Clean outside
- Open MacBook
- Mac boots up, fuck
- Shut mac down
- Clean the keyboard
- Accidently boot it up using Touch ID while cleaning inner aluminum, fuck
- Shut mac down again, because haven't done touchpad and screen yet
- Clean remaining parts
- Boot mac up
Efficient! :D1 -
There is clean code. There's spaghetti code. And I just discovered there's spaghetti after being thrown up code.8
-
New toy. However, I am at a dilemma. Do I keep its aesthetic nice and clean, or do I make it awesome with stickers. Also. Do I take off the intel and nvidia stickers to clean it up further. Decisions decisions.35
-
I love it when rather than fix the bug that is causing the faulty data you write a bot on a schedule to clean up the faulty data. It's like a bot battle who can mess up / clean up the data the fastest. Unless your clean up bot has a bug then you are just F'ed.2
-
"The only way to make the deadline - the only way to go fast - is to keep the code as clean as possible at all times."
Uncle Bob
Spread the word.1 -
i see all these nice looking, clean, organized desks that people are posting. Then there's my desk5
-
Hackers hid backdoor in CCleaner, with 2 billion downloads and 2.3 million greatly affected and detected so far, go fuck yourself you Windows fucking gloating noob fanboys showing off how you clean your C with CCleaner like a breeze, go clean your ass now and hope there's no backdoor there! 🖕8
-
The design process.
Call me old fashioned - but clean-code/clean-architecture/SOLID is not as important as simplicity and coherence.
I JUST NEED FUNCTION THAT DOES STUFF! But noooooo better overly design EVERYTHING!4 -
Opened GitHub as usual today, somehow found my old repositories (created when I was a fresher). Opened them and felt why I'm still on this earth, pulled them, restructured all of them, pushed them back and now I can sleep!! 😴
-
I came to this company. I saw spaghetti code. I told myself to write clean code and also clean the existing code. I took too much pressure for too little return. I am done with this shit. I will now write clean code but fuck the old spaghetti code!2
-
A lot of people are very good at making extremely complex and hard-to-read React components.
Very very few are good at making clean and easy-to-understand React components.8 -
When you're proud of writing plain clean C and GitHub marks it as C++ Objective-C and Objected-C++.5
-
When you're really fuckin proud of that extremely clean, elegant, efficient 30 lines of code. It might not be important, but holy shit it's pretty!!3
-
After you brainstorm on a white board, take a photo, and clean up after yourself.
Coworkers were complaining about dried white board marker.
I told them to use the hand sanitizer from the bathroom, it will clean off all marks.
Now you know too.2 -
To be honest, I prefer clean laptops, without any stickers on it, but I love dbrand skins, in some ways, they are stickers, awesome full-laptop-body stickers that are great. Used to have marble and concrete on my XPS, now it's just clean.5
-
Our Code everlasting
The all creating One
Coders Almighty
Through Our Holy Lines
Conceiving Algorithms
Konrad Zuse our Savior
I believe in Clean Code
I believe in Free Software
I believe in Open Source
Our Code is three in one
I believe in the bug-free project
That'll be compiled again
For I believe in the name of Alan Turing -
After a failed brew.sh upgrade none of the nodejs packets were working anymore. I've spent the whole day googlling, reinstalling, cursing, asking for help, crying - without luck.
My boss got angry because he wanted that site yesterday.
Now i'm forced to clean install my mac tonight. I'm so tired.
Fuck!1 -
When you try to help someone clean their computer over the phone, and they install a new program to "clean" their computer mid-call.
-
Imagine.
You have a beard. You are in a restaurants toilet. The beard likes to eat half of the meal itself. You want to clean your beard, so you sprinkle your beard. Now its clean and beautiful. Then you realise - there is only one of those air dryers. You are screwed.13 -
>mvn clean install
[ERROR] Bruh, couldn't find any of these classes you're talking about.
>mvn clean install
[INFO] The job has completed without errors.
Seriously, why is Java/Maven/Spring so temperamental. It's like it has to be in a good mood to compile for me.4 -
Yay ...
No more !important in SCSS...
All colors pulled from variables...
Such code ... Very clean 😂 -
Dont forget to clean everything....
If an issues comes from now where and for no reason... Clean everything.2 -
When I was younger my mom would tell me to clean the soda cans off my desk. Now my wife tells me to clean the beer cans off my desk. It nice to have a beer when late night programming :)
-
---Me coding away---
ESLint: Hey...
ESLint: Hey... don't-
ESLint: No I think-
Me: Not now bro! This is fine, I need to get this done.
---Months later I go back to clean some things up and I look to see what ESLint has to say----
ESLint:4 -
After I read clean code I talked to a fellow developer about some concepts. Later I reviewed some code of him and he clearly got the concept (not)
Java
...
If (isTrue(someValue))...
public boolean isTrue(boolean value){
if(value == true)
return true;
else
return false;
}9 -
At our workplace we clean our offices ourselves, and I don't have a problem with that. My boss asked me to clean the very dusty server room because I'm the only girl in the IT department. I feel somewhat discriminated as a woman in tech. Would it be wrong for me to refuse.25
-
Accidentally nuking my hard drive with diskpart's lovely clean command because I was trying to remove an Ubuntu partition.1
-
I'm doomed.
My first production worker script is making multiple active attribute of a user. My script should be able to deactive the old attributes if there is new one.
Months ago, this issue occured. My teammate from team A take over the script to investigate since I am busy working with team B.
Yesterday, I found out that I, myself, overwrite the fix my teammate made for that because of a new feature.
I have to clean up the affected records on production on Monday..and i have to explain to my manager. T.T
LPT: ALWAYS PULL REPO before developing new feature... -
Late night kaggle session, and I'm enjoying how cute and clean this dataset is!
I'm jealous if data scientists always get to work with such neat sets! Dude! I got .95 acc without any effort! This is so... Weird. 🤔4 -
Let's face it: I am and will always be a tinkerer. Yes, I know my ways around, I can sneak into legacy code bases easily and throw new stuff in there, I've seen software stacks. But scarcely sound design, really modular. Even from the cleverer, experienced ones. They can master more complexity, so they can handle more spaghetti. Some essay from the 80's had this grand idea to organically 'grow' software. That's how it looks like most of the times: cancerous, parasitic super fungi (armillaria). Yeah, we all know have to fight bit-rot and entropy, but it was all lost before already. We'll never get rid of legacy protocols, legacy code.
And even when we go green field, start a fresh. Yeah, take a great design, make everything new, after some months of throwing features and outer constraints at the thing, it's the same old mud again.
But we can still dream on: some day I will design great APIs, I will have great test coverage, documentation, UML design, autometed tests, fuzzing, memchecking, I'll work professionally, clean coder style.
Pfft forget it. Maybe change for consulting, because we'll continue to dream of the 'clean' code, so you can sell the next 'recipe', development method. It's like diets. As effective. For the one selling.2 -
Stakeholder: Can you investigate the problem with this user profile? We made updates to system A, but user is saying it’s the wrong info on the website.
Me: Looks fine to me. Looks like your updates just needed time to trickle down. Though, you will need to clean up this user’s data because it can cause X problems. There’s not much I can do since the site just displays info from system A.
SH: Can you delete the user’s website account and we can ask user to create a new one?
Me: …Ok, let’s try this again. It’s not necessary to delete the account and make the user create a new one. It’s not going to resolve the X problems that I mentioned. The website really needs clean data from system A.1 -
After reading Clean Code principles:
Before you rename your method, remember to use the refractor option
😌4 -
Everytime I write clean in diskpart and press enter, I feel like I am pressing the nuclear bomb switch
-
Met a guy today who in all seriousnes said that our M.O. should be "hard to write, hard to read". Dude. Shit like this is why nobody want to collaborate with you..2
-
UGHHH XIAOMI CAN YOUR SHITTY FIRMWARE STOP NAGGING ME WITH "U NEED TO CLEAN UR PHONES STORAGE" NOTIFICATION2
-
Goals:
-> Write clean code
-> Never trust the code
-> Never use PHP
-> Stop procastinating
-> Stop ranting3 -
How do you remove oily keys on keyboard?
What I’ve tried so far are rub it using a pencil eraser and clean it using cotton with alcohol.
Damn. I’m having a hard time to remove it.7 -
How to write unmaintainable code and keep your job for life, tip #476;
Use A.C.R.O.N.Y.M.S. to keep the code terse. Real men never define acronyms, they understand them genetically3 -
Teach students the importance of clean code/architecture and testing. Even if they dont yet understand the more complex topics such as architecture, they should understand why quality is important and that software is a craft more than a science. You cant just apply principle X and insert design pattern Y and profit++. You actually have to think and constantly improve. AND TEST.
Think I would probably also cover things like build automation and continuous delivery. These are now important things for junior devs to know about going into companies. -
I'm trying to convert a legacy .NET Framework web api to .NET Core, the project and its supporting libraries are in awful conditions and to make things worse at a certain point someone has the genius idea of introducing Uncle Bob's "Clean" Architecture into a part of it so stuff which could simply look like this
public string doStuff(string input){
// Do the stuff
return output;
}
becomes a convoluted mess like this
public class StuffDoerRequest {
public string Input{get;set;}
}
public class StuffDoerResponse {
public string Output{get;set;}
}
public interface IStuffDoer {
public StuffDoerResponse Execute(StuffDoerRequest request);
}
public class StuffDoer {
public StuffDoerResponse Execute(StuffDoerRequest request) {
// Do the stuff
return new StuffDoerResponse() {
Output = actualFuckingOutput;
}
}
}
Edit: sorry for the lack of indentation, apparently DevRant trims leading whitespace7 -
I saw multiple attempts to convert an int to a String by concatenating it with an empty String...
String s = someInt +"";
(I'm guessing the compiler uses a StringBuilder here which still ends up calling Integer.toString())2 -
If your project gets fucked up beyond repair, for example by your IDE (I'm looking at you, Android Studio) try this:
0. Backup any ignored but essential files in your project (e.g. secrets) outside of your project directory.
1. Close your IDE.
2. git clean -xdf
3. Restore any backed up local files.
4. Reopen the project as a new one in your IDE.
This is awesome, because it cleans up everything non git and not committed. So any local project files configured by your IDE will be nuked, which allows for a clean start. Also, all your locally committed work is preserved.
BTW, if you really need to start over (even with git), then just remove all the things an clone the remote repo again. -
IDK why I get annoyed by underscores before private member names... Is i it useful or just an old relic?16
-
Git tip: Before doing "git clean -fd" always think twice and backup the whole folder manually before doing that. Take it from me.
Also be careful with, "git pull" 😩13 -
When client budget is less than the time needed to do a good jobs.
Happens more than I like.
"We’ve all said we’d go back and clean it up later. Of course, in those days we didn’t know LeBlanc’s law: Later equals never."
-Clean Code1 -
I have become the only thing I always hated in a developer. Building a project without a proper documentation.
As a solo developer in a company where I have to do database architecture, front-end, back-end, testing, NETWORKING (I am the most ignorant guy when it comes to networking), product design, there is no time for documentation.
But hey, I have structured the project, files and functions (with comment, parameters type and return type) properly and I understand what I've done even after 4-5 months without touching that specific project so I got that going for me which is nice... I guess.3 -
I love having a clean, open working environment...but I hate doing the work to keep that environment maintained.1
-
People keep sharing their Clean Architecture repository. But most of them clearly don't read the book.2
-
!rant
Julia's mutlithreading macro is soooo awesome and clean for when you want to do computation work :33 -
So I just downloaded devRantron and it's great, it was so easy to install with the .deb file, the website for getting it looked very proffesional and the program itself also look very clean and overall proffesional. The only thing I wish they could have made would be for the boxes containg the rants to be wider, but overall it's amazing!5
-
- Promote source control usage especially in group projects
- Teach clean code principles
- Push for commented code in exercises -
Developer: You can’t just change the build process
Me: I set the “Get Sources” step to clean the build directory
Developer: Yer exactly you can’t do that
Me: It should build from a clean source though
Developer: Yer well it works so don’t change it
Me: Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh2 -
Designer: The web design muset be beautiful, clean and follow modern trends.
Me: Actualy no, design should be just functional part of website. There is no need to be beautiful, clean and has nothing to do with modern graphic trends. Sad truth is almost nobody, besides css galleries, cares.
Designer:2 -
Working now 8 months at a company. (C++)
Every feature becomes a refactor and a code clean
Every bug becomes a refactor and a code clean
Every Refactor becomes a code purge. :/1 -
Just read Uncle Bobs book series:
Working with Legacy Code,
Clean Coder,
Clean Code,
Clean Architecture
Read it in this exact order and each book was better than the one before.
What did you think of them and what other books do you recommend reading?
(Coding books of course)3 -
To all the laravel developers: is there no way to get a clean new app without having to clean out all the default shit? Lumen seems to be pretty good for minimalism, but obv. doesnt provide as much as Laravel, so what do you use or do - do you each time clean out a laravel app before you start developing on it?..5
-
!dev
Needing to (re)move all my organised crime, uh, notes and stuff for the cleaning lady.
And having to tell them everytime they don't need to clean my damn keyboard and mouse as they'll ruin the traction pads and fill up the keys with fluids.. -
Needed semi annual clean out temp files for user in Windows 10 because login is slow fix.
https://answers.microsoft.com/en-us...
I always forget where this is or what it is called. There should be a button for this. There was 20 gigs sitting in there. Reminds me of Windows 95 days and registry cleanout.8 -
Fuck you shitty clean swift architecture. I need to learn swift and mobile apps programming. As if that wasn't already hard enough I also need to understand clean swift. This shit feels like going in circles for the most basic stuff without any tangible benefits.
-
The makefile:
'
GOPATH=$(pwd)
clean:
@echo "cleaning :)"
@rm -rf $(GPATH)/bin
'
the "oh crap":
make clean1 -
#1 clean up the internet of domains, use those beautiful and fancy TLDs - blog, photography, gallery, cloud, house, gov, xxx
#2 more fanatical - clean the internet of cat / dog / [supposedly cute animal] pictures, and later - npm packages1 -
Question to all those who have worked with software architecture: What is your approach when implementing architecture and design into actual software?
I find it very hard to translate UML diagrams and architectural requirements into working code and I feel like there is quite a big "gap" between the two. How to you breach that gap and manage to maintain a clean and comprehensive architecture in your project folders?question clean architecture architecture requirements patterns suggestions project structure clean code software engineering11 -
Feels good to be able to clean up code! Just changed an ugly 5-line while loop into a clean 2-line do-while. Now I just need the rest of my program to work 😂
-
For the fucks sake, friend sent me code with ton of shit like that:
digitalWrite(room6,lv6);}
Is there some nice short guideline how to wire nice clean Arduino/C-based languages?5 -
Just wanted to make a clean install on my iMac. What could possibly go wrong?!
Cleaning the hard disk was interrupted by a process running (kextcache). Catalina wouldn't install ("Incomplete systen on target device". Dropping the terminal I could somehow force unmounting and wipe the disk. Had a BSOD in between. Catalina would still not install ("Failed to install pre boot volume"). Later erasing the disk got blocked by the kernel itself. Felt like trouble and it was: Next time I was greeted with a blinking folder containing a questionmark instead of the bitten Apple.
Last resort: Internet recovery. Installing El Capitan was said to take 7 hours so I took a USB time machine backup of latest Catalina. Installed it, but on reboot it get's stuck when progress bar is at 100%. But at least I've a working recovery again. Yeah, progress!5 -
That moment you realise your desk isn't as clean as everyone else's as you can tell what keys are used by dust cover level when your stickers arrive!3
-
flutter run
>Unable to load asset.
flutter clean
flutter run
*10 mins later*
>Unable to load asset.
*I should prob use ci for this*
flutter clean
flutter run
>Unable to load asset.
*sunken cost fallacy intensifies*1 -
I like my desk clean. Just copy, pen, water bottle, some eatables. sorry no toys, arts blha blha..3
-
I'm not there yet, but hopefully, someday, I'll be an expert in making clean, maintainable code. I want others to look at it and say, "ah, I get it" without staring at it for a long time.2
-
Am I the only one that in order to keep C code clean has a horrible file with macros and util functions?4
-
Compile and debug program, no local variables show.
Clean project, debug program, build errors.
Thanks Mr. Compiler -
From a little bit heated discussion I want to extract this: One big pain in the ass is the human to computer interface. Maybe it's the natural vs. formal language divide, but there's a mismatch deeper than between object and relational models that no ORM can failingly fix.
The whole point of the discussion was on such a point where some wanted an interface more human friendly and I stubbornly insisted on the way it is simple for the computer system. Like not too much human messiness should invade machine. One argument sounded as if human words were like unicode code points which meaning doesn't depend on its representation.
That's raising red flags to me: Nonono, natural language is too messy, keep it out. This poor machine could have been so clean and well designed and we already stacked up so much entropy we still dare to call OS,..
Dunno, what's your stance? Still hoping that your shell one day will be able to process our poor standard English? Or do you think, like me, all those failed attempts show there's a gap you should not even touch?5 -
Why do I always get the response: "just comment your code better" whenever im looking into ways to make my files smaller and more pleasant to read by abstracting big chunks into different files.
Or when i want to generate some documentation with storybooks or something.
Is it just me or am i that rebellious by wanting cleaner code..2 -
Sometimes i feel really messy in my code and unorganized.
after a while i regret what i did and in order to fix this mess i re write the class all over again or i end in an endless errors which is time consuming.
So what's the best way to write a clean code in your opinion other than commenting and identation1 -
So today, I have to clean the project, republish, clean Tomcat's directory, recompile.
That takes forever omg -
Using a framework's helper function that relies on unrelated libraries which have multiple irrelevant dependencies to do something you could write in three lines of code.
Because it's cleaner and nicer to look at -
When a colleague reads the clean code book but the writes code that's exactly the opposite ..... Yeah, hmmmm
-
I was looking for a RRule Generator Component in ReactJS because I (a back-end dev) am lazy af to build front-end component. It drains my energy and I stumbled upon "react-rrule-generator". And holy moly. It is no longer maintained, but it has a very beautiful code. Then I thought, I should search more open source projects where code is clean so I can learn more.
So, do any of you know any open source project, library code or whatever that you think has a very clean code?3 -
A wild random shitcode my coworker wrote 2 years ago appeared
var thingsToCheck = new List<String>();
foreach (var thing in thingsToCheck)
{
// 10 lines of logic
}
Random shit code used confusion. It's super effective.
But honestly, these were the only few lines in his checkin. We still try to figure out what he thought when writing this. -
me: wanting a clean table to work, the less stuff the better, best would be a single notebook and nothing else
also me: backend dev, so 3 monitors, extern keyboard and mouse, some documentation papers and oh where is this cup coffee of last week coming from? -
Try to explain your girlfriend why keeping your OS clean is more important than keeping clean your room -.-3
-
Robert Martin says in clean code, or maybe clean architecture, that one should separate the tests into what is hard and easy. GUI tests are hard and therefore brittle and so we should test against view models.
However on clean agile he says a story is not done until it passes automated acceptance tests which in my experience are always brittle and grow so large and brittle that things grind to a halt.
What am I missing? Are stable acceptance tests possible on the GUI? Should we test only an API?5 -
>$ mvn clean test
>$ [INFO] Building project-name
>$ ....
>$ ....
>$ ....
>Results:
>Tests in error:
> Test.test:75
aauaauugh -
You have to work, but you notice a fiber in your web cam. Clean the lens, but its still there. Open the web cam to the last bit and clean the optical chip.. There you fixed the web cam, but what about the work..
-
How do you handle error checking? I always feel sad after I add error checking to a code that was beautifully simple and legible before.
It still remains so but instead of each line meaning something it becomes if( call() == -1 ) return -1; or handleError() or whatever.
Same with try catch if the language supports it.
It's awful to look at.
So awful I end up evading it forever.
"Malloc can't fail right? I mean it's theoetically possible but like nah", "File open? I'm not gonna try catch that! It's a tmp file only my program uses come oooon", all these seemingly reasonable arguments cross my head and makes it hard to check the frigging errors. But then I go to sleep and I KNOW my program is not complete. It's intentionally vulnerable. Fuck.
How do you do it? Is there a magic technique or one has to reach dev nirvana to realise certain ugliness and cluttering is necessary for the greater good sometimes and no design pattern or paradigm can make it clean and complete?15 -
When people "simplify" their code by refactoring a singular line of code into a completely separate function. The purpose of which is to prepend "https://"3
-
That moment when you quit a job and your colleagues give you a "Clean code" copy. Doing it at joining would be way better.
-
"This debugging session is releaved to be more fractious than expected. Let's clean console and terminal"
-
People making features that has not been asked for and not going to be used, just in case we need it in future.
In this case making a new message queue for deleted audio and putting messages on said queue for every time we delete audio. Not enough with we don't have any uses for it. We also have to pay money for these messages in azure.
Build stuff when you need it. Not when you think you might need it... -
OK Guys I need your advice. I got an (I think it's about 8 years old) Aspire from Acer. Windows 10 is installed after upgrading from Windows 7, which was the worst decision because now it runs at speeds below good. I want to clean install a new OS. But which route to take?
Windows or Linux?
What distribution? I have my knowledge in Debian. Or could I go with RemixOS because it's most user-friendly and best for work abroad? But is there an IDE for Android based distributions?
You see what my dilemma is don't you? ^^
May some of you could help me
Specs: 4GB of DDR3, 500GB HDD, a shitty battery and an AMD Dual core with something about 2.5GHz11 -
When it comes to writing comments in your code, I do quite a lot of it. Even for parts where you just need to read the code to understand what it does. However I do write very clean comments, not even snarky comments where I know someone has done something completely stupid. In my work, I generally keep it very clean. I wonder how many people write profanity, or use weird naming for functions or variables?
https://thenextweb.com/dd/2018/...3 -
I'm bored and can't sleep soooo...
Bad clever code vs Good clean code
Worst / best examples. - what's devRant got
Stories, pictures, links. All mediums are welcome1 -
Experienced my first adware in my laptop.Looking ways to clean it.
Why it is taking an hour to complete.4 -
Waiting for devRant to fix apple subscription so I join. Just common and clean my bank account @dfox2
-
I need recommendation for site/community to improve my (clean) code style?
And, in more general, what are your ways to improve code style and programming way of thinking - more oriented towards bigger picture of application/systems (patterns, architecture, etc.)?3