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 - "lines"
-
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates6
-
Hey geeky girl,
Roses are #ff0000
Violets are #0000ff
I use hex codes, but I’d use RGB for you.
Yet to try it in real life.6 -
Teacher : Explain two parallel lines.
Me : Lines that never intersect
Teacher : Good. Can u explain it with an example.
Me : Me and my crush.
*Whole class laughing, still don't have a clue what I said wrong. That's as real as it fucking gets.*
Fucking education system. No real world examples.3 -
It finally happened. Upper management is demanding a historical (7+ years) of lines-of-code analysis of our entire code base. They want to justify our positions by validating that the lines-of-code has increased in accordance with the economy. I am not kidding. For every year, they expect some percent increase in our lines of code.17
-
Completed a project for my final year CS degree and my professor rejected saying it is of very few lines of code.Hope he learns to evaluate projects on complexity and logic rather than number of lines of code. :/29
-
Father: Son, you're capable of doing anything you want, you can conquer the world if you believe in your dreams.
10 years later...
Father: WTF, Python programmer? Really son?5 -
friend: what are those lines on your screen
me: programming
friend: but like don't you program it
me: yeah but I have to write it
friend: but like don't you have to program the lines
That's when I quit trying to explain it5 -
How to ask him/her out
Dev 101
You:
Do you know there are five different flavored coffees around the world?
Your crush:
No
You:
(Recite the names of all 5)
Your crush:
Okay
You:
The question is:
When are you going to have one with me?
;)26 -
To write 1000 lines of JS, I need 1 cup of coffee.
To write 100 lines of documentation I need 100 cups of coffee.
For some reason time stops when I open confluence9 -
Solved a SEGFAULT in a conventionally undebuggable 800k lines C++ project after 10 hours of investigating 🙌14
-
Removed the front end code using Angular : -9000 lines
Replace it with Vue : +1000 lines
😎
It's not because it's Google that means it's simple.11 -
Do the 'best' programmers use fewest lines of code?
The best programmers write the appropriate number of lines of code. No more, no less.10 -
Comment your best developer pickup line...
here's mine...
I think you're exceptional, I can try & catch you.24 -
SUPERVISOR: You wrote this 140 lines method, it's too long. You should split it up, it's not readable
IHateForALiving: Bruh be serious, this is a single switch-case; I can't split it.
SUPERVISOR: Fine, I'll do it.
HIS CODE: He split the 140 lines method into 2 methods: the first is 4 lines long; it's a try-catch surrounding a call to the other method, 136 lines long.9 -
How can testing and debugging 10000 lines of uncommented, obfuscated code get worse?
Testing and debugging 10000 lines of uncommented, obfuscated code in visual studio.5 -
Refactored a legacy source file and reduced it from 2.8k lines to 300 lines.
Mixed feelings: happy that it is much simpler now and sad that my current project team members never go back to delete unused code.
Testing pending though 😜7 -
Beginner: I wrote 1,000 lines of code!
Intermediate: I deleted 1,000 lines of code!
Expert: I prevented code from being written!1 -
I committed a bug fix that was about 4 lines changed but a full day of critical thinking.
The next day my boss tells me, that I clearly wasted company time and that I should be producing at least 200 lines of code a day. When will people learn that lines of code is not an accurate measurement of work accomplished?3 -
"I think my screen broke, it displays some colored lines... wait I'll send you a screenshot"
Classic5 -
Deleted over 1'500 lines of code over the last 2 days and replaced it with 80 lines of readable, simple, generic code.
And I'm feeelin' gooood 🎶7 -
I finally ended my first side project ever. I challenged myself to write a Tetris game in vanilla JS (with the less possible lines of code), some algorithm was tougher than I expected (2d array hell) but I made it ! 500 lines of JS code, I feel I could refactor some stuffs now...4
-
So yeah. There is some problem on production. I'm working on it for over a day, and can't make it work. The bad method is 500 lines. The method that calls it is almost 1000 lines and its class is 5k. This is the second one. FML :(16
-
You study PHP, OO, Design Patterns, TDD, Zend Framework, Laravel, AngularJS...
Then you find a job, it's Wordpress...5 -
An open letter to those who think lines of code == a decent metric for productivity:
NO!!!
Just because I wrote 10 lines of code all day (yes just 10 very well thought out, many times rewritten) lines doesn't mean my day was unproductive. Quite the opposite, while other devs pad their shit with:
//Adds 1 to I
I++;
Yup. Quality code. LOC doesn't lie.10 -
*** writes unit tests with great zeal and fervor ***
IDE is reporting 85% line coverage, woohoo!
*** grins like a bastard, thinks it's perhaps time to stop and celebrate ***
*** runs branch/conditional coverage... ***
37%
*** facepalm ***3 -
Just refactored 100+ lines of madness to 5 (FIVE!) lines of code. It's pleasing me and shitting me off at the same time.
Some people still get paid per line of code, I'm convinced.21 -
I took my old project and I was like "Why don't fix it and open source it?". So from 2785 lines of code in main class, I've cut it to 1662 lines of code while keeping same functionality plus some more...4
-
Once got 3rd place in a company "code golf". It was open to any language or platform.
I built a functional minesweeper game in Excel with 600 lines of code, complete with color and animation.
The JavaScript version won with 342 lines.4 -
So we have this HUGE ass project , really challenging , that my boss and "PM" have been meeting with the client for months now...
I got on board , guess what?
NO ONE HAVE A FUCKING CLUE ON WHAT THE FUCK THEY WANT!!!!!
ALL FUCKING GENERIC REQUIREMENTS!!! WHAT THE FUUUCK!!!
[ insert fucking pitch screaming!!!! ]
FUUUUUUUUUUCK YOU!1 -
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.4
-
Today I succumbed to will of C# coding standards and started putting all my braces on new lines...6
-
Anyone else remember that thing with the turtle that you gave instructions to and it'd draw lines?13
-
Dev pickup lines:
Hey girl, I may not know your namespace but if you let me cin it'll turn you cout😉
Comment your best10 -
I don't understand all the buzz around chat bots, they are literally just command lines with voice input6
-
Code quality check punishes writing massive documentation strings due to "too many lines of code"
FML1 -
I once made a .less files of 400 lines and today I redid it completely,
The file is now only 40 lines long and readable again1 -
One guy left the company and left me nodeJS project to maintain. It has a file with just a few lines short of 1700 lines of code.14
-
I rewrote something in clean 20 lines of code, while my coworker had worked hard and ended up with like 80-100 lines. I did not talk to him before I did it, but asked him to review what I did. I still had to learn how to properly work together..3
-
21 lines of business logic (including whitespace and comments)
9 lines of build config
386 lines of tests (and tests for the tests)9 -
I just did a code review on an old project of mine. 10k lines altogether. 5.7k TODO's. I can't even.4
-
teacher assigned me a task for a school project that i dont want do.
i thought "F*uck why i have to waste my time on this shit!?!"
luckily I just discovered that it just required 2 lines of C++ and 10 lines of js.😊1 -
I was fixing an issue where I have encountered a Java class written by a recently hired senior developer with 1K+ lines of code.
Inside that class....
One Method => 1K lines🙄🙄
I don't know where to bang my head now😐😐6 -
I just joined a new organization and saw a single file with 9433 lines of code. Advance RIP to me.8
-
1.5 million lines of undocumented spaghetti code. Think 500~1000 lines functions, 5k+ lines classes, string html concatenation. You name it, it had it. And complete unwillingness to improve it by the company. I eventually quit after considering doing it about 2, 3 times.4
-
Python is GREAT 😊😊
makes you feel happy (😊) when fix a datetime problem just in 14 lines...
(36 lines in javascript ☺️)13 -
Once upon a time, devs were evaluated on the number of source lines of code written, and how many bugs were found and fixed. Needless to say, a ten line piece of code became 150 lines, a couple of bugs would be thrown in for good measure.4
-
[Working on a Project]
- Added a few lines for log display to end user
- Breaks everything
- Spent an hour trying to resolve issue, fails
- Commented those lines
- Everything starts working again
- Uncommented those lines
- Everything still works
FML!3 -
Guess who implemented a whole new feature in 3.5 lines of code and a simple CSS class.
This awesome guy.
Take that, frameworks.6 -
Just me getting angry about the reaction after the Cambridge-scandal?
The news are spamming it every hour, and suddenly everyone is "well aware about my privacy" and deleting their Facebooks.
I mean, as if we didn't know this all along. O-fucking-course your data is stored and sold for adds, you accepted it when you wanted to "see which celebrity you are alike"!
I walk around and talk about privacy with people kinda a lot, and nobody seems to care. And then this happens, and people are going nuts. Waow, what a surprise!
Haha, have a nice evening DevRanters! ;) (20:55)@swe15 -
We actually had a small "code on paper" test (more like a recap test) yesterday, but we didn't have to write much rather than just have a basic understanding how classes and instances of those work. It was like 6 small lines of code to insert. I don't mind coding on paper as long as you don't have to write a big program with it as a 1-hour test.2
-
We are so fucked...
-railroads
-highways
-waterways
-?
-super bridges
-fiber optic lines
-?
-4g spots/towers22 -
Assigned to completely new project. Whole day researched and now give report how many lines of code written.3
-
One thing I learned early on was...
"If the bug is not where you are looking...look somewhere else."
I just spent 2 hours looking at 50 lines of code pulling my hair out why it wasn't working. Guess what...those lines were correct. The bug was somewhere else.4 -
My company outsourced project to another developer. First MR he made was 3500 lines. Looking forward to it.5
-
Broken teams,
define Agile principles in 2 lines :
Take 2X to your velocity,
and work 80hours a week ;)3 -
When you're debugging a method called
GetPatronByPatronId(id) and see these lines of codes at the end3 -
What happens when I say "uhm... and what if I remove this two little lines of code?"
Ctrlzctrlzctrlz -
I just found out you can commit single lines of a file without the necessity to remove temporarily debug lines every time ... it has blown my mind.8
-
My friend starts every program by adding some¹ empty lines in the Main function, 'couse "I need space where I can work". I can't understand him.
¹ = At least 30 extra lines.5 -
Show 10 lines of code to a dev.
Dev: It could be improved here and there, it can be optimized way better etc.
Show 5000 lines of code to dev.
Dev: Looks good!5 -
fuck off with the “do x in y lines of python code” it’s getting so goddamn annoying. yes python is concise. yes libraries do everything. you don’t need to show off someone else’s work with clickbait.
everything is like
“make a web server in 2 lines of python code”
import http.server
server = http.server.serve()
“mine bitcoin in 2 lines of python code”
import bitcoinminer
bitcoinminer.mine()
“do crazy math with 4 lines of python code”
import complex
import numpy
num1 = 1
num2 = 1
num3 = complex.addVectorMagnitudes(num1, num2)9 -
Updating a legacy written by the ceo from swift 1.2 to swift 3.1
No storyboard, main controller with 2200+ lines of code and viewDidLoad method with 500+ lines of code.
Almost no comments and code is illisible.
Weeeee8 -
"A drawing should have no unnecessary lines and a machine no unnecessary parts." - William Strunk Jr.
-
This new intern chose to write CSS instead of LESS/SASS even though I showed him how much time/lines of code were saved using LESS because he was "so used to it". Go ahead.. Enjoy writing 1 million lines of css to accomplish the same task.1
-
Im trying to fix a sass build in my current project and it’s just hell. I got 65k lines of output and 2 errors. Where those errors are coming from is impossible to find out since the terminal only displays 10k lines. Aaargh i’ve tried everything!14
-
Me today: Damn it's gonna take forever to find where this issue is, but at least then I'll know.
-me narrows it down to 5 lines-
Tonight me staring at lines: Oh fuck... there's nothing actually 'wrong' here...
Forget it, i'm going to bed.1 -
Just spend 7 hours till 2:30 fixing a minor bug.... Disappearing messages... Git commit? 20 lines...2
-
Oh man. When I look for a job after I'm done with school, I need to watch out for those "pay-per-line" bullshit contracts. More lines? Everyone can do that, but it will cause inefficiency just for the money. I could make a fucking Python Hello World program have 100 needed lines if I wanted to, but why would I? More lines = more typing ≠ more work.3
-
That moment when you're very happy you just completed a hard Haskell kata in CodeWars, with 8 lines, three functions, a lot of functional concepts (which would take at least 30 lines in Java or C#) and they show you the top voted solution by another user with JUST TWO LINES and a lot of function composition.2
-
Confession:
I spend an embarrassingly large amount of time carefully constructing email subject lines.4 -
What’s your worst pickup lines for devs?
How about this:
When my dick gets hard, it gets as hard as NP hard.18 -
Who tf are these people who write files called things like handlers.js which are over 1000 lines long?5
-
The hardest decision right after "how to name this variable?":
Where to put free lines?
(Should there be one after the colon!?)7 -
I feel shitty cause I've never wrote near 100 lines of python code or just a large number of lines in any language. I want to write large amounts of code that will actually work.10
-
I was returning something at MicroCenter the other day. The guy in front of me was picking up a laptop be brought in to have fixed. They had replaced the motherboard, and put all his old data on an external drive.
"So what's this?"
"This is an external hard drive. We copied all the data from your laptop onto it and put a fresh install on it."
"So .. how do I get to it?"
"You just plug it in, over USB."
"So how ... how does that work."
This goes on for a while. Shop owner has to start his computer. Plug in the drive. There was a lot of, "So everything that was on here, is now on here?"
The guy had no basic understanding of external hard drives, USB, copying files ... thankfully while the files were copying from the hard drive to his desktop, he said he needed a longer cable to the router so he could put it on the other side of the room. It took the guy behind the desk an unreasonable amount of time to direct him to the isle with the Ethernet cables, but once he did, I was finally able to return my item.
I'm glad I no longer work in desktop support.1 -
In my previous job, we had in c# a class called static manager. This abomination was thousands of lines long, every member static. Eventually the dev responsible, did split it in to multiple files each thousands of lines using partial class. Worst part? It wasn't even legacy code yet.1
-
“Let’s spend two pages and 100 lines of code on bad practice before you learn good practice in 5 lines.”
Django (& REST) tutorials in a nutshell 🙄1 -
Long days back it was time taking to hack wifi password using coding on Linux kali ,by using few lines of codes etc,,
Nowadays Linux's kali's fern wifi cracker is too easy to use instead of using lines of code.
LOVE TO USE LINUX KALI4 -
Did a programming test today(written), a fking small box for a method with 15/17 lines and a full A4 to write a method with 5 lines maximum...
Just wtv.. -
Writing 20k lines of code and finally during compilation more numbers of errors....Life ends here....
-
Spaghetti code
Mixing about 27 functionalities in an 800-lines-function accessing global variables.2 -
Finish my biggest project :)
In 2017 the project was counting 60k lines of code (which doesn't look as too many) but I was able to remove some libraries and make my custom system, now the project is counting 10k lines of code :)
My dream is to open in these months -
I've taken something I wrote in JavaScript with no guidance in 30 minutes including research and was 15 lines
and I rewrote it in rust essentially and it was ~400 lines (in the end...) and a week and I basically copied someone else's repo but made it shorter (lol)
this feels like coderbaiting6 -
Jesus I can view 10000 lines of lorem ipsum without a problem but I cannot run 3 longer lines without getting 7fps ?!?!6
-
The feeling after you refactor 4000+ lines of ugly legacy code into 2000 lines of code placed in a framework ...these 4000 lines also all one document
-
Just went over some of my old horrible code from before i started studying. I litterally went from 104 lines of if/else statements to about 15 lines with loops. Then down to 2 lines with lambdas...
I saved 102 lines of actual code. And the runtime! I had a loop count to 10000 with no body! It helps to study apparently :/ -
When i decide to change the color lines of my Linux bash i would never imagineted that it was so hard lime that 😅5
-
I run auto-formatter with every typo correction so nobody notices. 300 lines changed, message "formatting"
-
!dev
Why the FUCK do bank waiting lines have to be so fucking long? And why do these old cunts have to spend 30+ minutes in the booth each? If this goes on, I'll have to wait in line for THREE FUCKING HOURS just to raise my fucking daily transaction limit! And all I fucking wanted was to order the parts for my new goddamn rig! If you have too many cocking clients to handle, hire an extra worker or five!2 -
TFW you complete a TopCoder problem in 20 lines of code, only to find another solution done with 4 lines and you have to spend 15 minutes just to understand it..1
-
This was a few years ago in my 2nd year of college. my very first foray into web dev for a team project. long story short, I wrote over 16,000 lines of code. teammate #2 wrote barely 1,000 lines. teammate #3 wrote around 250 lines, around 200 of which I had to rewrite anyway because it was such complete trash. and yet, still, it was this class that showed me I wanted to go into web dev. LOL3
-
Since I started living by Sandi Metz rules for devs, i feel like my code has really improved.
My favorites:
* Classes can be no longer than one hundred lines of code.
* Methods can be no longer than five lines of code.
I hope you find them as usefull as I did.2 -
"Draw lines, young man, many lines; from memory or from nature – it is in this way you will become a good artist. (said to Edgar Degas)" - Jean Auguste Dominique Ingres1
-
If I get a line of code for every time I say I'm gonna be productive, I'd have more lines of code compared to the amount of lines of code I've coded.
-
When you write 20 lines of code, that you don't understand, then you can be absolutely sure, that there is a way to solve your problem in 2 lines of code.
-
"You're one hell of an exception I would like to try & catch"
What's your programmer pick up lines?3 -
Wondering: What does define a BIG project for you?
I just noticed we're approaching the deadline and there are at least 6000 lines of css. Not my personal biggest so far in terms of lines. I think i worked on projects with 10.000 lines9 -
My colleague once wrote 160 lines of ruby code that violated rubocop in 102 lines (and he thinks he is a "clever" senior)2
-
Sometimes, using git feels like performing a particle experiment in physics.
When I have some added lines staged for a commit, then remove those lines and stage it too, the changes annihilate into no changes at all.
Lines add and lines remove is like particle and antiparticle.
The energy that is released upon annihilation is equivalent to the joy of having a clean commit with few changes.2 -
How many lines of code should one be looking at at any given moment? Of course you could zoom, but how many lines do you guys think is ideal?
Currently I have 33 when in full screen.3 -
Did an interesting experiment a few days ago, I counted the lines of code in my dissertation project. My project consists of a cloud hosted web service which allows video streaming, search and upload, as well as an iOS frontend which allows users to record their own video and upload it. The entire project spans about 2,400 lines of code. Then I looked in my work iOS project and saw a JavaScript file for manipulating form elements which spans about 2,100 lines of code. The whole project is about 100,000 lines of code and doesnt do anything special, it just calls a web API and saves/displays results mainly.
The effect of “Enterprise Architecture”1 -
We have an automated check for code coverage. One of the rules "It shouldn't decrease after the change".
And then you delete unused code from the class :)
Now total number of lines decreases and % of uncovered lines increases :/ -
When you don't compile small code snippet and keeps on writing lines of codes and after writing large lines of code that one moment when you start compiling your code for the first time
Brace yourself for errors 😕 -
APi platform for Symfony :
How to transform a system which worked perfectly with 10 lines of code for each functionality with 100 lines of annotations and requires...
Why so much anger ? -
I just used `git add --patch` for the first time and I feel like a git god!
(No, my text editor was not giving me enough control over the hunks.) -
Hey guys,
I'm trying to make use out of Cloc for my company. Cloc is a tool for counting code lines.
I want it to count only the lines in certain file tpyes (like .cs). How do i do this?
I tried --include-lang=[.cs,....] but it doesn't work. What am I missing?3 -
Just finished rebuilding a personal website , pretty normal just a link aggregator I guess and I have got over 160 lines of vanilla CSS but only 15 lines of JavaScript. Is this normal lol ? I think I focus too much on design and "aesthetics" .4
-
Have anyone of you guys ever build a medium or large application with golang? I mean small services with 3000 lines of code are just fine but what about 10k, 20k or 100k loc? Does anyone has experience with such an app?20
-
Sublime text. Just last week I had to implement Java batch with 60+ vars. Without sublime text to edit multiple lines to handle these vars I would go crazy.
The project I work is in eclipse, I think IntelliJ is good to edit multiple lines but eclipse is not very good.3 -
Are there any off-limits items for weeklys (other than politics)? Like could we get a "bad dev pickup lines" weekly or should i just start a thread?2
-
I'm dreading a time that is not near
As a man on a cross I have no fear
I can't believe these words I'm saying
You gotta feel your lines
You gotta feel your lines -
Have to refactor one Big shitty class with thousands of lines of code... Thanks to Bachelor thesis1
-
My day:
-continue working on a project which i haven't -committed for 3 days
-add 20 lines of code
-mistakenly deleted the route file
-restore the file (thinking I'm saved)
-open the file
-50+ lines of code gone2 -
Let us all have a moment of silence for the wasted lines used for individual variable declaration... we were so young and so dumb... YOU ARE IN A BETTER PLACE NOW!!!