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 - "readline"
-
At first I was like: "wtf just happened? Why is that hand connected like it was a robot?".
.
.
.
.
.
.
.
Then I realised it's a watch.9 -
One of my interview question for fresh graduates was to switch 2 variable values without adding a new variable.
I was expecting something like
a= readline()
b= readline()
a+= b
b= a - b
a-= b
And some kid answered:
a= readline()
b= readline()
print("a=" + b)
print("b=" + a)
I ain't even mad
Can y'all share some good programming questions for interviewing fresh graduates?22 -
3 years ago I became the logistics coordinator of the very first edition of Hacknarök. Now I became the main coordinator of the 4th edition! Honestly I can't wait to do this 😁 I feel so blessed cause this project is like my child 😅2
-
It all started in the year 2013.
I was 13 years old back then. I was a fan of Minecraft and so I learned how to setup a bukkit server and ran it. Installing plugins was fun, because I could be a "hacker" and change the configs.
After a while, (~2014), when I was in the 9th grade of elementary school, I saw Unity. A free game engine. Of course, me being a 14 year old I was intrigued and so I downloaded it, made an account and a new project. I had absolutely ZERO knowledge of programming. Didn't even know what languages existed, so i resorted to presets and poorly put together characters + weapons.
After some time fiddling around with Unity, I've gotten a hang of the basics (not programming related).
My actual programming started when I started High School (year 2016). It's a computer engineering school and for the first part of the year, I've learned from my teacher in C# (Console.WriteLine/ReadLine/Loops/Variables). At the second semester I started to gain interest and motivation to program at home. I did the programs we made in school (random number guessing game) but better. Improved it, added colors.
After that, I started developing in Unity - Actually learning something and having the ability to develop something all by myself. It keeps driving me on. In the second year (the year I'm visiting right now) I tought myself HTML, CSS, JavaScript, jQuery, PHP. I'm very happy and also can't wait to discover and learn new things in these languages!
My latest project was an Android application for my father that he asked for (it calculated the price of the 3D print he would make).
// Sorry for the long post!
EDIT: Forgot to add a fun little detail. All my classmates make fun of me because I program so much !
Also: Tabs > Spaces8 -
Anyone else developed a habit to structure verbal allday Argumentations in your head in Code syntax? Helps me alot to follow ones logic. Except when I'm arguing with my girlfriend. Sometimes setMood(angry) gets randomly called (bug?) and then every if statement seems to be valid, eventhough it should return false. An inputstream that contains my outputstream is initialized but .readLine() is never being called. Instead, the outputstream to my inputstream is being overly abused. Once we get dive deeper into our if-statement we will find a while loop with a mysterious flag. Noone knows it's origin. The while loop keeps printing out random concatenated strings until it overflows your own capacity. I would have said its while(true) but in fact there must be a timer in another very hidden thread or something that sets our flag to false. The other and only way I know to exit that loop is to call apology() 100 times (maybe a variable sets the boolean that could be deeply buried in her projectstructure like this CONST.VALUES.getMood().getRealMood().getTrueMood().TRUTHCONTAINER.angryMode=true)..
I wish I could get a stressball so I can continue theorycrafting and debugging. Its 4.30 am now, my better side is snoozing next to me. I bet making this a pseudocode would be fun.
Ps: I love my lady but I had to rent3 -
I can't take this anymore...
I'm reviewing n-th PR and I wanna gouge my eyes rn. This is the example I found in one of the PRs (and I could enumerate the examples for a long time...)
Mother****er piece of sh*t.11 -
Storing DB credentials in a repo that were encrypted using functions... that are in the same repo (both encrypt and decrypt!)...2
-
I remember I was a child trying to tinker around the only computer that we had. No one knew how to install the Windows OS from scratch with the drivers and everything else (they were installed on floppy disks) so when no one was around I managed to do it everything. I remember such joy, felt like a hacker 😂
Now I'm a web developer and I feel like a moron each time I'm sitting on a defect I can't solve so I'd say these were good times 😜1 -
I just got my first full time job as a junior front end developer just because they didn't have any other option (I was last on their list).
Should I be happy or sad about it?13 -
And here's that app.css single file that my predecessor left for entire project. It's the second work he left a treat for me.
Kill me please.
Btw the code looks like it's been written by a second grade kid...4 -
I just created an Oracle account just to comment on a mysql bug report in order to inform people to use mariadb as a fix ¯\_(ツ)_/¯
^w should delete back a word, not to the beginning of the line! This is broken because instead of readline, Oracle's mysql-client uses editline.
Yet why the fuck do you compile mysql-client with editLine wrapper that breaks the common keybindings?
Licenses is why. Oracle wants to avoid using GNU GPL, and readline uses just that, so they use editline since it has BSD. And they just don't seem to give a damn if it breaks usability.1 -
Instead of using MVC framework (like Angular), my predecessor preferred typing all the data the hard way.... The number of lines were like 2000 (in html...)3
-
COMMENTS BE LIKE...
Physics exam. Seems I was the special guy who did the task in a different (and almost correct way), so my teacher had to share some golden thoughts with me.
Passed anyway xD6 -
That feeling when at the last minute, after an interview they decided to reject your application 😢3
-
During my first hackathon I teamed up with some strangers. We decided to create some games by expanding reality with virtual element (sounds mysteriously and maybe even ominously, but it's not). So here we go - one of them started building android app, the second guy started building window app in C++ and the last one of them decided to create something in JavaScript. It was fun, but I wasn't prepared and so much educated, so after some trials that ended poorly, the only thing I did was the wooden construction that was supposed to hold our tablet up so it could shoot photos recursively. I almost died of boredom for the remaining time.
-
It's been a little bit over two weeks since I quit my first job, thought I would share some stories 😁
I started my very first job in the middle of August (last year) and my duties were to fix some issues on front-end files. You can see my previous rants to see how long were these files 😐
So after 2/3 months I managed to get my shit done, started learning Vue on my own to implement it to new projects (and done it successfully) and learn something about shitty clients who don't know how to live and don't know what do they want.
When I quit the job on the last day of April, I was so happy to end it mostly due to this one specific client who were able to turn happy innocent coding of a great project into hellish shit. Plus there were some issues I noticed with some people I worked with (like they were sending these sexist memes which weren't funny at all 🙄)
TL;DR if you feel that your job post is not for you or that is doesn't make you feel happy or comfortable, don't be afraid to walk away. I did and I don't regret it 😉 -
That moment when you spend your whole night building something to look like a website skeleton in CSS bootstrap so that your colleague who supervises it tells you that it needs to be revamped...1
-
Holy fuck, I just found out about 'set -o vi' which allows editing the readline buffer (the command line buffer) using vi bindings. All that wasted time holy fuck me.1
-
All of my programming knowledge (more like 95% of it) have been gathered by myself. I've started learning during secondary school - the basics everyone has to go through. But it was so awesome that I wanted more. So I've started digging through vast space of internets and books only to find that I know very little. I've had help in the university and high school (the other 5%), but it wasn't enough.
The best thing is - the feeling has never worn off. And I still want more, because it feels like learning magic - the only difference is magic doesn't exist 😃 -
So I've got a relationship related question (thought I'd ask it here since developers usually tend to earn more than country average salary).
My boyfriend feels bad that he must work more while earning less money. He gets to see my work every day (we have desks side by side) and watch me have this cool job with almost no pressure. He feels unjust and upset about it (which I totally understand). He also mentioned that he's not angry at me, but at the system xd
Any tips to how to comfort him? I know it might be the wrong app to ask this question, but I thought someone else might have a similar situation 🙂5 -
Recently I had the "pleasure" to participate in a recruitment process for a web developer internship position.
First of all, a nice lady calls me to confirm everything and sets up a meeting. She mentions about a qualification test and gives me several technologies like python, c#. I was confused but we explained everything and she knew I was not interested in these technologies since I didn't apply for python or c# dev.
Later on I go to their company building to take the test. I get the test, I overview all tasks - 80% of the test was composed of OOP and C#. OOP - this I can understand but fucking C#? Seriously wtf? I wrote the test the way I was able to do it and at the end the guy says it was deliberate to put other technologies so that he could check how would we find ourselves in a situation like this.
Honestly, I felt like the whole process was a big joke for them. I wasted time going there just to see that I'm taking the test that includes the things posted in the job offer only in 20%.
Fuck them. -
I'm learning new technologies! Last time I finished Android course, now I'm going to learn a bit more about MEAN 😄 it's so exciting finding new perspectives of programming 😊4
-
I love maths so much, but I am at the verge of suicide due to differential equations right now...
Wish I could code something 😟2 -
@dfox @trogus do you have any plans for adding chat with other plp around here or link to external portal profiles? I'd like to send a private message to one of them but I can't 😐
Btw I know it's hard to maintain something like that in a database since it takes much space but I wanted to ask anyway 😉14