Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "pil"
-
When Zuckerberg says "Move fast and break things", it's "innovative" and he is an "entrepreneur", but when I "move fast and break things" it's "reckless driving" and I'm "causing car accidents"...6
-
Developers coding cycle:
Start of Project - "Right, I am going to make this code clean and structured."
Deadline looming - "F**k it, just throw the code in there and get it finished".2 -
I have a friend that is a girl that loves to snapchat everything she does, the problem is that she now works (in apprenticeship) at a huge company and she snapchats her desktop who has a lots of post-it notes and her screen which is showing excel spreadsheets with customers data and stuff...
And she does this on a regular basis btw
Who can be possibly that dumb...5 -
Ask questions during interview.
Ask about trainings - it's usually a good sign when company offers training budget. Ask about specifics - sometimes it's a shared pluralsight account, and nothing else, which means that that had an idea and half assed it into existence.
Ask tech recruiter about overtime, a good sign is when they have no idea or say that it must be budgeted and scheduled - it means that it does not happen often.
Ask if it is possible to select and change projects, and how often it happens - if often, it may be bad low level management, or people learning new things and jumping between projects.
Also make sure to ask about rules for promotions and pay rises. Good company wił have a clear set of rules in place.
All of the above apply to mid to large companies.
For small company, i'm sure it will be different.3 -
This spring I was working on a library for an algorithm class at uni with some friends and one of the algorithm was extremely slow, we were using Python to study graphs of roads on a map and a medium example took about 6-7h of commission to finish (I never actually waited for so long, so maybe more).
I got so pissed of for that code that I left the lab and went to eat. Once I got back I rewrote just the god-damned data structure we were using and the time got down to 300ms. Milliseconds!
Lessons learned:
- If you're pissed go take a walk and when you'll come back it will be much easier;
- Don't generalize to much a library, the data structure I write before was optimized for a different kind of usage and complete garbage for that last one;
- Never fucking use frozen sets in Python unless you really need them, they're so fricking slow!3 -
First year at uni, during c++ basis.
The professor has just finished explaining the while cycle.
Professor: We want the code to print all numbers from 0 to 40 using a counter. How would you do?
Classmate puts up his hand: we do 40 if statements and when we reach the 40th one we stop.
Professor: *face palm*9 -
Before new years eve I prepared a sheet on google sheets that allowed people to add drink recipes and order drinks (specify how many of each drink they want), calculated part of budget each person had to cover and generated shopping list of drink components with exact amounts needed.
It was more fun to make that thing than to attend the party.2 -
I've just found the worst website ever. After some seconds, they show a banner with the usual "agree to our use of cookies" stuff. Of course, I clicked on settings. So it opens another page in another tab. As I started to read that page, another banner was displayed. Ofc I clicked on settings. The same page was opened in yet a new tab. I think you can see we're this is going...2
-
I had to migrate ~100+ svn repos to git that were "useful" according to the client but found out that there were a lot of projects (+6yrs old) with only one commit message "--no-commit-message" and i'm not even joking...
And then I had to explain to these "devs" how to use fucking git with eclipse (+they all use light theme...) cos' terminal or gui client is too complicated
And then I saw their "Java libs" with ~3k line of spaghetti
Do you even dev bro?2 -
Python is a fucking joke. "Readability" disguised as 150+ magic methods and values. Virtual environments to hide shitty dependency management. Strings that may or may not act as comments. No correlation between package and module names - install Pillow; import PIL. **kwargs instead of options=dict(), because why separate function arguments from arbitrary extra data? And finally, the only way to have tkinter on Windows is to install IDLE, so that some fucktard can stick their shitty app right up yours ...7
-
When you're sick of Arch Linux ability to brick your system and you try to install a more stable distro like Linux mint.18
-
Someone just guessed my 20+ character one time password on Microsoft 🤔 2 factor authentication and Geo IP checking are definitely good features.
Well, time to change all my passwords.8 -
We need more positivity:
Reason why you like coding? / Reason why you chose it as your career? / Why wouldn't you want to do something different?
Best feeling when coding
Nicest colleague/Best teamwork experience/Best boss/easiest client
What do you like about your position/job/company
Besides coding, what makes you happy
Your favorite stack/language/working environment3 -
TL;DR: I'm stressed out over choosing a side project because of the commitment and fear of failure :(
I'm a student and summer vacation starts in 3 days (and actually has already started for me, thanks to a "smartly planned" hospital stay), so I'm currently looking for a cool project to start. This will be my third summer vacation during which I want to make complete a project, and I never actually did it. The first year, I couldn't think of any reasonable, doable project which would be interesting and fitting for the time scope (I was quite new to programming back then, so I probably couldn't have done things that would be interesting to me, an any project that I could've done would just take 20 minutes, cause I wouldn't understand anything more complex). The second time, I chose a project too big with too much new things I had to learn on the go. I actually pushed through for nearly a week, but then I realized that I only completed like 25% in that time, so I lost my motivation, thinking I could never finish it, while not wanting to start a complete new project, because that would've felt like wasting the time I put into my first project. It was still a valuable project and I learned a lot by doing it, but this year I want to actually finish a project; so I'm really stressed out right now trying to come up with a good project.
Usually I have millions of vague ideas in my head, but as soon as it comes to choosing, every single one seems to be the wrong one, or I forget about all of them. Everything that kinda interests me seems way to big and complicated to me, but I sometimes feel like I'm just underestimating my abilities, but on the other hand I have ~25 projects on my hard drive, of which 4 or 5 are finished and most will never be finished. :/
And it's just so overwhelming to choose something like that, because on one hand I really want to do a bigger project that I actually finish, and summer vacation is the only time I have so much time to code, and I love coding, but on the other hand choosing such a project that I will work 2-3 weeks on is too much commitment and also I'm anxious about failing it and never finish it, just abandon a buggy mess. Am I the only one to feel that way, or are you too having problems choosing side problems?
And, I guess if you have any ideas for a suitable project (literally anything, so that I might be exposed to some new ideas), just comment it.14 -
Started a new job last week. Pays a tad below average for position, but i get training time and budget for anything i want.
So far i have had few days of company introduction, and now a week for training courses related to position.
I have not seen any code yet, brought no value in, just joined.
Massive green flag to me. -
I invested in a brand new 27" curved monitor to work more efficiently with my laptop but now
HDMI isn't recognized by my linux distro on dual boot where it works perfectly with fucking windows and it used to work nice before the latest update
Tried to install official nvidia drivers to try to fix that
🙃 Guess who has a fucked up X configuration now 🙋🏾♂️3 -
When a JSON structure returns back as:
{
"array_data" : {
"123" : {
"id" : 123,
"name" : "NAME"
},
"176" : {
"id" : 176,
"name" : "NAME"
},
"189" : {
"id" : 189,
"name" : "NAME"
}
}
}
Instead of:
{
"array_data": [
{
"id": 123,
"name": "NAME"
},
{
"id": 176,
"name": "NAME"
},
{
"id": 189,
"name": "NAME"
}
]
}3 -
Company i work for just posted updated pay rates.
It's good. They went from lower end of spectrum to a little above the average in terms of pay, and benefits stay the same - solid. -
Not leaning on unit tests. I usually write them after testing my code manually, and lose time for testing feature by hand.1
-
My top 3 open source projects are :
KDE ❤️❤️❤️❤️
Libinput gestures (allows you to do custom actions with your touchpad)
Strapi (Wich is a nodejs headless cms that gets the job done very quickly I haven't tested it in prod tho)1 -
They will be the first stickers on my laptop. Thanks devRant for hours of fun in this great community!
-
I'm currently in France and after watching my first YouTube video here, I learnt to import lessons: 1. You can't escape from the udemy ads 2. The French seem to pronounce python (as in the language, obviously) like a French word...22
-
I stumbled upon series of stories about serial killer/system administrator addicted to lager and onion bahjits who hates users, managers, beancounters and sales people.
I'm just gonna leave it here https://theregister.com/data_centre...1 -
All I want to do is thumbnail some damn images but PIL and libjpeg are being a pain in the ass and turning everything green.3
-
So I plan to ditch my 17" heavy gaming laptop to chose something more suitable for school for a (13/14") ultrabook (I plan to run Debian on it) that has a decent battery life
Anyway, I looked at those chinese ultrabook on AliExpress/gearbest but I'm a bit skeptical about some factors.
Anyone has recommendations about a model or some advices?9 -
Project Manager: "You have until x date, but how far off are you from finishing"
Me: "How long is it until x date, there is your answer" -
So I encountered Python's PIL module, and started exploring it. Soon enough I built an ASCII art generator that takes an image as a parameter and returns a text output resembling the input image. :)
The github repo is here - https://github.com/rameshaditya/...
Do check it out and gimme feedback, and leave a star if you like it - it means a lot! :)3 -
Last weekend I was working on a small project for a friend of mine: a dockerized webapp, plus API backend and DB. I had some problems with the installation on the vps and had to try out different images and never really did a complete setup of my usual dotfiles. Got it running on an Ubuntu distro. Everything great.
It was the first release so I still had to check that every configuration worked ok, like letsencrypt companion container, the reverse proxy and all that stuff, so I decided to clone the whole project on the server tho make the changes there and then commit them from there.
Docker compose, 10 lines of code, change the hosts and password. Boom everything working. Great... Except for the images in the webapp.
WTF? Check the repo, here they are, all ok. I try different build tactics. Nothing. Even building the app on another docker always the same. Checked browser cache, all the correct ports are open. I even though that maybe react was still using some weird websocket I didn't know, but no.
Damn, I spent 5 hours checking why the f*** the server wouldn't make it out.
Then, finally, the realization...
I didn't install the f******* git-lfs plugin and all I was working with were stupid symbolics links! Webpack never even throw an error for any of the stupid images and the browser would only show a corrupted image, when decoding the base64 string.
Literally the solution took 5 minutes.
F*** changes on production, now I do everything on a fully automated CI. -
git commit -m "FIXME: [bug description]
I do this only on my own projects, because even though the code is buggy, it's better to be able to com back to a less buggy version than to have to choose between a way to old version and an even worse version, after I introduced some more bugs -
What would you want to tell to your past you ?
Like, the advice that could have helped you a lot if you heard it at the right time4 -
Send an email.
Or, more seriously: invite only people who must be there, and can add something to the discussion, have an agenda, stick to it, and plan the meeting so that it ends at the start of lunch break. That way everybody will be interested in finishing on time or earlier. -
When you start using Android ButterKnife and you realise that @BindView(R.id.best_text) TextView bestText; is alot nicer to write than TextView bestText = (TextView) findViewById(R.id.best_text);
-
I started playing around with computers when I was about 3 years old, than at 12 my "Technology" teacher showed us a programmer he and his colleagues made, a free and open source version of Logo, logoit. You could control a turtle and make it draw lines on a plan. Than I got into c++ and web development.
-
Some developers just want to annoy other developers
`var IS_DEV = true
if(!IS_DEV) {
//do stuff for production
} else {
//do stuff for dev
}`
Why don't you just do `if(IS_DEV)`...1 -
So here's the thing.
I'm a junior-developer in a small company and have quite few experience working on big company projects. We have this old massive project which is not very well written. At all. A couple weeks ago I finished small cms project which lets you deploy sell sites. And now my manager assigned me to refactor this old project which is thousand times more complex then the one I developed to use the same concept as mine.
I have no experience managing other programmers, I don't know how are you supposed to separate tasks and how to plan all project till the end. I've never worked in a team where you have lead developer and who gives you technically explained tasks. Mostly it's just "place a button here to export this graph. And please be fast, it shouldn't take more then an hour." when in reality you only spend hour trying to figure out what tables to use and how this graph was created in the first place.
I'm overwhelmed and totally stuck.2 -
I spent ~12h working on a simple issue/bug.
7h was spent on rebuilding local dev environment which is a clusterfuck of maven profiles, tomcat, some autogenerated degeneracy, and 2 different build systems for JS.
5h spent on actual bug fixing, code reviews and so on.
FML2 -
Working on a batch image editor in python as my most recent time killer project. Started out using PIL for py2. Port over to pillow on py3, and one of the core pillow functions exploded my computer.
It memory leaked and took every last kb of unused memory!
Guess Im stuck using py2 -
Got pissed that my story delayed the whole project by 3 weeks (major story, lots of changes, and management decided to put me in a few extra activities outside of the project).
Stayed up until like 23:00 to deliver PR.1 -
Hey guys I have a NUC and a spare monitor are there "fancy screensavers" that I could modify if needed ? Or should I do one myself haha5
-
Get to know the new company better (Changed job shortly before Christmas).
Learn some DPs, DDD, k8s, finish introduction to hacking course, start doing htb and thm machines, finish and defend my thesis, finish books clean code, thinking in java (reading it to fill in gaps on knowledge), a few books about pentesting.
Among non tech goals: pass drivers license exam for cars, another one for motorcycles, go back to learning russian. -
Alias git commit to git stash.
Write a script that opens this page in fullscreen mode after a few minutes of inactivity https://fakeupdate.net/win10ue/ -
Ending my Web Technology project for uni listening to "Requiem for a dream"
Link for additional sensations:
https://open.spotify.com/track/... -
Update of previous post
I just got assigned to a project.
Project-specific training is designed to take up to 20 days.
I got materials, videos, and a person who is in this project for a long time to supervise training and introduce me to the project.
Only problem is that the project apparently uses 5 years old version of base framework.