Тёмный

POV: New guy knows  

Rob Mulla
Подписаться 174 тыс.
Просмотров 1 млн
50% 1

New guy at work knows how to code in #python #coding #shorts

Опубликовано:

 

30 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 987   
@novanoskillz4151
@novanoskillz4151 Год назад
PRO TIP…. NEVER, AND I MEAN NEVER… turn in work right away when you finish early. Your PM is just gonna give you a crazy amount of work and tell you to finish it by EOD! Screw that. Use your last 2 hours to study or relax or play video games. Sincerely - software developer, 11 yrs
@teamofwinter8128
@teamofwinter8128 Год назад
Thx for the advice
@BBWahoo
@BBWahoo Год назад
This guy fucks.
@lassorb4752
@lassorb4752 Год назад
I write rap songs in between assignments 😂🫣
@novanoskillz4151
@novanoskillz4151 Год назад
@@lassorb4752 hey why not lol
@lassorb4752
@lassorb4752 Год назад
@@novanoskillz4151 yeah i mean whatever floats the boat, right? 🤩
@mattbrewerton6884
@mattbrewerton6884 Год назад
This is all wrong... You don't give it straight back, you take a 5 hour break and give it to them at the end.
@robmulla
@robmulla Год назад
So true! But this guy is new and hasn't learned yet.
@Oscar1618033
@Oscar1618033 Год назад
For... : Rename... Wait(30s)
@stefanambrose5616
@stefanambrose5616 Год назад
Yup
@homerodysseus4203
@homerodysseus4203 Год назад
@@Oscar1618033 brilliant
@turolretar
@turolretar Год назад
what’s the point of this exactly ?
@trentonsmith8739
@trentonsmith8739 Год назад
Alternative ending: You accidentally deleted all the files using your busted ass python script and you get fired.
@robmulla
@robmulla Год назад
I love this ending! 😆 Most realistic of them all.
@vej5010
@vej5010 Год назад
well you just redownload the archive then
@dashermorgan
@dashermorgan Год назад
Solution Copy files into separate folder. Folder name: Mistakes
@GottZ
@GottZ Год назад
alternatively: collisions.. if you rename a file to a filename that is already present, you are removing the old one entirely.
@Whoeverheis11
@Whoeverheis11 Год назад
Always test on a copy, never the live version.
@johnmcho
@johnmcho Год назад
"Now let's just run this on everything." Scarier words have never been spoken.
@robmulla
@robmulla Год назад
😅
@blisphul8084
@blisphul8084 5 месяцев назад
Make a backup before you run
@3rdalbum
@3rdalbum 5 месяцев назад
Yeah, you'd likely get featured in a Kevin Fang video in a few years
@ZachAttack6089
@ZachAttack6089 5 месяцев назад
If he got the files from his boss, it's probably downloaded from an email or something, so he can just re-download them if something goes wrong. If he has the only copy, though, then yeah he should have made a backup first lol.
@jenglish1986
@jenglish1986 5 месяцев назад
LOL oh and for good measure please don’t create a backup of the original
@user-ug4ow1qq2h
@user-ug4ow1qq2h 11 месяцев назад
You got a raise... ...ed amount of work.
@RS-fz4ps
@RS-fz4ps 5 месяцев назад
Best variation of the answer.
@MrJonathandsouza
@MrJonathandsouza Год назад
People who work efficiently get rewarded with more work
@robmulla
@robmulla Год назад
The Peter principle is one of my favorites…. people in a hierarchy tend to rise to "a level of respective incompetence"
@XerosOfficial
@XerosOfficial Год назад
That's why you work efficiently, tell nobody, and reward yourself with more time
@embedded_software
@embedded_software Год назад
And then hopefully get recognized for your hard work in your yearly performance review, and rewarded with a raise!
@joshuakevinserdan9331
@joshuakevinserdan9331 Год назад
@@embedded_software raise in the same position? Yeah, that rarely happens nowadays.
@nikobitan7294
@nikobitan7294 Год назад
​@@embedded_software...and then you wake up.
@kylek29
@kylek29 Год назад
Side tip .. your boss (if corporate America) would probably not give you a raise for this, they'd just drop more Python work on you without compensation. If you were not hired as a programmer, you're better off doing it, then going to the bathroom and playing candy crush (or whatever) for the remainder of the time it'd take for someone to do this manually. 😀
@robmulla
@robmulla Год назад
So true 😂
@irascib1e
@irascib1e Год назад
This is a common practice in the industry. I've heard it referred to as "coasting"
@yassinesafraoui
@yassinesafraoui Год назад
Unless that playing candy crush isn't gonna get you anywhere, and probably nothing will, so you'd better carefully choose who you work for and know if they're worth you
@rdow
@rdow Год назад
Or... spend that extra time further developing your skills, then apply for a job that needs them and get a higher salary. Don't waste your time when you're capable of so much more
@knowledgeiskey4087
@knowledgeiskey4087 Год назад
@@chrikke you smart.
@mfc1190
@mfc1190 Год назад
I learned python as a grad student. When I started my first job as a researcher, the team had a task that the boss allocated 6 hours / wk for which was basically running the same program on a directory to generate data, then sending that directory off to the software engineering group to process. The people before me had no Linux or programming experience. I automated this process and humans didn’t touch it anymore. My boss didn’t give me a raise, he gave me more python work 😂. But I loved it and it eventually allowed me to transition into software engineering full time.
@robmulla
@robmulla Год назад
This is an awesome story. Getting a raise is definitely not the typical outcome 😂. Glad you found your passion with python. It’s an awesome language.
@kaynkayn9870
@kaynkayn9870 Год назад
Thats where you add a little time intervals between sending it out.
@samueljehanno
@samueljehanno Год назад
​@@robmullaPython is nice
@Dan_Therapist
@Dan_Therapist Год назад
I`m experiencing this with VBA. Only difference is i haven't made the rookie error of informing my managers hoq hyper efficient ive become im using the spare time to learn python, JS and CSS - perhaps some HTMl down the line so I can hopefully transition to a sev job in 14-18 months
@mfc1190
@mfc1190 Год назад
@@Dan_Therapist that’s about how long it was for me - 16 months. I definitely made that rookie mistake the first time. Future tasks I always gave myself a bit more buffer to bake some learning into my work day, haha. The fun part about having a non-technical manager is that he had no idea how long coding assignments did or should take.
@DarkVortex97
@DarkVortex97 Год назад
Fun fact, using YYYY-MM-DD removes confusing ambiguity between parts of the world that use MM-DD or DD-MM and means when you order alphabetically they are also in date order
@GamingMad101
@GamingMad101 6 месяцев назад
ISO 8601 🎉
@FreakAzoiyd
@FreakAzoiyd 6 месяцев назад
The only way!!! and don't even think about dropping the - 😑
@fltfathin
@fltfathin 5 месяцев назад
@@GamingMad101 i usually hate standards but iso8601 is exception
@tauon_
@tauon_ 5 месяцев назад
​@@fltfathin why do you hate standards? /genq
@givrally7634
@givrally7634 5 месяцев назад
​@@tauon_I suppose one argument would be that standards tend to erase needed diversity. Be it culturally (dialects and regional languages are dying all around the world, and I don't think India would be okay with british people coming to their country a second time and telling them to stop using the Panchanga calendar for the sake of standardization), or even locally (the ISO standard cup of tea absolutely sucks and is not to my taste at all). Sometimes switching to a standard is not worth it (Switching the American grids to 50Hz would cost trillions, if not more, and there would be very little benefit to doing that), and, to quote The Office, "the flowers arrange themselves". Standards are a necessary part of global trade, but deviations from the standard are also extremely important. Not everything has to be standardized.
@MrCOPYPASTE
@MrCOPYPASTE Год назад
if that is the only source folder don't forget to backup it first... real jobs, real consequences...
@robmulla
@robmulla Год назад
True. Don't want to mess up the source data.
@MrCOPYPASTE
@MrCOPYPASTE Год назад
@@robmulla Thank you
@jjjj-ms1ln
@jjjj-ms1ln Год назад
much much more useful than those “you-never-knew” python trick vids
@robmulla
@robmulla Год назад
Glad you think so!
@terrencemurray-7628
@terrencemurray-7628 6 месяцев назад
Flashbacks to those times where i spent an entire day creating a script to automate a process that wouldve taken a couple hours to so manually lol 😂
@RandomBananaInk
@RandomBananaInk Год назад
Tip: The glob function also exist on a Path from pathlib, so that's one less import
@robmulla
@robmulla Год назад
good to know!
@fablungo
@fablungo 6 месяцев назад
And when using pathlib glob, the objects you get when iterating over its output will be Path objects already, so no need to wrap them to get the rename method.
@stamythezombie
@stamythezombie 5 месяцев назад
"Now let's just run this untested script I hacked together on the original copy of company files." will be the final words of many salarymen.
@wxcvbndu51
@wxcvbndu51 Год назад
And this is why software engineers earn so much despite not always actually working full days : they take a process that took someone else a good portion of their time every week and automate it in a few hours so that no even ever touches it again
@robmulla
@robmulla Год назад
The ultimate life hack…
@poopfartlord9695
@poopfartlord9695 Год назад
I mean this is pathetically easy, and a literal monkey could do this. Why would a software engineer deserve to get paid heaps for this when a HR person could Google it, copy code from stack overflow and have it work. Let's not kid ourselves, most SWEs are overpaid. It's not that hard.
@robmulla
@robmulla Год назад
@@poopfartlord9695 let’s by honest. You have a great username
@jasonroos5781
@jasonroos5781 6 месяцев назад
What are you even talking about? 30+ yrs as a software dev ... min 55 hrs a week and on call 24/7/365 even when on vacation. Get paid for working less just ... wut?
@fltfathin
@fltfathin 5 месяцев назад
@@jasonroos5781 few people treat developers as human and attribute their engineering feats as the computer's work. this is why everyone should know how to code or at least how codes works. then they will appreciate the work of developers. just like how people know how to connect wires but still pays electrician for their superior work.
@Louisianish
@Louisianish Год назад
Now, I’d normally say that if your boss addresses you as "Subordinate" and refers to themselves as "Boss" that it’s going to be a toxic work environment, but if I got a raise every time I saved the company time, I’d let them call me "Subordinate" all they wanted. 😂
@robmulla
@robmulla Год назад
Lol. This boss / subordinate relationship is very complex. Like an onion. It has many layers. 😂
@vanbeek62
@vanbeek62 Год назад
I love the callback to office space with the "TPS reports" 😂
@robmulla
@robmulla Год назад
I knew some people would get that one... 😄
@RafaelRabinovich
@RafaelRabinovich Год назад
I wish a raise was that easy
@robmulla
@robmulla Год назад
I know, right?
@MellowSocialist
@MellowSocialist 6 месяцев назад
Everyone knows the reward for doing great work is more work and no raise.
@MisterHumanKirby
@MisterHumanKirby Год назад
Actually more or less how I started with Python. I am an apprentice for a completely different field, but got fed up with a lot of inconsistencies in our workflow, so I started doing a lot of "magic" with Excel. Getting fed up with its many issues and limitations, I did switch over to python after a bit, and not even one year later, here I am as our local data engineer still learning on the job by myself
@robmulla
@robmulla Год назад
I love that story. I started using python to get out of the limitations of excel too!
@nagarajansubramani
@nagarajansubramani Год назад
Pro tip: use YYYY-MM-DD format on filenames for automatic arrangement in chronological order. Edit: clearer example: DD-MM-YYYY shuffles up date order.. because dates get ordered by DD first, then by MM and then YYYY. Eg. 01-08-2022 02-09-2019 03-05-1999 03-07-1980 05-01-2021 Whereas YYYY-MM-DD produces a clean chronological order (asc or desc) 1980-07-03 1999-05-03 2019-09-02 2021-01-05 2022-08-01
@twothreeoneoneseventwoonefour5
you always can sort both ways dude
@robmulla
@robmulla Год назад
People really feel strongly about this one and I love hearing the reasons why!
@nagarajansubramani
@nagarajansubramani Год назад
@@twothreeoneoneseventwoonefour5 Can you elaborate?
@twothreeoneoneseventwoonefour5
@@nagarajansubramani wherever you use those dates, you can sort both ways. What part to elaborate? You can sort in Windows explorer, in Python, in Javascript.
@nagarajansubramani
@nagarajansubramani Год назад
@@robmulla The only reason to feel strongly is if they're used to one format as standard. As far as computer systems go, YYYYMMDD should be the way to go, because mathematically it results in chronological order due to accurate numerical representation. 2020-01-03 is 20,200,103 to a system, which naturally before 2022-08-02 (i.e. lesser than 20,220,802).
@snickerdoooodle
@snickerdoooodle Год назад
I did this once and got 40 people fired. Then I was stuck with the 3 higher up guys and none of them showered.
@darkNovaskar
@darkNovaskar Год назад
Damn
@nashwhal
@nashwhal Год назад
yeeeaahhh so I'm gonna need you to come in on Saturday
@robmulla
@robmulla Год назад
TPS reports get you every time.
@marshallgrey2159
@marshallgrey2159 6 месяцев назад
"I got a raise!" Lmao
@Blaisem
@Blaisem 6 месяцев назад
Immersion shattered
@michaelcamp2870
@michaelcamp2870 Год назад
I’m not quite at the level of fully understanding everything you did here (mainly the library imports and the specific functions/method used from them) just yet, but I was able to see what you did overall - really cool! This inspires me to keep learning so that I can get there. Thanks for posting 😊
@mike4617
@mike4617 7 месяцев назад
Nowadays you can just paste this code in chatgpt and with gpt4 it will elaborate on anything you don't understand.
@emil6421
@emil6421 5 месяцев назад
it’s okay, while it can be useful to know what certain libraries do, no one expects you to learn a programming language by just memorizing functions, you learn them as you go when the need for them arises
@michaelcamp2870
@michaelcamp2870 5 месяцев назад
@@emil6421 thank you for saying that - it’s something I needed to hear
@emil6421
@emil6421 5 месяцев назад
​@@michaelcamp2870 ur welcome my friend. i hope you have lots of fun creating the things that make you excited
@0106139
@0106139 6 месяцев назад
Be cautious with `filename.rstrip('.txt')`! This method treats '.txt' as a set of characters to remove (t, x, .), not as a sequence. So, 'latest.txt'.rstrip('.txt') unexpectedly becomes 'lates', not just removing '.txt'. A safer approach: `filename = filename[:-4] if filename.endswith('.txt') else filename`.
@0106139
@0106139 6 месяцев назад
Same for “.strip()”
@fablungo
@fablungo 6 месяцев назад
In python 3.9+, using removeprefix() and removesuffix() are the better option.
@fltfathin
@fltfathin 5 месяцев назад
@@0106139 .strip() should be only used for spaces IMHO
@ClockworkGearhead
@ClockworkGearhead 7 месяцев назад
"I got a raise!" Hilarious.
@HT79
@HT79 5 месяцев назад
Since this is a simple utility script, it's fine. But when working on a bigger product, you should try to avoid import bigger libraries like Pandas just to use their utility functions. It affects both memory usage and the startup time. Instead, you could either use your own logic (like using regular expressions for example) or check the library's source code to see how that particular function is implemented and you tailor it into your own code.
@photonq2157
@photonq2157 Год назад
"i got a rise!" lmao
@andrelademannvergissberlin8263
YYYY-MM-DD
@robmulla
@robmulla Год назад
AH! Great point. I wish I had done it that way.
@heysiri3327
@heysiri3327 6 месяцев назад
Note: it's easier to sort and clearer if you format dates as yyyy-mm-dd
@christianremboldt1557
@christianremboldt1557 5 месяцев назад
When organizing files, always use year-month-day. The files will automatically be in the right order.
@Mew__
@Mew__ 6 месяцев назад
My friend, %d-%m-%Y is an absolutely cursed date format. Please use %Y-%m-%d (or just %F).
@jearsh
@jearsh 6 месяцев назад
came to say this. if you want them sorted numerically, sort them in descending order of significance. Year > Month > Day. (and always used the ones padded with zeroes) just like: Thousands > Hundreds > Tens > Ones
@dadudeme
@dadudeme 4 месяца назад
ISO-8601 or GTFO
@mister7596
@mister7596 Год назад
thank god for chat gpt
@robmulla
@robmulla Год назад
oh no chatgpt.
@ardenthebibliophile
@ardenthebibliophile 5 месяцев назад
Most unrealistic part: "I got a raise!"
@code-dredd
@code-dredd 5 месяцев назад
*> "I get a raise!"* Yeah, no, you don't. 😂
@idselseno2306
@idselseno2306 Год назад
Back up all the files in case your code bulldoze the entire directory.
@robmulla
@robmulla Год назад
Yes!
@lexluthalutha8767
@lexluthalutha8767 Год назад
Don’t forget the new cover sheet for those TPS
@robmulla
@robmulla Год назад
😂
@rodaguj5718
@rodaguj5718 5 месяцев назад
Nice solution! Here's what I would've done in that situation: I had no idea glob existed, so I would've just used os.listdir and used the for loop on that. I would have used the datetime module for making the date time the default. I haven't used pathlib much so I'd have used os.rename instead (I find it more readable than a bunch of Path objects)
@chind0na
@chind0na 5 месяцев назад
Uh yeah. I’m gonna need you to come to work Saturday and Sunday. That’d be greeaaaat!
@kehan6252
@kehan6252 Год назад
Never ever tell them you finish early. They'll just put more work for you without giving a raise. Send it to them after a period of time. If they are tracking your work, then make a program to trick the tracker. Man, work life is hard.
@robmulla
@robmulla Год назад
Very true. He will learn next time to wait a day before telling his boss 😂
@kehan6252
@kehan6252 Год назад
@@robmulla now he has learned 🤣
@user-lp2vk7xv3u
@user-lp2vk7xv3u 7 месяцев назад
what editor are you using?@@robmulla
@M4XC4V413R4
@M4XC4V413R4 Год назад
Sounds realistic, until the last part where you got anything from it.
@robmulla
@robmulla Год назад
It was a plot twist for sure!
@nanabiznas9645
@nanabiznas9645 6 месяцев назад
The most impressive past of this video is that you got a raise 😅😅😅
@badmath9099
@badmath9099 6 месяцев назад
The end felt like a game ad 😂
@MrThatguyjakeblohns
@MrThatguyjakeblohns Год назад
Just a note, don't import glob. Pathlib has glob built in.
@robmulla
@robmulla Год назад
Thanks! I know that now but didn't when I made the video. That's handy.
@Akabeche
@Akabeche 5 месяцев назад
Ok I feel a little dumb learning this here on RU-vid
@coolcodingcat
@coolcodingcat Год назад
I would test it first with print statements and the renaming commented out. Don't want to accidentally completely mess up the filenames that you loose the information you need from them.
@robmulla
@robmulla Год назад
Good point. Don't want to ruin the source data!
@nikobitan7294
@nikobitan7294 Год назад
You can't undo it?
@MrSpeedyPanda
@MrSpeedyPanda 6 месяцев назад
Overwriting the original files, what an absolute madman.
@johnfeistner467
@johnfeistner467 6 месяцев назад
This man is going through my thought process when coding word for word
@user-mma173
@user-mma173 Год назад
In a locked down environment, I use Excel's VBA to do this. No additional software is required.
@robmulla
@robmulla Год назад
Oh nice. I used VBA a while back. If it’s all you’ve got then that makes total sense.
@Oscar1618033
@Oscar1618033 Год назад
Scraping some data can be annoying with vba. Mixing python's pandas with excel-vba works great.
@daveys
@daveys 7 месяцев назад
Alternatively Power Automate can do similar.
@3rdalbum
@3rdalbum 5 месяцев назад
​@@daveysRequires installing the desktop app or a gateway in order to rename files on a drive, which you probably can't do on your work computer.
@daveys
@daveys 5 месяцев назад
@@3rdalbum - Yeah, I recognise that you do need PA set up properly for certain things. Most firms would probably prefer you to have PA than Python.
@rollinas1
@rollinas1 Год назад
Yeah, classic corporate task, fix file names, don't be bothered about the content 🤣🤣🤣
@robmulla
@robmulla Год назад
"have that TPS report on my desk by COB"
@McPersun
@McPersun 6 месяцев назад
POV: everyone watched those job tip videos and commenting “NEVER TURN WORK IN EARLY”
@WesllyOni
@WesllyOni 5 месяцев назад
The only fictional part here is him getting a raise for turning in work fast and well done.
@Beatsonlite
@Beatsonlite Год назад
WHICH TEXT EdiTOR ARE YOU USING KINDLY
@user-lp2vk7xv3u
@user-lp2vk7xv3u 7 месяцев назад
I was wondering the same :)
@icebird76
@icebird76 6 месяцев назад
Looks like VSCode with a python notebook extension.
@aether6098
@aether6098 Год назад
Good boy now I'll dump all the work without actually compensating you
@robmulla
@robmulla Год назад
True
@gronk1
@gronk1 6 месяцев назад
Reports in here My brain : Okay
@thomascocks9136
@thomascocks9136 6 месяцев назад
A raise on your first day, wow! 😂
@graxtheswampgoblinarchmage5356
Tbh you could have chat GPT write the same thing for you by describing the problem, some python would definitely speed it up though to get a sample of the file names listed in plain text.
@robmulla
@robmulla Год назад
That's a really good point. 🤔
@moatazimad4964
@moatazimad4964 Год назад
good info! next time focus on the technical side and less drama haha
@robmulla
@robmulla Год назад
Trying something different in this video. Funny that yt doesn't like it but it got 70k views on tiktok in just a few days.
@calberk1737
@calberk1737 Год назад
​@@robmulla that's insane. Keep it up. Hope you're making lots of money for your content
@nobleradical2158
@nobleradical2158 Год назад
To be fair this video was kinda about the drama more than the actual technical side.
@catsozen
@catsozen 5 месяцев назад
Bulk Rename Utility : Hello there 👋
@djalexander968
@djalexander968 6 месяцев назад
i was so ready for an ad or some other tacky bs, but partly cause im interested in coding, and partly the funny af comments, this is pretty unique, keep doing you man
@30p87
@30p87 Год назад
Can 100% assure your, the work PC would not have python installed and you're not an admin.
@robmulla
@robmulla Год назад
I feel you. Although nothing in life is 100%
@wi1h
@wi1h Год назад
it's builtin to the windows installer for python to install without admin.. just uncheck "install for all users"
@DBAproduct
@DBAproduct Год назад
Simple, don’t accept a job that’s on Windows
@jmw7312
@jmw7312 Год назад
Where i come from, most likely you would be insulted for not doing it manually. The ppl there are afraid of automation ..... Sadly 😥
@robmulla
@robmulla Год назад
That's unfortunate. But you can benefit by automating and not telling anyone. They will think you are super fast!
@jmw7312
@jmw7312 Год назад
@@robmulla This is what i am doing. But quiet often these ppl are trying to steal my codes and then they see the "demonic" stuff i have commited. Normally i get then insulted for beeing a bad programmer. 🙂 I hate these guys so much .....
@IAmzColbz
@IAmzColbz 6 месяцев назад
There is a Tom Scott video similar to this. Long story short, when youve been given a menial task, dont underestimate your ability to fuck it up by trying to be extra productive.
@pyalgoGPT
@pyalgoGPT 7 месяцев назад
Life saver in a candid way
@marrenirre9994
@marrenirre9994 6 месяцев назад
"They are all in the right format" -Shows horrible format that does not sort chronologically. Hardly organized at all.
@Nelsonoliva1428
@Nelsonoliva1428 Год назад
Nah bro, do it, don’t turn it in until the last minute. Procrastinate the rest of your day and if the manager drops by just open a report and “check” everything is in order
@robmulla
@robmulla Год назад
😶
@Furysonofrage
@Furysonofrage 6 месяцев назад
Lmao "i got a raise" hahaha😂
@dukequack6209
@dukequack6209 6 месяцев назад
God I remember this GUI. Used to ride and die with ubuntu/mint for years. Good times were had then. Now Im honestly just too busy for an ultra flexible os. Bought a macbook when i got my first real job, and it serves all my purposes. Still nostalgic looking back, legit good times.
@the_7th_sun
@the_7th_sun Год назад
Or they just dont let you install python
@robmulla
@robmulla Год назад
Ouch. That's not fun. It's pre-installed on most OS at this point though.
@itachi2011100
@itachi2011100 Год назад
Bro, %Y-%m-%d
@robmulla
@robmulla Год назад
Clearly I struck a nerve with people on that one.
@Runeite51
@Runeite51 Год назад
They will learn, either the moderately annoying way, or the easy way thru us getting annoyed
@zlatanonkovic2424
@zlatanonkovic2424 5 месяцев назад
This is basically how I learned programming. But instead of turning in the work and getting more work in return, I did more online courses on programming.
@moncefbkb9353
@moncefbkb9353 4 месяца назад
Using python to solve problems like these is super fun, I do it all the time, honestly it always takes me longer to write the code than to do the thing manually but i don´t care since it´s more fun. As a famous tweet once said : "Never spend 6 minutes doing something manually when you can spend 6 hours trying to automate it"
@komputerHakka
@komputerHakka Год назад
What is this IDE?
@robmulla
@robmulla Год назад
vscode with the jupyter extension.
@HunterKleinTheHuntzman
@HunterKleinTheHuntzman Год назад
Or hear me out... Learn powershell for these types of tasks so you don't have to install third party software.
@robmulla
@robmulla Год назад
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO ooooooooo o oooooooooooooo 😂
@CD-vb9fi
@CD-vb9fi 7 месяцев назад
Instructions unclear... files are now named entirely wrong... ALL OF THEM!
@user-em2yf6hj9n
@user-em2yf6hj9n 6 месяцев назад
This is out of this world!
@laquavian
@laquavian Год назад
Im learning this language as i type this and im happy i can follow along when you were describing what you were going to do next.
@matteoveraldi.musica
@matteoveraldi.musica 7 месяцев назад
From "You've got a raise" to "You've got other 20 tasks to finish by the end of the day".
@Mikeishere1234
@Mikeishere1234 Год назад
Awesome and i like the antics too
@robmulla
@robmulla Год назад
Glad you like them!
@justafriend5361
@justafriend5361 5 месяцев назад
It wasn't my first day or year, and it wasn't my supervisor. But once, a coworker came to me saying " I have a riddle for you." There was an old database from a deprecated programm. The file names were somewhat cryptic, as was the folder structure. He gave the same task to a senior programmer who told him the file names are in HEX. "You know, that's what it was in the old days. The young guys sure don't know that." It took him 15min. to figure out where the files are. It took me 4...
@tintindb
@tintindb Год назад
Boss has a major meltdown "because the new hire changed the file names"...🙄
@david0aloha
@david0aloha 6 месяцев назад
He skipped over the part where they have manual links to each of the old files in Power BI, and now his manager is upset that an old dashboard is no longer displaying properly for HIS boss. Then you fix that by keeping the old copies of the files for the Power BI dashboard, and new ones for the new reporting. Except the manager arbitrarily goes in and updates some bad numbers in an old report, and is upset when the changes aren't reflected in the new guy's re-named reports. New guy is fired for his "inadequate" solution and is replaced with someone who will work for $5/hr less. The manager is happy until 3 years later when the manager and his whole team are laid off due to inefficiencies in that branch office.
@CalebRoenigk
@CalebRoenigk 5 месяцев назад
Wait till the sky figures out chat gpt can write this in like a minute and a half😂
@chauhang1140
@chauhang1140 11 месяцев назад
Need more videos like this!
@brickshotted
@brickshotted 7 месяцев назад
I dont even work with this, but you know that finishing shit too early, comes back to bite you in the arse. Dont do it
@upsilan_mitstrima
@upsilan_mitstrima Год назад
Another tip, even tho i've never done anything like this i suppose you ahould test it out on a different folder you made with like 4 files first so you wont end up with all the files named "NameError" and make it completely unsortable
@robmulla
@robmulla Год назад
Interesting idea!
@ansiaaa
@ansiaaa Год назад
"I've got a raise!" lol that's the fake part
@robmulla
@robmulla Год назад
Don’t tell anyone but it’s actually all fake. 😂
@Homiloko2
@Homiloko2 Год назад
I was going to point out that doing this would only get you extra work to do with no compensation, but it looks like the comment section is already on point lmao
@evanhedges6802
@evanhedges6802 Год назад
My brain immediately went to the fact Windows Explorer allows for the files to be automatically sorted by creation date and was expecting some sarcasm at the end where why did you waste your time with python.
@robmulla
@robmulla Год назад
Hah. That would be funny, although that would be a big assumption to make that the report creation date is the same thing as the reported about date. What if they make all the reports for the past week on Fridays?
@Gokuroro
@Gokuroro 6 месяцев назад
If you want ordered files by date, always use year-month-day [hour-minute-second-... (depending the granularity you need)] sequence.
@BFedie518
@BFedie518 5 месяцев назад
I was expecting it to break and to spend more time trying to fix it than it would have taken to do it manually.
@PapiJack
@PapiJack 6 месяцев назад
Make sure you don't forget the cover sheet with those TPS reports! 😂
@potatofuryy
@potatofuryy 5 месяцев назад
Instructions unclear, rm -rf:d the company database
@CarolinaMunoz-vy3ni
@CarolinaMunoz-vy3ni Год назад
You never disappoint, Rob.
@robmulla
@robmulla Год назад
Thanks Carolina!
@sfincione2000
@sfincione2000 Год назад
Dear Subordinate... =) Hahahah
@bleepmaster23
@bleepmaster23 Год назад
I basically did this but I used Power Query and VBA but hey there's more than one way to skin a cat
@OneAndOnlyJackSchitt
@OneAndOnlyJackSchitt 6 месяцев назад
My strat is to get the filenames into excel and use formulas to make another column with the correct filenames. Then I can see before and after and also check for duplicates etc. Then make a column which takes the old and new filenames, wraps both in quotes and adds "ren " before both. This column copy/paste to notepad and save as doit.bat. Then in a command prompt, I run doti.bat. (I had to rename about 300 Salesforce fields to add a prefix. The tooling I was using used the filename of the field definition file as the object name. If you're familiar with Salesforce, I'll applaud you for figuring out the shortcomings of this method here but I was about a month into SFDC dev at the time so...)
@louisnemzer6801
@louisnemzer6801 5 месяцев назад
"Wait, I know Python" 😂
@BeenYT
@BeenYT 6 месяцев назад
i swear lstrip and rstrip can be dangerous and can remove extra characters if you’re not careful
@TheLarathavio
@TheLarathavio 6 месяцев назад
If coding was an anime lol
Далее
Simulating the Evolution of Rock, Paper, Scissors
15:00
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
I Missed With The Bottle😂
00:12
Просмотров 7 млн
Сколько метров чернил в ручке?
16:35
меня не было 9 дней
12:48
Просмотров 2 млн
5 Good Python Habits
17:35
Просмотров 429 тыс.
R vs Python
7:07
Просмотров 310 тыс.
why do void* pointers even exist?
8:17
Просмотров 336 тыс.
The most important Python script I ever wrote
19:58
Просмотров 165 тыс.
Hack your brain with Obsidian.md
11:53
Просмотров 1,9 млн
Speed Up Your Pandas Dataframes
11:15
Просмотров 69 тыс.
The Algorithm Behind Spell Checkers
13:02
Просмотров 407 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 795 тыс.
Hashing Algorithms and Security - Computerphile
8:12
I Missed With The Bottle😂
00:12
Просмотров 7 млн