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 - "pyc"
-
I met one of my friend from my childhood he asked me what I do for a living.
I told him : "I am a full stack developer"
He : What does that mean? What you have to do in office?
Me: I write code for websites in very simple words.
He: Like facebook?
Me: yes, exactly.
He: So you work for windows?
Me: What makes you think that?
He: Aren't websites comes with the computer?
Me: I am so unfortunate to meet you.13 -
1) Stop going to univershity
2) Started python coding at home from online courses.
3) Got the best paid job among batchmates.14 -
I never touch my code if anyone else have made changes in them without asking me.
I cry like a bitch when I get home.6 -
My first post here, be merciful please.
So, I participate in game jams now and then. About two years ago, I was participating in one, and we where near the deadline. Our game was pretty much done, so we where posted a "alpha" version waiting for feedback.
Just half an hour before the deadline, we got a comment on our alpha alerting us of a rather important typo: The instruction screen said "Press X to shoot" while X did nothing and Z was the correct key. "Good thing we caught that in time, thankfully a easy fix" I thought.
This project was written in python, and built using py2exe. If you know py2exe, the least error-prone method outputs a folder containing the .exe, plus ginormous amounts of dll's, pyc files, and various other crap. We would put the entire folder together with graphics and other resources into a .zip and tell the judges to look for the .exe.
Anyway, on this occasion I committed to source control ran the build, it seemed to work on my quick test. I uploaded the zip, right before the deadline and sat back waiting for the results.
I had forgotten one final step.
I had not copied my updated files to the zip, which still contained the old version.
Anyway, I ended up losing a lot of points in "user friendliness" since the judges had trouble figuring out how to shoot. After I figured out why and how it happened, I had a embarrassing story to tell my teammates.3 -
How I met python
[long read but worth]
There's nothing wrong with falling in love with a programming language for her looks. I mean, let's face it - Python does have a rockin' body of modules, and a damn good set of utilities and interpreters on various platforms. Her whitespace-sensitive syntax is easy on the eyes, and it's a beautiful sight to wake up to in the morning after a long night of debugging. The way she sways those releases on a consistent cycle - she knows how to treat you right, you know?
But let's face it - a lot of other languages see the attention she's getting, and they get jealous. Really jealous. They try and make her feel bad by pointing out the GIL, and they try and convince her that she's not "good enough" for parallel programming or enterprise-level applications. They say that her lack of static typing gives her programmers headaches, and that as an interpreted language, she's not fast enough for performance-critical applications.
She hears what those other, older languages like Java and C++ say, and she thinks she's not stable or mature enough. She hears what those shallow, beauty-obsessed languages like Ruby say, and she thinks she's not pretty enough. But she's trying really hard, you know? She hits the gym every day, trying to come up with new and better ways of JIT'ing and optimizing. She's experimenting with new platforms and compilation techniques all the time. She wants you to love her more, because she cares.
But then you hear about how bad she feels, and how hard she's trying, and you just look into her eyes, sighing. You take Python out for a walk - holding her hand - and tell her that she's the most beautiful language in the world, but that's not the only reason you love her.
You tell her she was raised right - Guido gave her core functionality and a deep philosophy she's never forgotten. You tell her you appreciate her consistent releases and her detailed and descriptive documentation. You tell her that she has a great set of friends who are supportive and understanding - friends like Google, Quora, and Facebook. And finally, with tears in your eyes, you tell her that with her broad community support, ease of development, and well-supported frameworks, you know she's a language you want to be with for a long, long time.
After saying all this, you look around and notice that the two of you are alone. Letting go of Python's hand, you start to get down on one knee. Her eyes get wide as you try and say the words - but she just puts her finger on your lips and whispers, "Yes".
The moon is bright. You know things are going to be okay now.10 -
1 - Writing a 20 lines Python module in 15 minutes approx.
2 - Accidentally deleting this module.
3 - Taking 1 hour finding a way to generating source code from the compiled PYC Python file.1 -
Me ( a python dev) pointing to a good java joke in dev rant to my brother who happens to be working at TCS for the past 5 years as a Java Developer...
Me: Java is shit...
He: huh java is the best! every language in the world is written over java. My manager said this.
Me: I think I will kill him today in his sleep.4 -
Just found this awesome function in the old commits.
def clean_cache():
'''
This function cleans the stored cache in every update. Make sure to call it before every feature addition.
'''
print 'Cache is cleared. '
return2 -
This is just a temporary workaround. I will come back to this and fix this later. NEVER HAPPENS :)3
-
I would like to see a full stack developer version of it.
Found this on 9gag it's fucking hilarious... -
Stick to one project about which you want to learn but don't know how to do it,complete it...and now you have learnt something new
-
"In Python 3, exec is a function; its use has no effect on the compiled bytecode of the function where it is used."
Found in a stackoverflow post.
So wait, you mean to say, you could hide code in a pyc file or am I mistaken?
How is this not a security concern?12 -
I will train myself to be an avenger. In case things went wrong like ultron.
Anyone wanna join me?
Write your superpowers.3 -
I am currently going to start data structures and algorithms in python...
suggest me a roadmap according to your experience2 -
I don't know game development but idk I accepted an offer for game development competition..
the fuck I didn't even knew how to make one...
Now I. am working with Ursina Engine....
even the code on google does not work........1 -
I caught up a scammer last night he was doing some astrology and stuff.
He asked for money......
I gave him a grabify link.....
He gave me his location(accidentally)and told me to teach him the trick....
He wasn't even scared -
Isn't the subscribe function devrant work like creepy stalking someone...
Like what he commented,liked or posted....2 -
Does anyone else also feels like "I knew it why I didn't try this way, this was easy" after using stackoverflow1