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 - "python 3"
I was looking for about a month for a laptop. Then on this one magical day I open kijiji and see a Toshiba Thinkpad T450s with 20gb of ram, 138 ssd and an i5-6300U cpu going fo 500$ (value 2000+).
My first thought was. Okay. Scam alert. But you know. What if?
So I call up this person. And its a girl who got a pc from her bf, but really she wanted a mac so she is selling it.
This straight up blew my mind. I decided, fuck it. Got 500. Ran to her. Ran a systems check on the laptop. Checked for any attempts at opening it up. Checked the harddrive. Checked the ram. Everything is solid.
Long story short. Thank god for apple fangirls!33
Substitute Teacher who apparently majors in Java sees my copy.
T - Your programs are incomplete
M - You mean ?
T - Where are the braces ?
M - Its Python
T - It works ?
M - Yes
T - It works on linux ?
M - Yes -_-8
Finally did it. Quit my job.
The full story:
Just came back from vacation to find out that pretty much all the work I put at place has been either destroyed by "temporary fixes" or wiped clean in favour of buggy older versions. The reason, and this is a direct quote "Ari left the code riddled with bugs prior to leaving".
Oh no. Oh no I did not you fucker.
My boss wrote a piece of major software with another coder (over the course of month and a balf). This software was very fragile as its intention was to demo specific features we want to adopt for a version 2 of it.
I was then handed over this software (which was vanilajs with angular) and was told to "clean it up" introduce a typing system, introduce a build system, add webpack for better module and dependency management, learn cordova (because its essential and I had no idea of how it works). As well as fix the billion of issues with data storage in the software. Add a webgui and setup multiple databses for data exports from the app. Ensure that transmission of the data is clean and valid.
What else. This software had ZERO documentation. And I had to sit my boss for a solid 3hrs plus some occasional questions as I was developing to get a clear idea of whats going on.
Took a bit over 3 weeks. But I had the damn thing ported over. Cleaned up. And partially documented.
During this period, I was suppose to work with another 2 other coders "my team". But they were always pulled into other things by my Boss.
During this period, I kept asking for code reviews (as I was handling a very large code base on my own).
During this period, I was asking for help from my boss to make sure that the visual aspect of the software meets the requirements (there are LOTS of windows, screens, panels etc, which I just could not possibly get to checking on my own).
At the end of this period. I went on vacation (booked by my brothers for my bday <3 ).
I come back. My work is null. The Boss only looked at it on the friday night leading up to my return. And decided to go back to v1 and fix whatever he didnt like there.
So this guy calls me. Calls me on a friggin SUNDAY. I like just got off the plane. Was heading to dinner with my family.
He and another coder have basically nuked my work. And in an extremely hacky way tied some things together to sort of work. Moreever, the webguis that I setup for the database viewing. They were EDITED ON THE PRODUCTION SERVER without git tracking!!
So monday. I get bombarded with over 20 emails. Claiming that I left things in an usuable state with no documentation. As well as I get yelled at by my boss for introducing "unnecessary complicated shit".
For fuck sakes. I was the one to bring the word documentation into the vocabulary of this company. There are literally ZERO documentated projects here. While all of mine are at least partially documented (due to lack of time).
For fuck sakes, during my time here I have been basically begging to pull the coder who made the admin views for our software and clean up some of the views so that no one will ever have to touch any database directly.
To say this story is the only reason I am done is so not true.
I dedicated over a year to this company. During this time I saw aspects of this behaviour attacking other coders as well as me. But never to this level.
I am so friggin happy that I quit. Never gonna look back.14
Came home to visit parents
Dad - Internet on my laptop isn't working (I switched him on a Ubuntu platform because he picked up a hobby of mining for viruses while doing..... "research" )
Me - did you mess with your networking settings again
Dad - (Defensible sounding) Noou
Me - (looking at settings, networking is switched off)
Me circa 3am - writing a python script to check for this automatically cos fml this is basic
Thanks for listening10
Popularity of programming languages according to the DRRDSI (DevRant Rubber Duck Selling Index):
Can we please stop with this shit... its seriously annoying...
Like "master" and "slave" are literally the perfect terminology to explain what is being described... please leave ideology at home...11
1) Stop going to univershity
2) Started python coding at home from online courses.
3) Got the best paid job among batchmates.14
That weird moment when you don't understand what ++ or -- means in devRant cause you Python developer15
Story of my life. Staying up all night to work on something that gets postponed or cancel
Me: you should not open that log file in excel its almost 700mb
Client: its okay, my computer has 4gb ram
Me: *looking at clients computer crashing*
Client: the file is broken!
Me: no, you just need to use a more memory efficient tool, like R, SAS, python, C#, or like anything else!5
“Writing tests is a waste of time, we should rewrite it in language x instead”
- Colleague that took 3 hours to install Python8
Yesterday was Friday the 13th, so here is a list of my worst dev nightmares without order of significance:
1) Dealing with multithreaded code, especially on Android
3) Dependency hell, especially in Python
5) Memory Leaks
6) git conflicts
7) Crazy regexes and string manipulations
8) css. Fuck css.
9) not knowing jack shit about something but expected by others to
produce a result with it.
10) 3+ hours of debugging with no success
Am 23, I plan to have 4 kids in the future.
This will be their first names
1. Ruby - Female name
2. Pearl - Female name
3. Haskell - Male name
4. Python - Last born. Most loved. But am sure he will hate me for his name😂😂
All I need is a wife now or a girlfriend could do🤔...38
USB-C (or Type C) origin story:
Manager: okay let's see your presentation
Developer: bring usb-key
* Inserts key *
* Nope *
* Flips key, tries again *
* Nope *
* Flips key, tries again *
* Nope *
Developer: ahhhhhh , NEVER AGAIN!
5 months later
"USB forum publishes new specification"11
How to start coding (for fucktards)
1: Choose desired programming language like python or java
2: Search on youtube or google: "<language> tutorial beginner"
3: if step 2 was to hard for you...
STOP learning how to program, you are hopeless
4: Instead of asking everyone on how to learn programming, just fucking DO IT already!
Seriously, if you don't even know how to use google and youtube to educate yourself programming is NOT FOR YOU!9
How to debug Python, for beginners:
1. Carefully read the exception message. Repeat it to yourself 3 times, slowly.
2. Step away from the computer. Ideally, lie down somewhere.
3. Close your eyes, take 10 deep breaths.
4. You will have found your mistake.7
I'm a Python dev, yet 99% of my work over last 3 weeks has been JS. How do js devs not sit in the corner of a room crying at the end of a day?28
Has anyone ever done this?
See no new posts
Sees nothing interesting
Okay... Need a tech break...14
1. Started to program Python 3
2. Thought of doing a little program just for fun
3. Now 1 1/2 years in developing state with nearly 3000 lines of code and 11 modules
4. Python skills :)14
Yes. Please. Stop putting hidden files in my home directory. It's not the place for it.
Me: *Has 3 difficult exams to study for and hours of work*
Also me: I should try my hand at encryption in Python.7
Waisting some times on codewars.com
3 kyu challenge:
Given a string with mathematical operations like this: ‘3+5*7*(10-45)’, compute the result
*Does a quick and easy one liner in python using eval()*
*sees people actually writing some 100 lines parsing the string and calculating using priority of operation*
(Btw, passed to lvl 4 kyu thx to this)14
When you group asks you to write some code to kick two people out of the team randomly.... and you are one of them :(7
It finally worked!
I figured out how to make it work. Only took me like 3 weeks. But it works so smoothly now.... Holy f.13
Good to see instagram move to python3 without an exception. Literally that was smooth. Cheers to those who think Python is not scalable. 95 million photos on daily basis. 400 daily users.
When you see a Java devotee using Python and they're doing something like this:
array = [1, 2, 3, 4]
for n in range(0,len(array)):
At least I get to tell them "hey it doesn't have to be so hard just do it like this:"
array = [1, 2, 3, 4]
for n in array:
Him: Relation databases are stupid; SQL injections, complex relationships, redundant syntax and so much more!
Me: so what should we use instead? Mongo, redis, some other fancy new db?
Him: no, I have this class in Java, it loads all the data into memory and handles transfers with http.
Me: ...... Bye!5
Ok, so I was working with Python, I wanted to make a simple chatbot. I spend hours trying to figure out what was wrong, until it hit me... the prints weren't indented.8
That weird moment when you write a Python script and errors pop up everywhere, only after an hour of debugging (pulling hair out) to find that you started putting a semicolon at the end of each statement again.3
Yesterday I installed the linux subsystem. Wrote some python code, but it never run no matter what. It was always the same sintax error. I got pretty desperate after finding no solution on google and decided to reinstall the linux subsystem, erasing everything I made.
Turns out the problem was that python pointed to python 2.7 instead of 3. I'm not a smart man.7
My favorite languages are
1. Python (3)
Honorable mention: C++
Can anyone agree?42
I used to think Electron apps were gonna do great and make it more accessible for companies to produce high quality programs with ease.
Oh boy I was wrong. All it did is enable big companies with the ability to refactor all of their software to run 5 times slower, consume 10 times more memory and kill your battery 20 times faster.
I fucking hate all of this prototype fast optimize later bullshit. Can I get some value for my dollar? How come technology is just being degraded for the same of "ease of programming".
You save programming time but sacrifice end user time, cus our time just doesn't fucking matter.11
Pushed my first own open source project to Pypi as a python package.
Used tox and travis for the first time.
Feeling proud and super content 😊.
I'm in the process of creating another open source package, which has as dependency the first one 😅.
I love Python.6
I feel like the whole CoC debate is just:
"Stop using harmful language!"
"F*** you! How else can I tell you that your commit sucks donkey-b***?!"
"You are banned!"
"I'm taking all of my work with me, you c****!"
"No you are not"
"Yes I F***ing am"
Maybe we can reach a compromise, where we can insult bad coders, just not on the basis of their race/gender/sex? Or, fork a version of the code base for "inclusive-sjw-types" and another for "loud-mouth-a**-holes"?
Like it's really a debate on work ethics. Positive change negative reinforcement...14
More of a college prank
We had this professor who used to send at least 3 emails to us about non sense stuff. Irritated i wrote a Python script that sent her 10000 emails everyday. The emails stopped!!12
So im getting pretty good at python, so can anyone offer me some basic projects I can attempt?
Oh and it's my birthday today! (August 4th) I'm 18!13
Getting stuck on a problem for 1 and a half hours when you realise Python was aliased to python version 2.7 instead of 3 :(3
Wrote a python script and debugged in about 3 hours. Script saves a colleague 20 hours per week. #resumeworthy9
Finally after waiting on the dashlane team to make a linux version of their application, I got tired and made it into a desktop application in a semi-hacky using the Jade-Application-Kit from the manjaro team <3
I feel like I should photopea next, would make a kind of "photoshop" for linux. :D9
Person who has an attention span of 3 minutes, has never done math before, and has no background in any form of code whatsoever, and will never need it:"I'm thinking about learning Python."
Me:"Go for it but it will be difficult to remain motivated."
Person:"But I really want to do this."
Me:"So did every corpse on Everest."4
Worst CMS: Joomla.
Worst IDE: Eclipse.
Worst language: Python 2. (Python 3 brought many improvements to many annoyances there)9
ARGGHHHH Python!!! why the hell is this a thing... if I specify a default argument, I want it to be a default argument, not get carried over....13
>Instructions in the manual -
1. Install Python 3.5
2. After installation is complete, open a new terminal/command prompt window and run 'pip install pandas'
1. Installs Python 3.7.2
2. Types Python in command prompt, types 'pip install pandas' there
3. Raises a hue and cry over the program not working because the instructions were not clear
Coworker: so once the algorithm is done I will append new columns in the sql database and insert the output there
Me: I don't like that, can we put the output in a separate table and link it using a foreign key. Just to avoid touching the original data, you know, to avoid potential corruption.
C: Yes sure.
< Two days later - over text >
C: I finished the algo, i decided to append it to the original data in order to avoid redundancy and save on space. I think this makes more sense.
No. Learn this principal:
" The original data generated by the client, should be treated like the god damn Bible! DO NOT EVER CHANGE ITS SCHEMA FOR A 3RD PARTY CALCULATION! "
Put simply: D.F.T.T.O
Don't. Fucking. Touch. The. Origin!5
My colleague unknowingly uses the word "paralyze" for "parallelize". When is the good time to correctly him? So far he has successfully paralyzed my code.4
I find it ironic that some python devs hate on nodejs because of npm modules. But then go ahead and create a virtual environment for every new python project.5
Worked for the US federal government. Stuff couldn't be used unless it had been approved. Had to us Python 2.6. Python 3 was out by then. Basically anything brand new or even new within the last 5 years wasn't allowed, but was expected to make apps that represented modern web apps.2
When do you consider yourself an expert at a language?
More details: there is a really cool Data Science internship opening up near me that I want so badly it physically hurts me, but it asks for expert level knowledge of python, Java, or R.
I’ve only been studying R and Java for like 3 months, and Python for about 8 months, so I’m obviously no expert. When exactly does someone reach that threshold, though? When did you realize you were an expert at a language?14
human : Merry Christmas :)
js : console.log("Merry Christmas")
python 2 : print "Merry Christmas"
python 3 : print ("Merry Christmas")
bash : echo "Merry Christmas"
c++ : printf("Merry Christmas")
java : System.out.println("Merry Christmas")
html : <div> Merry Christmas </div>
add in for your favorite languages...24
We got to a point where I transpile typescript to react to es6 to plain es5. Just so that the browser could compile the code to bytes.
Sort of ridiculous. It's like translating a book from English to French to Spanish to Russian just so that we could create a Slavic interpretation of the book.4
Goals for 2018:
0. Finish some side projects
1. Take python skills to the next level
2. Start a new bigger project.
3. Dive into machine learning2
When you're writing in Python and forget which brackets to use but you're too lazy to look it up so you just pick one and hope it works.
What do you wanna become? / What are you?
1. PHP Developer
2. Python Developer
3. Node.Js Developer
5. Java Developer
6. Android Developer
7. Other (please mention in comment)71
Had to spent a bit of time doing some statistical analysis today and decided to give R a shot. I could have done it in python but I knew it'd be a bit of hassle.
3 lines of code later I had the plot I wanted.2
About 3 years ago, my girlfriend had this laptop that she got from her University. She had to give the laptop back to get reset, but didn't want to lose all of her data on it, and a backup would be around 750GB.
So I suggested that I would backup the laptop (was thinking to just dd an image and go from there). So I plugged in my mobile USB and external hard drive, and started the imaging process. Given the amount of data and setup, the process should have taken about 5hours. So we left it there for 5h.
Please be mindful that at this stage in my life I knew very little about boot processes, oses, and hardware.
5h after. The laptop screen is black and it ain't responsive. Not sure what happened, the dd process was completed, but the laptop refused to boot into windows. Tried a number of boot tools, and spent a crazy night hacking at the machine. But the university had some of sort of fail safe to not allow anyone to boot into windows if someone opened bios without entering a password. Whatever this was, I spent over 12h trying to either open mount the windows partition with a Ubuntu usb or mount the corrupt dd image on my laptop.
Long story short, after throwing at it a number of fixes. I was able to mount the image, copy out all of her personal data, and reinstall a new version of Windows on her laptop. The university didnt understand why the laptop was already reset. She still mentions this to me anytime I want to take a "custom approach" to software lol3
Recruiters call me and be like "I'm looking for a Python Developer to work in London with 5 Years of experience - Is that something you'd be interested in?"
I respond with - "Sure.. only if you can tell me where the f**k you found the word Python on my CV or ANYWHERE online."
1 - I've got ZERO experience in Python...
2 - I've got 3 Years experience in development regardless of being in anything Python related...
3 - I live 1-2 hours away from London...
Come on guys - Do you even read CVs before you blindly call? How shit are you!?
If I spent all my time calling candidates that had no relevance for the role I'm recruiting for (most likely to get call times up) back when I was a recruiter, my boss would have my nuts for lunch for making the agency look bad.5
2. What the fuck
4. Why the fuck
5. Oh shit that's useful
6. Oh shit that's stupid
7. Why would anyone do that
8. Why isn't anyone else doing that
9. This is crazy complex
10. This is stupid easy8
Thank you Syncex for one of the best powershell scripts ever. This literally sped up my laptop and surface :36
No, brain. I don't need to know Python.
Shut up, you already know Ruby, PHP, and a fuckton of front-end tech, you don't need to --
Do you remember the 3 projects that we aren't working on anymore because we have the PS4 and Assassin's Creed?
I already have a job, moron! It sounds fun, but we...
What am I doing on codecademy?2
Spend almost 3 days translating a library from js to python, 2 hours to upload it to PyPI, 10 seconds realizing, that there is already a library that does the same thing + something a friend of mine is working to achieve. I am so fucking done...
(At least I some new learned stuff in JS and Python)1
How do you usually learn a new language?
My way is to start a project, then figure it out as I go.
I find that books and tutorials are usually better reserved for learning concepts or frameworks.2
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
Many people know Kaiser Chiefs song Ruby
So yesterday my uncle sang that song this way:
Ruby Ruby Ruby Ruby,
Java Java Java Java
Python Python Python Python
That is freaking stupid, it made my day, though)
Besides, that 3 are my fav langs)2
I’m developing a fairly sophisticated desktop app in Python with PyQt5 as the widget set. Because my partner insists that all the kids these days love Python.
Piss on Python. And that goes double for PyQt5.
I’m on the absolute hardest section of the app. It’s a fairly complex import of data from PDF reports. There are so many different parts that I decided to go with a wizard.
So, I built a QWizard in Qt Designer. It generates a C++ .ui file, but you just truck it over to the command line and run this pyuic5 command, and it converts to a handy dandy Python class. Woo. You can subclass it and consume it from your Python script.
Sounded SO MUCH EASIER than writing the wizard from scratch. But OH NO. I need to do custom validation on my custom text control at every stage to control when the Next and Finish buttons are enabled, which means I gotta overwrite some damn event.
But I can’t. Because I can’t subclass the individual pages. Because they’re part of the same damn file and the wizard offers no access to them.
I’m almost certain that I’m going to have to completely redesign the wizard so that it’s pages are in separate files, which means I have to recode the bitch as well.
The cherry on top is that there’s zero documentation for this specific thing. None. No QWizard documentation exists for PyQt5 (if there is, they’re doing a damn good job of hiding it), so I have to read the documentation for PyQt4. Not the same animal. Close, but different. Even with the differences aside, this documentation is minimal and useless. “We’re going to tell you in very general terms what you should do, but we’ll give you zero idea how to do it. And we know the very common code method you’ll want to try first won’t work.”
And getting at this stuff when you do it in Qt Designer is WAY different. And all that documentation is in C++. Because apparently you HAVE to speak C++ if you want any real info about PyQt. Because that’s perfectly reasonable, right?
So, now I’ve lowered myself and posted a question on Stack. Because, hey, once you get past the power-tripping, mouth-breathing, basement-dwelling, neck-bearded high school punching bags picking apart your question rather than, I dunno..., BEING HELPFUL, sometimes you can get good info there. Sometimes. They seriously saved my ass at least one time.
But yeah. Fuck Python. Fuck everything Qt.18
I like coding in a way that anyonr who comes into my code base can understand whats going on. That way more people can maintain the code base.
However, I HATE having people in my code base. Since they leave shit undocumented, and have 10 variables called "data" "items" "o" "p" and another 20 methods called "processData" "convertItem".1
So i have been working with a so called python expert my manager on a project.
He has 3 years of more experience in python than me.
The best thing is he shows up everyday with random post from stackoverflow to fix our bugs everyday.
And if the code is in python2 he says that only difference is just put () around print and it will work
He earns thrice as much i do3
I really don't understand why my university thinks "Oh yeah, make the super easy python assignment that can be finished in 1 hour (max) using basic logic, syntax, and file I/O a 3-person group assignment, there's definitely not going to be just one guy writing code while the others free-ride and get an easy grade."6
2018 dev goal #1: ✔️
This week I learned Python 3, as in most of the syntax. Not yet any development, but that will come tomorrow onwards.
Oh, and I hate the funky type system, which is almost non existent and so flexible that I don't know if it's just bad or I simply don't see why I should want it this way.
Please enlighten me why you think Python is great or just plain snake crap.
Did I mention snake case being common practice? And that Python doesn't know real private properties, methods, etc.? How does that work?17
I officially do not know what the fuck I'm doing.
I can't stay focused on any language to learn and it frustrates me so much.
And then even when Im doing Python my brain is like "ayyo you should learn machine learning, tkinter AND beautiful soup. .oh WAIT YOU SHOULD LEARN PYTHON 3 INSTEAD OF 2, while you're at it why not install vim instead of atom?" And it's just really frustrating cause I want to build apps but my brain keeps telling me I need to learn something else before I can make anything good it's a repeating cycle and it's just very frustrating8
Just got a rejection letter.... I haven't applied to a job in a year. These guys took their sweeet-ass time.... lol3
Just sitting here in class, when all the sudden my profs code shows up in the schools hall for no apparent reason....2
Going to spend this whole August, studying Python.
Any tips or suggested route to get the grasp of Python? Should i start at 2.7 then 3 or just go directly to Python 3?12
Ahh it's been a while since I've posted.. My skills with python are getting better (I'm a beginner) and I know for everyone else it's probably nothing but my first big project/idea I came up with was to program a simple rock paper scissors game that prints if you win lose or tie. I got the input and random output right without having to look anything up and that actually makes me proud of myself which is rare but for the printing out you win, lose, or tie I looked it up but I'm noticing that I'm getting better.
Then today I made a coin flip script that returns heads or tails in like 2 minutes and the only reference I used was my own code!!
Thanks if anyone actually read it I envy a lot of you for doing it for a living and I can't wait to do it too :)6
What's up with all of these unstable updates at the same time from Google and Microsoft?
First Microsoft releases an update that deletes My Documents
Then chrome on windows gets updated with a "eat your disk in addition to ram usage" that freezes my PC.
Like whatever happened to testing before releasing, least some minimal testing...
Then again, it's a fucking Microsoft product... -.-7
I wanted to rant but I just been moved from a governemental project in Python 2, to a shiny one on Python 3. Have a good day you too!
I love python, but I hate dealing with python dependencies, especially on Windows.
I was tinkering and researching with neural networks, so I wanted to try out pybrain. I wrote my project, with pybrain installed via pip, and tried to build it.
Oh, what's that? Pybrain doesn't work with python 3? Well I'll download the version that's supposed to. Oh, that version has a deprecated numpy api? Let me just install those other resources. Oh, that requires a broken module that has no publicly available source?
Let's try python 2. Oh, now that's working, I just need to export environment variables for some "bls source". Some quick Google searching and the only solution that would work is building a bunch of cywgin modules by hand. That's fine, I have an ubuntu partition.
An hour later I'm compiling FORTRAN dependencies on Ubuntu.
Coding time: 1 hour
Dependency time: 3 hours6
Another thing that my dev friend told/send me the code to look at: the build&deploy system of one of their clients.
It's comprised of:
- 12 regular shell scripts
- 3 BASH only scripts
- 5 ZSH only scripts (required because of floating point computations, the other *shell scrpts use inline python for computations)
-> Most of these contain inline python 2 & 3
- 9 python 2.7 scripts
- 15 python 3 scripts
- 7 perl scripts
- 14 custom executables, written in c and c++, compiled every time this mess runs
- 6 jar files
- 4 nodejs apps
All of these are used to deploy a single product.
They have to be run in a specific order manually.
And you have to install some dependencies manually(like zsh)
I definetly don't want to work at that client of his.
My friend (I'm helping him) is trying to automate and rework this horrible mess.8
I'm looking forward to returning to Python one day in the near future.3
1.Get my SOLIDWORKS cert
2. Microsoft Certs
3. Microsoft Python Cert
4. Buy a 9 string
5. Have my album ready for August
... Any other suggestions for a somewhat beginner Python Dev3
Here's a task for the bored of you ;)
"Write a python script that prints out all numbers y from one to 10**30(including 10**30) that have two of these traits: [n**5=y, m**3=y, x**2=y] but not the other one; n and m are whole numbers."
Correct answer was about 103000
I can't seem to find the solution... Here's my (failed) try:11
The simplicity of Python still amazes me even after 3 years of development.
Recently started using Flask!
One word WOW.
Started learning Python from Java, C#, Objective-C, Swift.
It’s like Rocket Engineer who have to build a car. It’s easy but you have to learn almost everything from the beginning.6
Switched from Python 2 to Python3 a while ago. The biggest challenge for me is still remembering to use print as a function.2
So I decided today was a good day to manually compile python 3.6 for my raspberry pi as it hasn't yet been added to any supported repo's. Site says: this will take approximately 30 minutes.
3 hours later: "starting unit testing"2
Anyone who willingly uses Python 2 and doesn't try to convert it to Python 3 will be shot on site.3
A game similiar to Galaga written in Python 3 using Pyame library. The code is well documented and I will continue to add new features. Any collaborations or suggestions are appreciated and I can explain parts of code if someone is interested.9
1) Keep improving Java skills
2) Keep learning Python
3) Learn Docker
4) Finally use my Raspberry Pi
I just dealt with a 3 nested "if" statements in SQL. There is no indentation so I am quite frustrated since each "if" spans up to 2-30 lines.
I now understand why Python white space is significant5
My 2018 goals:
1. Graduate from the Deep Learning Nanodegree.
2. Get better at Python.
3. Learn C++.
4. Learn more about Machine Learning and AI.6
Be me at work, 12h nights shift, 4th day like that
Following online course on machine learning, instructor says we'll use python 3.x as the interpreter for the project, boot personal laptop and start pycharms, create the file, choose right interpreter no big deal
pip install the modules I need for the course - done, try to import them.
Doesn't work, first reboot, still not working, browsing Internet for answers, no ideas, reboot again (you never know) reload pycharms, browse Internet again, find out the modules only work on python 2.7.
Wasted 45minutes for this shit
Feels good bro.2
Just started today with Python 3. I don't know but I really start to like the language. Its not to difficult and it has nice syntax. Currently I'm working on a little financial overview generator. It parses the CSV file from my bank and sorts it into categories. Really fun to make. Do you guys made some nice projects in python?4
Started to learn java! Loving it so far.. Coming from Python 3 i thought this was not gonna be easy but so far so good.. Can someone give me some advice or tips on what to tackle next after java?17
Whenever Python 4 eventually comes out, I hope it doesn't break too much. Otherwise, based on the current trends, we'll end up with Python 2 vs 3 vs 4 arguments, battles, and books, and THAT would be a fun mess to deal with... :\
Mechanical engineering at my college loved coding
He did a 3 month python course ended up getting a full time job as a developer at a reputed company
Have the will and anything is possible2
Sometimes I wish I could clone myself 3 times and start a company. Not that I think that I'm that smart, I'm fucking clueless most of the time. But because it's so hard to find people who freaking READ THE DOC!2
Okay! Got my numpy pdf, theano pdf and my theano deep learning pdf! It’s time to get reading for 1111111111111111111111111111111111111 hours. Wow! I’m really getting deep into “deep learning” learning! Ok, I’ll quit now...2
I 'm working with python 3:
Was about to make my app print a text letter by letter (same as somebody's typing the text) and read it at the same time.
I wrote a method for typing and works fine but cannot find a solution for the tts and make them run at the same time.
Can U halp me please ?
Thanks in advance 😊2
Sending email to client (the following is a short version of it)
Dear Data Evaluation Team,
Here is a link with the password to the data export for the questionaire.
You will find in there 4 sections:
1. Utilization Report
2. Question List
3. User Responses to questionnaire
4. Summary of responses
Email from client
Thank you data team.
I see that the user responses have some ids for the questions. Can you please give me the full question text, where is it?
"Section 2, Question List"
Like really? Did you just not f*ing read the email and just jumped into the data export blindly. I wrote some fucking docs for a reason.
10 years as a developer and I still struggle to set up that fucking maven thing because those crazy college professors all use Java for lessons like "read a file and create an array with its contents". A shitload of boilerplate that I could've done with 3 or 4 lines of js, python or whatever else. Decided to skip all of them and focus on the tests to compensate the missing grades.1
I'm actually starting to see my skills advance.. I'm able to be given a basic topic and do it as long as I have the formula or whatever is needed in my head or planned out
I've got quite excited that they changed a program at my university and they decided to put python instead electronics at first year. My younger friend came to me with notes from the lectures and asked for help. It seems that my university thinks that starting learning programming with overloading operators at first class is a good idea and they say that python 3.x isn't used widely yet, so they will stick to 2.7 during course.4
I was ranting about overusing classes on python, then I noticed I'm a person that creates new functions for 2-3 lines of codes for no reason..5
This happened while I was still learning how to program back when I was 13. Python 3.5 I think, was having an Issue with regex, for the first time ever I did something I was tired to listen: read the documentation. After fixing my issue I felt great with myself like I never had(to this day :( )
No that I write it is way lamer than I though, well what can I say I was younger and more stupid 🤷♂️
1. Study C and Python
2. Learn NLP and ML
3. Participate again in one hackathon and kick their ass after winning it
4. Get one awesome internship
5. Master algorithms and DS
the best part of Python is that while debugging others code you don't have to beg to indent the code :32
As a back-end developer, i want to learn a framework, currently hesitating between Django(because i want to use python) and symphony, cause i already know php since 3 years, but never used any framework.
Do you have any suggestions to choose my way :)?4
Yesterday I spent almost 3 hours trying to sort an array of objects in java. I'm a person who has written a lot of python and dart code and java is just so daunting. Every simple thing is so complicated.
You can sort a list of objects wrt any parameter using a one liner in python.
Finally after copy pasting a lot of code from stack overflow the thing got sorted. And the worst part I don't even know how the thing works.5
I recently started using Python 3, was using Python 2 for a while, and I know it's stupid but I kind of feel guilty not using 2 anymore, anyone else feeling that way? I mean Python 2 was my first real coding experience after mandatory C classes from an utterly garbage teacher, it was liberating and fun... Anyways, it can't be just me feeling stuff like this8
Looking at my reflection on the laptop screen while it is being upgraded, and thinking that the career choice i made 11 years back was probably not a great idea.
I don't understand amazon-cloud, very little knowledge of DBs, can't write a single JS class without googling, block chain are meh, don't even know python, working with a team that abuses my framework in front of me, working 12 hour shifts for last 3 years... What is my life's purpose?2
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...
I used speech recognition package of python in one of my projects. It is working properly but it is not recognising some words, like if I say my name so it will print something else, printing 2 as doose, 1 as drone. To sum up, it's not considering few words.
I tried some amendments like set the language to english-india.
But after this also, same problem arose.12
After a solid month of development. My model has finally reached 94% accuracy. And it appears to still be good (without the need to retrain) as new data keeps coming in :3
Oh gawd... I was waiting for this to get this good :32
So I actually prefer npm to most other package managers (with the exception of go's package handling).
Like you need to look no further than to pip's hell of package management, to start appreciating how clean npm is.
At what point can I claim to not be a script kiddie anymore?
Like, I've built compilers, and interpreters for an excel-like syntax, I refactored a pdf-parsing library from the ground up. I managed databases and wrote protocols for communicating with hardware.
But most of my experience is with python / nodejs / golang. It is only recently that I started playing with C and rust for actual efficient system code.11
Excel plus CSV into word with mail merge into outlook to send.
I wanted to do it the hard way.
Postgresql database + python script.
I have no idea what I'm doing, but isn't that the best way to learn?1
What do CLI libraries for Python suck?
Why do CLI libraries for Python suck so bad? You think with a language like Python and its community, someone outta get it right. But I guess not.
This is what a CLI module should look like:
frame = cli_maker.frame()
print("Hello World!", color=green)
I won't even tell you what the output of that is because even you and your blind grandmother should know. Why can't people understand Python was to make people's lives EASIER???? It's fucking insulting how these people aren't even trying.
There aren't even good tutorials either. The documentation for these things sucks horse ass from a funnel. Most of them are from 2012 and feature a 4:3 powerpoint of someone with a bad mic either making things too complicated or only explaining like 1/16th of what the library actually does.
If you're bored this weekend, make an actually humanly-usable CLI library for Python. If you have common sense, you'll gain monopoly on the entire CLI-Python-Library market in a fucking day.7
Today I wasted 3 hours writing a script on a python for a girl. That time was supposed to be used for my job. I should find a girlfriend soon 😂😂😂 this habit is killing me.6
To all the people who complain about writing a delete or update query. Not to talk you down, but seriously. STOP WRITING RAW QUERIES AND USE AN ORM!9
What language would be most suitable for little graphical apps?
Like fractals, animations, and random visual stuff.
I like to learn new languages, but I never know which ones to turn myself to...
My requirements (all optional):
0- Can output visual stuff
3- Not python
Thanks in advance :)11
Lets make sure that we are always using the latest software! Keep things up to date#
..... (new version of bulma.io comes out)
..... (Updating libraries...)
Why is the website all fucked up looking?
Shit they changed the padding level on like everything?!
..... Reverting back to older version, fuck that idea.2
Serverless.... More like "I want to sound cool so let me blackbox my backend with this premium service and pretend I don't have a server".4
Anyone else tired of the good old "Python 3.x will never be useful blahblahblah everyone uses 2.7 yadayadayada" bullshit?3
Which version of Python are people working with these days? Is there enough support for Python 3.x to use that or is it better to stick with Python 2.7.x for the time being?7
I built my first web server literally from scratch (standard socket lib) today! In Python <3.
It is able to execute php and get the stdout to use it in the Python script afterwards and make use of parallel connections.
Now to the real rant...
I am using HTTP/1.1. I want to use h2 (aka HTTP/2) tho. I am stuck on this. Found the papers to the specs of the h2 and spdy protocols, but they are not really helpful.
Is anyone good in this field? Please let me know :/3
Be developing in python 3
$ pip install <library>
Don't understand for hours why it doesn't work
I should alias pip3
Calling any Python programmer here (especially package maintainers)
I run Gentoo, so am responsible for maintaining the dependency tree (to a degree). When it comes to Python I have 2.7, 3.4, 3.5, 3.6 available. I'm always running into some package needing one version or another, and I can't just set a single version and forget it (which is fine. I'm running Gentoo).
I know that this is because python changes rapidly and so different libraries need different versions. Fine.
Why does Python need to be a pain in the ass about it?4
Ok so I studied Computer Science in college, even got my pretty little associate's degree saying I didn't eat shit.
Decided to work in ops and not as a dev because life finds a way
End up being asked to write code at work anyway because I know enough to not break everything1
Finals will be finally over.
1) Finish Witcher 3
2) Work on Python projects
How long did you spend for witcher 3?
I'm 100 hours into it currently.4
After a long year of going back to school for a masters. And working my ass off in networking events and internining. I can finally call myself a data scientist by job :D
I had a 3 day long weekend and I ended up spending them on learning python and watching some cs50 videos. Good weekend I suppose!5
So I'm in a scenario I'm uncomfortable, need some encouragement from fellow devRanters. (Looong post)
I've been working at this startup for about 10mths (since I graduated). They have been really good to me since the start, and overlooked some fuck ups I did at first.
But now I've been way more experienced , picked it up really quick. And I've basically redesigned several of their admin solutions and data products. Also, I'm basically their entire data analysis team now. I do backend (node, PHP, MySQL) and analysis for them (stats, deep learning, python, big data packaging for clients).
But seeing as I've moved in their company, and have been consulted on several major decisions, as well as built a really good relationship with some of their clients. I still haven't seen a raise, moreover I've been told that I'm expected to work from 8am to 5:30pm (9.5hrs no overtime pay). Which really pisses me off, since I know I'm worth more than what I'm paid (about 40k a year).
My brother (who's also a dev) suggested to tell them that I'm not happy at work due to this. And quit if they don't react well.
How should i bring this up? Should I really quit? This is all new grounds.8
Started learning Python today, whats ur opinion on Jupyter? I thought it to be quite nice:)
Also, Python 2.7 or 3? Im using 2.7 right now. Is the transition from 2.7 to three all that big?7
Day 3 as the Junior Dev.
Co worker fucks every time on defining functions in python
What my asshole teammate does is:
And he was clearly instruct to return value not print the value what a jerk he is.
I have to fix his all problems and in meeting he brags how his code worked. What a sucker.4
I feel bad for ranting about this.
So I just came out of a projects where a teammate was really slow. It's not that they weren't trying, like I was sitting across from them and can see them working. But seriously fing donkey balls, SO SLOW and subpar, it wasn't slow and steady to win the race, it was slow and steady to just barely pass.
Like we had two weeks for this project, we've had all of the planning done, now on the last 4 days it was just finishing up the implementation. And everything to come out of this person would take ages, slow everyone else done, and would need to be redone by someone else.
I really do feel bad for hating, cuz this person is doing there best and it's just not good enough. They listen, pay attention, but it's like they can't improve.
It just sucks... Because their ambition and effort is not being paid off and is pulling us down...3
I just spent 2-3 hours writing a python script to make it easier to format solving system of equations through Gaussian elimination easier. It takes a matrix, then allows the user to perform row operations on it, and then it formats every operation done into LaTeX.
Alternatively, I could have spent that time actually working on the assignment it was meant to help me with, and probably finished 3/4 of it.1
last week i finished writing my first Python 3 script, I knew nothing I read no tutorials I just searched for the functions I needed in the docs. it's a script for a game I play to automatically download and run the maps based on a id I put in a text file might add it on GitHub later to get some comments.
Currently writing a book about Python 3. Anyone have anything obscure/helpful that Python does that you might not have found in tutorials?5
I just took up a challenge to convert an image into a file with its RGB values and then an opposite script which reversed the process. I can't believe how in the zone I was.
I plan to add split work loads with multithreading and a user-friendly CLI parser.2
Best: take a job as a data analyst. 1 year later, re-write and re-deploy the entire backend following correct security concentions and well-hashed-out data models.
Worst: attempt to backup a hard drive using dd, just to accidentally brick the laptop (because it had some security layer the school put to prevent just that)
Bestest: use knowledge acquired at my "best" story to nuke windows on bricked laptop. Then extract the leftover data using dd and a series of recovery tools.
So a rant ago I was actually ranting because I couldn't think of how to do anything and such. Fair reminder I'm still kinda new so I decided to program small stuff to build me up so I can learn. AND I JUST MADE A PASSWORD GENERATOR ON MY FIRST TRY!!8
Although some of you might say that arduino is a good introduction to programming, I believe you should teach a kid basic python or java before getting into arduino or raspi..etc11
Making cheat codes with cheat engine -> making games with game maker -> learning Python freshman year of high school -> ap computer science -> 75% of a computer engineering degree and 2 internships, soon to be 3!
I'm almost a programmer!
We had a tutorial on how to use spark/Hadoop.. part of the tutorial was the installation instructions for Ubuntu vms.
The Prof insisted we used an older version of Hadoop (v2.1.5), so naturally this required pulling older repos and older versions of java.
Naturally, some of the people in the class got some namespacing issues and garbage left from uninstalled packages.
Now, the tutorial was geared towards business/math people, not com sci. So most of the people didn't understand why apt didn't let them run certain commands (even though it very clearly just asked for them to run autoremove or autoclean, like in the "error message"). When the Prof and their "experienced TA" saw these messages, their recommendation was "make a new fresh vm".
The fuck? I heard that, run over and was like no. Just run the suggested command, it's literally a simple issue. And the guy didn't believe me. I had to sit him down, show him how I literally typed what the console was asking for, and everything just worked... The guy's response was "well that's Linux for you, its really complicated and can never trust anything, this time it worked, but next time it might not". Dude... Do you even know what you are saying? Like you are a supposed expert, least have some understanding of the package manager you are using. Maybe things will then be less "schrodinger cat".
God damn I can't wait to be out of this stupid fucking school. Never going back to academia.1
!Worst, being put on the project a day before release
!Best, finding and fixing all the data model issues before release, so that the next time I have to pull stats about the system, everything actually makes sense, as all foreign keys and indexes would be explicitly defined for once.5
Julia's mutlithreading macro is soooo awesome and clean for when you want to do computation work :33
I am looking to switch from Ubuntu (once again).
I already used Fedora and Arch in the past, while Arch was my fav, its just too much of a hassle to setup. But I keep finding tiny things that annoy me on Ubuntu.
So anyhow, what do you use/reccomend and why?13
I feel like there should be a rule 34 for nodejs. If you can think of it, there is probably a nose module for it. Take for example PHP.js it's a thing...1
Every fucking time I start win10, I need to make sure I have task manager running on the side. Otherwise some sort of random windows process starts spirilling out of control and needs to be killed. Fucking hate windows.2
Why is it such a pain when I have to install all my external modules of Python for PyCharm? JetBrains products are cool, but this,... literally had to remember all the modules from scratch.1
Listening to a conversation between Juventus, Milan and Inter fans, it's like listening 3 programmers discuss who is the best language between Java, Python, and C#.
Of course, it's JS the best language :P :(1
Recently we got a new project assigned and as always you are hyped, really really hyped...........
We were supposed to find all kind of driver updates (especially bios ones) for all devices the company owns. So first of all we thought:
EAAAASY! A little bit of web crawling, regex, etc.
We were sooooo soooo wrong these fucking manufacturer websites are absolutely awful to crawl or parse and nowadays there are no proper FTP Servers or something else anymore you could use to get the information. Every subsite is little bit different...
While coding and literally brute forcing possible urls (there was some kind of vague pattern) we learned AGAIN to appreciate proper developed and designed websites. Especially by devs who may have some more usage scenarios in mind for their site than simple human clients.
So thank you to all of you awesome web developers who design proper websites and web tools!
All in all it took us 2 weeks to come up with a proper solution (by the way we are a smal team of 3 devs) which somewhat works reliable and can deal with site changes etc.
Started working with a startup. They have one Dev guy, who for some reason is using both python 3 and 2 in the same git repo, and had no requirement.txt or anything to really track dependencies....
For fuck sake, the Dev guy is actually intelligent, but really freaking messy.. why can't he have this basic thing done...2
I really hate recruiters. 90% of jobs via recruiters have been terrible where as 0% of direct hire (applying directly with the company; at most their internal HR recruiter) positions have been considerably better.
For my next position, I really want a direct hire. My minimum standard:
1) Direct Hire
2) No non compete clauses (see: https://penguindreams.org/blog/...)
3) Allow for my primary laptop/desktop to be Linux (see: https://penguindreams.org/blog/...)
Anyone hiring Scala, Elixir, Ruby, Python, Java programmers in Chicago?2
Okay, I have seen my share of useless classes, but this takes them all out. This tutorial will literally be around 4 to 5 functions, and about how to set different options.... Literally useless...1
Fucking google 2 step auth and their lack of customer service.
I have my account setup with my phone and a backup email account. No backup keys, since I only found out about those today! Thanks for letting me know this late in the game -.-
And yet. After I made a clean install of the os on my laptop. Tried to log back into my account. I am not getting text messages or emails to my backup emails (even though its allegedly sent.... And no its not in the junk mail) to validate my 2 factor auth.... Like fuck you!!!
If you gonna give us the ability to fort knox our accounts. At the bare minimum have some customer support to at least be train to answer a phone and tell me if your servers are having an issue or something. Im so in the fucking dark here and cant access shit.1
I am currently running a heavily modded version of Ubuntu 18.04. I remove gnome applications, installed xfce with sddm for my login manager, plus removed a bunch of their pre-installed applications. I mostly use AppImages and snaps for installations with occasionally using apt for packages I am too lazy to build or are not in snap form.
I have been contemplating switching to Arch/Antegros/Manjaro. Mostly because I am crazy and heard that I could get a performance boost and I like being more in control of my own software.
My question is this, does it make sense for me to switch distros? Also, I'd like to have a close to the metal Arch install, but last time I did that I got annoyed with configuring too much from the bare bone, took me like close to an hour of setup, it was not hard, just really tedious.... Is Antegros/Manjaro have options to be really close to the bare-metal? Is there maybe a really good install script that I can just tweak some basic settings for?5
i had a project in a networking class where the provided code was meant to act as a proxy (aka just passing bytes around), but because of the implementation, every byte had to be a valid unicode character
anyway lotta people were frustrated so we asked the course staff and their response was basically "we wanted to support python 2 and 3"
Looking for help I'm a software development student been studying programming for 3 years so have some experience just wondering is any good online tutorials or books that could help me develop my Python skills we don't cover it in college and I would love to pick up on how to use Python but all courses I find are very basic and expect I'm a beginner3
Just spent almost an hour trying to figure out why my computer won't display on my tv monitor (because the best smart TV is a PC). I tried everything, unplugging the graphics card and using the motherboard, tried another tv, tried different sockets. Tried another graphics card etc.
Eventually, without notice, after plugging it to a regular PC monitor, it started working. No clue why. But it works now so I'm happy.
Most angry? Not sure but generally get angry at my own short comings.
"duh you missed a semi-colon again you douche and it took you 3 days of debugging to realise! Just start writing python already!"3
Django vs laravel for restful api ? Or any other framework ?
With a lot of req per sec
I'm so comfortable with laravel but don't mind using Python
Is a masters in statistics worth it?
A bit of background:
I got my bachelor in actuarial math (statistics for insurance risk), then found machine learning and got a couple of gigs in software development and data engineering. I became my previous employers the go to guy for questions about data integrity and structure.
Now I am heading to a new job that specializes in ML for gambling. And while I love the math, I really see myself doing more software development and system architecture work (with some analysis). I already started this masters program, so I got less than a year to finish, but starting to feel like its a waste of my time, but also, I dont want to just quit it.1
Completed units where the faculty chooses to specifically code in python.
Gets MIPS assembly code thrown at us for 3 weeks only.
Goes back to Python...
Next Unit jumps to Linux, spends 8 weeks on Linux, gives all the students a 10 page assignment in Javacc worth 20% , linked to a 46 page doc they must read and learn on their own...
Someone got quality tutorial/blog about Sqlalchemy ?
Even tho I am dealing with py+flask+sqlalchemy last 3 years I am still able to get super confused about contexts/syntaxes.
(Model.query vs session.query(Model), etc.)
I'm almost done with my Python course and after I'm gonna study more like the tkinter module, the sql module, the socket module, etc (I'm sorry if they aren't called modules still kinda new to all of this talk) And after I feel I've learned what I need I'll move on to Ruby Programming!6
Opinion: Julia will not catch on, because the two language problem is not a big issue for most people in the industry, and most python data scientist will refuse to migrate.1
So tired of meeting people in my generation who literally live to just freeload. Like some of us are actually trying to get shit done in life and yet here you are, just being a lazy fuck who for some reason thinks they're still in highschool and need to not give a god damn shit about anything else.
I've basically got to a point in my life where I have no idea why am I friends with someone thinks it's okay to punch another grown man in the balls after they changed a song, get to a yelling match with another person over a boardgame, sit in the one way that will definitely break the fucking couch.
When I'm at your house, and I change the music on the Spotify, you kick me out because I'm crossing the line? Also, they almost kicked my friend for wearing the wrong shirt (it had minions on it, they hated that movie)... The fuck.
Like you want respect, buddy you gotta earn it. You literally live off welfare and your parents and your girlfriend parents money. You are a fully capable non disabled straight white male, who hasn't aimed higher in their professional life whatsoever. I know people who had every sad story in the book thrown at them, and yet they have achieved twice what you did.
And after all of that, you feel like it's your right to be a shithead, and tell others how to act.
Go fuck yourself.2
What's your top 3 progressing languages/favorite editor?
(I choose Python, C++, and Applesoft Basic. & Notepad++ for the editor.)8
This year I'm asked to teach Python with a GUI, but I've never used a graphic interface with Python. The chosen GUI must:
- Have an IDE, a sort of "drag and drop builder"
- Be capable of building software with forms, menus and multiple windows.
- Work with Windows 7 at least.
- Work with Python 3+
So far I tried:
- Tkinter: comes with the language (point in favor), but wasn't really able to make it work. Has no proper IDE, tried to use a builder called PAGE but doesn't seem to work.
- WxPython: didn't really play much with it. I've read some articles, but that's all.
- Qt: used several years ago with Ruby. Has an IDE (point in favor), but never tried with Python. This is my winner so far, the one big problem being the amount of stuff to install to properly work.15
Its soo annoying when u have Anaconda installed with all the shit packages and when u IDLE run the python and import packages it gives errors and when u try to pip install them it says request all ready satisfied in anaconda!!!!😭
A curated collection of python scripts of all kinds - from the fun and silly to the more complex and sophisticated. A small toolset to enable easy usage of scripts from the repository is also underway.
Check it out here -
The worst part about switching code from python 2 to python 3:
`map(myfunc, mylist)`, behaves differently, but won't throw an error. It will just show up as nothing.3
Is it just me who thinks python Kivy is an annoying piece of shit to use? I mean, I'm fairly novice so this may br easy but the pong tutorial they have didn't explain the steps they took and point 0,0 is the bottom left rather than the top left. I get that it uses the Kv files and stuff but it's a pain in the ass to learn. I used pygame instead :/ kinds regretting not committing.. your opinions on it?2
Have anyone work on chatbot with python? I want to start this project any help will be highly appreciated. I am newby to AI8
I saw this quiz. This is Python, right?
I ran this and got '3 44' although I'm not completely sure why the 44. I can see the obvious correlation between 'values ' and 'v'. Aside from that I'm not sure.
Can anyone explain this to me?5
I am teaching some friends python, so i would you comment here challenges to do in it (eg. Python TicTacToe). All difficulties would be appreciated.7
If you're a web developer OR python developer, what are the top 3 concepts you should understand like the back of your hand?11
Ok guys I kinda need your help. I have to write a python project for my school in 3 days and instead of saving everything in files I want to have a database. So my question is can you suggest the most simplest and easiest db to create and connect to Python for a few simple tables. Also the easiest to set up on another computer since my professor will probably want to try it at home.
Also I have to learn Python in 3 days, since I already know a couple of languages, I'm confident I can pull it off. Why I'm asking for help is I need to document it all, that will probably take a chunk out of these 3 days.5
For some reason installing python 3.6 broke my NPM commands so i couldnt install any modules globally. The only solution I thought of was reinstalling windows, so the full day of work has been reinstalling everything
Damn feeling really happy. Finally I am able to understand and make my custom workable middleware in python. It took me 3-4 days to code authorization process 😓
Trevor Payne on @youtube! His series on Python really helped me to understand some of the inner workings of 2.7.x and a bit of 3! He also just started a c++ playlist which I'm excited to check out ( haven't done any c++ in years ).
In India you learn c and c++ languages as beginners at first year of your college in diploma or engineering and you learn python at end of your engineering like 4th year for engineering and for diploma it's 3+3 means at 6th year. Here if you really want to be something you must self-learn.1
thanks for all of your kind words after i had my teeth extracted ( https://devrant.com/rants/1370525/... )
i'm eating normally now, and i'm learning python faster than ever. i really like sololearn better than codeacademy.2
Reading over a note I left myself "Numbers returned will be slightly off due to new implementation and the Fuck that we use a different dataset"
Oh boy. This was there for 2 weeks, Im so lucky no one saw this.
I'm currently writing a discord bot using the discord.py library and I cannot decide how to structure my code.
I was thinking of writing it in modules, with a core script that would load any valid module class that would include an array of all the event hooks it wanted, whether it wanted to send messages and so on.
It's a nice way to practice python after my last working bot that I wrote in (Sit down for this) PHP using an outdated and abandoned wrapper (Yeah, event-based programming in PHP, I know)
Are there any better ways to do this? I really don't want to hardcode all the functions in, only to have it fall apart later after adding another feature...1
When the only thing that standing between you and finishing your app is WebRTC!
BAHHHHHHH, I don't know why, but this thing is kicking my butt. Spent like 2 weeks now trying to get it... Anyone on the community got any good links for how to use this? Because I am losing my mind here D:4
I wanted to fix ugly unittests of parser's function that uses some shitty workaround instead of intended unittest.mock.mock_open, but it turns out mock_open cannot mock different content for each file. Cause you know, noone needs it anyway.
Lol all my creations are useless to a good extent. I work on them just for practice. Here is a short list of them.
1) c program for every kind of sorting algo
2) stack implementation for checking paranthesis and prefix postfix shit in java
3) Treeview implemention with basic utils like create, update, delete in python
Jr dev: I need to log in to servers via ssh and run commands.
me: [posts link to Fabric web site]
Jr dev: Does it support python 3?
Gee...here's an idea. Why don't you try READING THE FUCKING DOCS?!?!?!
I frequently run out of programming ideas. Could anyone tell me a fun project they have done.
I know Python 3, ruby and some C++4
When your code gets out of control because you have one script talking to another and you make it have 10+ arguments and the entire time you're writing it you're thinking "this is just for now, I'll fix this later. I'll do this with JSON or something. Just need to get this to work first."1
It was a weird day today, overall good. My web development books arrived by courier and I got started straight away with them, Thought I was reluctant at first to learn HTML all over again and try JS or CSS, Completed 3 projects by 22:00 and now can't hold myself together and now I falling apart to sleeping state. (No caffeine) Perhaps, I should continue Learning Python along with Web.
Python3's asyncio is awesome.
In an IoT server we used python2 socket programming with multi-threading. Recently I have changed the socket layer to python 3 asyncio and performance was far better. I am not gonna use multi-threading anymore.
What do you guys think about asyncio?1
Say what you want about npm and node_modules, it is much better than other package management systems like pip.
Least I don't need to create an entirely new installation of nodejs every time I want to build something new that might depend on some packages that depends on an 0.0.1 version lower of another package that is used by a different project I currently have to also maintain.
P.s. I do love python overall and it's ecosystem, the package management and version control are sheer garbage.2
I'm working on my Python book and am debating deleting this chapter on Python 2 vs Python 3. It is not an attack or slander against either version. It's simply a high-level explanation of why there are two major versions, which one I'm using, and concluding by basically saying it doesn't matter which you learn because it's the same language with many internal differences. I mean, in terms of syntax differences, Angular 1->2 is worse than Python 2->3.
I'm just not sure if the chapter is worth keeping. This is a brand new book from scratch, being written square in the Python 3.x development cycle. I even plan on introducing the Py3.6 string interpolation syntax. Has the Py 2 vs 3 war calmed down enough yet to toss it or is it still a necessary evil to keep dragging it up?2
Went through 60 python packages to see which fails installing on the serve. Took hrs as I have no terminal access but just via jenkins pipeline. So "edit/gitpush requirements.txt and wait" many times. Eventually looped them 1 by 1 in shell. By end of day got the list that installs.
Finally sent the whole list....with confidence
-Takes full 10 mins & Fails......
(panic mode starts)
+Changed the sequence = fails, somewhere else
+1 by 1 again = installs.....
+few random without the culprit =works
+again, whole list = fails, somewhere else
Need to sleep, brain's thinking of eagles1
A mix of both python 2 and python 3. 4 entry points (although, this was done for the sake of microservices).
All in 1 big monorepo. Hosting a site in mostly static form (i.e each page had it's own index.html with completely different headers and footers, no templates).
Just found this glorious rant about a controversy I completely missed in 2016.
This is by far the best calculator code ever written
Also, love the start
if 3/2 == 1: # Because Python 2 does not know maths
input = raw_input # Python 2 compatibility2
This summer I'll have 3 free weeks. I know Java and Python quite well, but I dont know any frameworks yet. What do you recommend?5
Anybody out there know best library in Python for visualising a robot’s path graphically given its X and Y coordinates? Turtle is way too boring... please help...2
Gahhhh.... This side project I have been working on for the past 3 months is basically finished. However, the production build of the project seems to be breaking a key read abstracion I built. God damm it.
Can't blame anyone but me, because I should have tested this on production months ago!!
Self learned. I was introduced to programming quite early courtesy my dad who pushed me to use Linux. At first I learned basics, enough to tinker with stuff. Then I met python. It changed my world. Now I know C, C++, JS, PHP, Obj-C fluent enough and am working on others. But python will always have a sweet spot in my heart. Also, I think python 3 is a good improvement over 2. Not perfect. But good enough and it still has a future.
Working on SQL and Java
Okay so I've been programming for around a few months learning python. I'm a slow learner so I try to stick with a learning schedule that suits me and i do got it, but I've come across a problem that keeps happening.
When will I know when to use certain functions like len(), range(), Or even modulas %. Because I forget they're there and im worried its going to effect me from being better.
Another problem while I have some of your attention is i dont know when to use math in my code really well but I've been getting better at that so I'm gonna practice a little bit for that.3
!rant (am I doing this right?)
I want to dive into Python, but I read that python 2 won't be maintained by 2020. Should I pickup Python 3 or work with Python 2?
Can anyone suggest me ML and deep learning projects as my final year project..??
any suggestions .... appreciated7
Hi Guys! Currently I'm learning backend web development on freecodecamp.com. Before this I've learned python, just for fun, but I 'painfully' enjoy both. I'm working on an other field now (cnc machining), but I tought I could become a developer. Now I've lost my confindent because a few article on Quora. There a guy (and not only he) said, technicly it'll take over my life. Unbelievable amount of extra time exclude working hours, stress and 18 hours working days. My long plan was to be an independent freelancer, with an easy working schedule (I don't want to be rich, jus have a food valanced life). I've been hoped in a fairy tale? It'll drain my life?4
Python would be my favorite language if I could get my head around the differences between the two versions. Also I want to know what they will do when 2.x gets into the same numbering as 3.x was in?4
Honestly couldn't batten it down, but it's probably somewhere around 3-4 hours. Did a few hacking competitions in college, and that's about the longest I can handle being fully productive. Nothing like a hackerrank from hell where the Perl interpreter didn't work (I know, Perl, yucky), so I was struggling to code in Python during the competition!
I've spent probably 2-3 hours working on this MAC Address lookup script.
Only 100 lines and I think it's decently documented.
Of course, I made a really quick version in Batch within 5 minutes that works decently well, but I'm more proud of this version...
As some of you might know I am Computer science student and does a lot of C# practice and development in my free time!
But recently I am in love with python and wanted to learn it ( side by side with C#). So does anyone have any suggestions of books to learn python from basic?5
Question: what's your opinion on Julia? It seems promising, the macro syntax is neat. But would you use it for data analysis/management or general purpose development?
When one server request goes through and second one fails😥 and then you start contemplating life because the only thing that you thought will stick around with you till the end says ' Uncaught in Promise '!
!rant && needAdvice
I want to start learning python..
My question now is: Should I go with Python 2 or 3? I heard there are some rather major differences6
Six hour of intensive training with Python. Every hour there is something so "WHAT THE F*** COME FROM THAT MAGNIFICENT S**T!?" in my head....
Have a hackathon starting in 12 hours and have no ideas rn. Kinda freaking out, so would love it if you guys could help me out with some ideas! My team includes 3 computer science juniors, and we've worked with Java, Python and frontend and backend web dev frameworks.