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 - "list comprehension"
-
Colleague: "Python is slow..too much slow."
Then I look at the code:
Eight nested for loops, inside two of them, two function calls and three list comprehension. That function has 2 nested loops and two "objects.all()" Django method, plus a list comprehension too..
Yep, Python is slow.20 -
"Pythonists don't comment, they write readable code."
Yea, tell that to the list comprehension with three lambdas21 -
Bossman freaks out over every little thing (ironically unless it's important).
Bossman also just set our papertrail 500 filter to forward him a copy of every "critical alert."
Fuck me.
He has zero technical knowledge and zero reading comprehension. He literally forwarded one and said "This has one lots of info in it. explain it to me." (It was a log usage notification. in plain English. It had maybe three numbers in it.)
There's lots of useless "500"s in the list we don't care about. API Guy used the finer as a debugging alert system, and peppered his logs with "500 internal hey look at this." In fact, none of the 500s were even interesting; all but one was spam.
All day I've been tending to freakouts and accusations of me not doing anything. Ugh.8 -
Python is such a elegant language, but why can't I have an if-clause on a simple for-statement when I can have it in a list comprehension??22
-
So I need to let off some steam, let me know if you think I need to calm down. Personally I'm just having a hard time understanding my team lead.
So I've been trying to update our codebase for the past two months so we run tests against the latest versions of each respective major browser. I've also been trying to cleanup our code and split it into logical modules.
Need I add, according to Bitbucket, I've written over 80% of our code on our 4 projects with 4 team members including myself.
He's out for a week, so I decide it's fine time to get some work done -- which is ridiculous in itself. I finish, add unit tests for crap I missed because he kept shutting down my PRs for shit he couldn't understand.
He tells me on Friday, when he got back, that he'll be declining my pull requests because my code is too complex -- my team lead -- thinks list comprehension and OOP in Python is too complex. Doesn't understand why we need to have pep8 lint tests, or why we can't just export one giant monolithic client package with over 3k lines of code.
Is it worth arguing or should I just let my department head know I can't work on this team anymore? He won't get talked to or fired, he's been at my company for 6 years and he's in the inner circle.6 -
It has been a week now since a co-worker and I started mentoring this intern who joined our team. I have to say it is quite satisfying. His reaction when I told him about lambda functions and list comprehension in Python was gold. I feel good teaching him stuff and the best part is that he's ready to learn, has a brain of his own that he uses and I'm hoping I learn stuff from him too!!!
-
Python list and dictionary comprehension is some crazy awesome black magic. More languages should have these.5
-
Python list / dict comprehension, one of the numerous reason I truly love python. Simple and powerful abstraction2
-
Learning Haskell is pain
Haskell fucks with your mind and enjoys doing it
Every Haskell list comprehension is the most convoluted piece of shit I've ever seen, until I see the next list comprehension
The Haskell compiler errors are the worst I've ever seen, and I've worked with fucking c++
AND NOTHING MAKES SENSE! I FUCKING HATE HASKELL5 -
I just watched the GitHub training videos at http://youtube.com/playlist/... and I am at the same basic comprehension level as I was when I started. Cannot keep track of all the switches, options, and commands and when it's best to use them! GAH!5
-
!rant
so, I somehow got an interview with NASDAQ for the summer internship this year. somehow it was the only company that had cleared my resume for the interview process, other companies didn't even scheduled one.
and I messed up the first technical interview.
the interviewer asked me to find the largest element in a nested list in python.
for ex [[3,4],[5,2,9],[1,7]] would return [4,9,7]
it was a verbal interview on call and he asked what would I use? Lambda function or list comprehension.
I said lambda function. (I knew it was list comprehension, if I had to code I wouldn't have got confused between the two)
later he asked a couple of questions about linux and boot processes, I could answer some of the basic ones but not after 3rd or 4th question.
now I don't think I have anything to do for summer, as it's a little too late for finding the internships.
any advice?10