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 - "out of the box thinking"
So lot of people ask me here what is Testing?
Well, I have decided to post about it instead of answering every request individually as it is tiresome. So here we go...
- Why to test?
Testing is breaking down a piece of code so that all the possible logical and functional errors can be detected while in development phase, so that the disaster can be prevented in production.
- How to test a piece of code/software?
There are various types of testing like unit, sanity/smoke, functional, regression, performance, security, penetration to name a few. Each has it's own significance and to know more you can Google/DDG them.
- What to test?
We can test any and everything. You can test code, UI, UX, speed of application, database flow, logical flow, functional flow, et cetera.
Testing is an attitude, not a skill. Cannot be taught but only developed by one ownself.
To be good at testing, one needs to have a good design and business sense, apart from technical and functional knowledge.
Many will say, to test one needs to think outside the box. Fuck that. There is no box. Everything is a sandbox and do whatever the fuck you want to, to break things.
Most importantly, thinking from other person's perspective is critical as this helps you think what can an user do with your software. Trust me, humans are idiots and can literally fuck your software doggy style and make you wonder why your code isn't working?
To build an idiot proof software, we need to think beyond human levels.
Never think the obvious. NEVER.
Always try what you think can never happen. System will break, I promise.
Finding loopholes is way easier than you think. Fixing them is surely a challenge.
Moreover, to survive in corporate world leaning the processes is important. The SDLC cycle is what makes a software great.
And today I realised that no role is stupid. Testing is looked down upon in my country. Possibly, IT is the only field where testing has least value as compared to other places like food testing or automobile crash testing et cetera.
And I, myself used to think support is a stupid job requiring no skills. But today I talked to a friend in support and realised that they have more technical skills than a tester.
Everyone is important and we shouldn't look down upon any person or role. Nobody is superior, nobody is inferior. We all are equal.
Together we shall work as a team and a great teamwork can achieve wonders.
Hope this helps. Thak you for reading and do provide your feedback as it shall help me improve.
P.S.: last week somebody tagged me to a new comer's post seeking advice for testing. I don't recollect that so please tag them here again. Thanks.
Edit: I feel like and I might have, missed out some points so please excuse me for that.21
Height of work pressure:
⚠ I was flashing my ID card instead of unlocking the house door with the keys.
⚠Me and my friends went out for dinner in one of the best restaurants and as I finished, I started walking towards the wash basin with plates in my hand.
⚠I don't login to facebook, youtube, etc.. at my personal internet connection at home... thinking it will be blocked anyway. Till I realized that, I was at home.
⚠Once after talking to one of my friends I ended the conversation saying, "Ok bye... in case of any issues will call you back"
⚠Once I went to a pharmacy and asked for a tab. Pharmacist asked whether I want 250mg or 500mg? I replied 256mb. Thank god he didn't notice.
⚠After a hectic week, went to a movie. In the middle of the movie, when I wanted to check the time, I kept repeatedly glancing at the bottom right corner of the Theatre Screen.
😄So avoid working so hard !😄
Have a great work-life balance.
⚠Extreme Work Pressure:
An employee opens his lunch box on the road side to see, whether he is going to office, or coming back from office.😂😂..1
TL;DR : I am sad about wonderful people that might lose their job and passion because of dumb fucking little shit eaters.
My 14yo sister told my family and me, today, about her science teacher who's a young unexperienced woman. She tried, at the start of the year, to be the "friendly" kind of teacher, allowing to eat or drink during class as long as it doesn't disrupt others, but quickly had to become severe because the students would not respect her even a bit (they still don't). They talk and never listen during her classes, they don't say hello, good bye, or anything when they see her, they are openly disrespectful towards her, etc..
As a result, the classes don't go well, the student don't learn anything, and these little hairy sweatballs still have enough nerves to go rant about her at her superiors ! The superiors answered that they're going to fire her next year since so much student complain about her.
- Thinking she was the problem, she assisted to some other teacher's science course to learn how to dispense her owns, in hope she could understand how to interest her students. These wonderful blond heads mocked her for that (I guess that self improvement is something laughable for the next generation)
- Students wanted some blank exams from previous years for a kind of country-wide exam they are going to take. She brought a whole box of it, not even one dipshit took one. Seeing that, my sister took some just to cheer her a bit.
- Students wanted some remedial course. She organised one, booked a room, prepared a lot of exercises and synthesis to hand them out. Would somebody care enough to show ? Not even one. She stayed 2 hours alone in hope that some student would come late.
- Once she was a bit ill and came to school anyway. After she left the room to go to the toilets because she had some food trying to go out from the wrong way, she came back after and tried to finish her class, while she would have had the right to go home and rest...
That's the kind of people who love their job and tries to do it well. Teaching is something beautiful and wonderful, and actually aiming at dispensing it in the best way possible is a great quality. She's available and volunteer, and all she gets is whining students and the risk to lose her job. She was smiling at the start of the year, now she just seem on the edge of crying everyday, every minute. According to my sister, she's the only teacher who's actually trying to teach, and she's the least rewarded of them all.
That fucking breaks my heart. I would smack their tiny pinheads with my terminally ill dog shit if I could. Because of them, she's may lose her job, and worse, her passion. She may become some bitter teacher, dispensing boring material because she has to eat, or just quit teaching altogether, while the world needs more people like that...
I'm sorry for the long rant, but I had to share it, it burdened me. I have a very deep respect for (real) teachers and this kind of story touches me on a very personal level... I hope my children won't be like that (I will make sure they won"t), and I hope the youngest devRanters here aren't like that either. I feel like many people never recognize the luck they have and the wonderful people they meet. You fucking have a chance to learn, to get an education, to raise your brain, to prepare your future, to sharpen your thinking, to enhance your knowledge... And you just piss on it like it was a dead pigeon. Well guess what : you are the dead pigeon. Or you would if you had wings, because at least, one day, the pigeon flew. You, you just dig some stinky hole in your own ignorant excretions, decorating it with glitter and calling it "swag".
I told my sister to go talk to the superiors and try to make them think twice before blindly firing a hopeful person. If they have to do it, the least they can do is to ask themselves why. I also told her to give this teacher some comforting words, just a short letter to let her know that her efforts don't go unnoticed. I think if was in that kind of situation, it would help me a bit if even one person came to tell me that I do well...
I really hope this teacher will be doing well next year and won't give up.
Please educate your children to appreciate what they have and to be supportive, even towards older people. They will grow appreciated and appreciating. Don't let them become spoiled shits who thinks life is doing everything just for them.35
Stop it with the Linux shilling already.
I'm 27 years old and I love Linux and git and vim just as much as the next guy (yeah fuck you emacs!). I have discovered this place as a room for discussion, advise, humor and rants of course, and I had my good share of giggles.
But lately it seems that every other Post is "look at me I installed Linux" or "hurr durr he doesn't use git" or "windows omfg kill it with fire". And to some degree, those rants have a good point and are absolutely right. However, most of them are not.
This is why you're part of the problem. Constantly shaming and ridiculing any technology that's not hip in nerd culture, regardless of the circumstances. This makes you look just as bad as the peoples you look down upon for writing their code in notepad++ on windows xp with McAfee installed. Even worse, from a professional point of view, it absolutely voids your credibility.
How am I to take you seriously and presume a fair amount of experience and out of the box thinking if all you do is repeat catchphrases and ride the fucking hype train. And yes, I know there are a lot of minors or peoples who are just getting started in the industry. But I have seen enough self-righteous hateful spews from peoples who claim not to be.
Anyway, this is getting long and I think I have made my point. Maybe I am just too old to be joking around that shit all the time anymore. But from what I have seen, I wouldn't hire the biggest part of you. Not because you are bad at what you're doing, but because what you say makes you look absolutely unprofessional.
But then again, this is devrant and I love you all. Have a great week everyone!26
The moment I saw a bird laying on the balcony, unresponsive, I dropped everything.
The balcony has glass walls, which the bird hit pretty hard against. It (I don't know the gender) was disoriented, shaking, and totally out of it.
It was almost night, and I can feel a few drops of rain, a sign of, well, more rain.
So I took it in, did some research, left it inside a quiet dark box with a heating mat on the bottom. It slowly calmed down. We slept overnight, listening to the rain outside, thinking about what would've happened if the bird hit, let's say, somewhere else.
It would've not have any help, or care whatsoever. It would die slowly, having a concussion and oh my gosh my efforts doesn't matter anyway this is the way of life there are bird striking windows everyday and I can't help it Holy noodles I should remove windows from every computer in the house...
I was like this the entire night.
The next morning I discovered that the bird was awake, but something was wrong. The bird was still disoriented. Then I discovered something. Gosh, how did I miss it?
The left eye was completely swollen, which had caused the imbalanced walk, which means that it could not fly.
(*Rapidly typing on phone*) come on where is the nearest wildlife rehabilitation centre....
Initially I thought that the bird just needed to recover, I was wrong. It needs professional help ASAP.
To the SUV! (https://myinstants.com/instant/...)
We went to the other corner of the town. Seriously, we were at the southeast part of town, and we have to drive to the northwest.
It took 15 minutes, but we finally got there. I dropped it off and got home. I will never see that bird again in my entire life.
I don't know what will happen to it.
Good luck out there, little bird.
So... That was my weekend. Here comes Monday...8
I was thinking today about a certain aspect of running a software startup and then it came to me...
Hank Scorpio, from the Simpsons, was right in his approach.
So many time I have seen people get hired only for the company to get a less-than-optimal performance from them.
But why is this? Of course, it is many factors but one of the major ones is...
Employers seem to lump employees in together and assume that since most developers operate in one way that the new devs should be the same way.
The problem with this seems to be that we are all pandering to the lowest common denominator.
Let's face it, most devs (like most people) are not good, and almost everyone is not living up to their potential because of a lack of understanding of themselves and how they can achieve more.
On top of that, most devs are just employees who will do what you tell them to.
Since those above developers are the norm (Reference Seinfeld "95% of people are undatable") we have to assume that there is a 5% who are exceptional.
The difference between the 5% and the 95% is NOT some built-in superiority but that the 5% has a good idea themselves and an understanding of how to get the most out of them. They set goals and then find the right path to achieve them. They don't coast.
By assuming these developers are the same as the others is REALLY hampering their potential and by doing this the company only hurts itself.
So, that's a lot of talking but what actionable things can be taken away from this?
Hank asks Homer "What is your dream?"
Well, employeers should take the time to identify which of these developers are in the 5%. A problem arises though when the 5% decide it is in their best interest to blend in.
Like when home says his dream is to "Work for you?" Hank shuts him down and wants to get to the truth. He makes Homer comfortable with not only vocalizing but achieving his dreams.
When an employer is looking for their types they should be looking for the following...
1. A real genuine desire to achieve
2. A real plan to get their goals done
3. Critical thinking and self-evaluation
But more importantly, when they identify these types they should be asking questions like...
- How can we help you be more productive?
- Is there anything about our current operating norm that is hindering you?
- How does your productivity workflow look?
3 difficulties arise though…
1. Most hiring managers are incompetent, and quite frankly, everyone thinks they are in the 5% and for those managers who delude themselves into this without putting in the work, they will have an impossible time actually identifying those who are actually good and productive employees.
2. Showing special treatment to these folks may upset the people below.
3. You will hear things you don’t like…
- That new fancy open-office that you got because it was the trendy thing to do, you might hear that this is a huge hinderance.
- These days people seem to treat devs like nomads, “just give him a laptop and a table and he is fine”!. You may hear that this is complete BS. Real achievers may want a dedicated desk with multiple monitors, a desk with drawers etc.
- This WILL cost you money. I know of developers who cannot work without a dedicated whiteboard. Buy them whatever they need.
- They may want BOTH a standing desk and a chair to sit on.
The point is that it seems to me to be a foolish strategy to tailor your entire company to force everyone into the same work habits. Really good employees have the self-awareness to develop their own productive practices and any keeping of them inside a box will NOT help.28
“I don’t mind thinking out of the box, as long as there is evidence of any thinking going on inside it.” — Terry Pratchett5
This morning there was this window cleaner again, that actually made me remember a rant from the old box - my previous account. Repost of that coming in an hour or so :3
Turns out that he came in the morning, and I completely forgot about it. The only appointment that I had today got canceled so I was like, eh fuck it. There's been this family event yesterday that made me so fucking tired... I'll just stay in bed for a little while longer.
Apparently that window cleaner ringed my bell multiple times, haven't heard him do it but anyway.. he and the cleaning lady had the genius idea to ask my landlord whether they can just barge in my home. Way to start the day, isn't it? I thought there were burglars.
In my bathrobe and visibly pissed off (I am NOT a morning person!), I let him do the window cleaning and waited for them to get the fuck out already. Then that cleaning lady, the fucking bitch that called my landlord to break into my home without MY prior permission!!! While the window cleaner was doing his work, she proceeds to ask me this.
Cleaning lady: "I had this technical issue earlier, and since you are good with phones I thought I'd ask you."
Me (thinking): oh, here it comes.. *rolling eyes*
M: "What's the issue?"
CL: "Well my stepson has an iPhone, which he broke and we brought it to a smartphone repair shop. They repaired it twice but an hour after receipt of the fixed phone, it breaks again."
M (t): You went wrong at iPhone, and you went wrong at visiting that incompetent mofo "teknishan" twice.
M: "Well I have no experience whatsoever with iPhones, but continue."
CL: "Well, he replaced the motherboard, and some pin at the bottom.."
M (t): The fucking motherboard of all things. The whole fucking motherboard?! The last thing that I'd look at, he just replaces like that?! Fucking piece of shit. That's even worse than Apple stores. And what's up with that goddamn pin? CAN'T YOU POSSIBLY BE A BIT MORE SPECIFIC?!
M: "Given only this information, I have no idea what's wrong with it."
CL: "But you are good with these things, aren't you?!"
M: "I disassemble my own broken phones, and dick around with their motherboards. That, while I'm fully aware that in the process I can break it beyond repair. That does not make me an expert on every phone out there."
Well what did you even expect, fucking bitch. You barge into my home, don't even have the dignity to leave for me to be able to shower and dress myself, and then you go ask shit like that? Go suck my fucking cock, and shove that iPaperweight down your ass!! How about that?!9
So I'm using a temperature sensor to detect the air temperature in a box. I'm getting readings of about 225°C. Thinking that's weird I check the algorithm converting the input to celceius. Seems legit. Okay must be hardware, let's try resetting the sensor into the board. Turns out the readings weren't lying... Long story short, if you reverse the polarity of a temperature sensor you get a very powerful heater...5
Need some advice -
I have over one month spare time before joining the company. I have always wanted to learn an instrument but I'm also 'thinking' of joining a gym but I don't have any fantasies for big biceps and I am a big time foodie.
I have read that learning new instruments would help you in critical and out of the box thinking which is a definite plus while programming. While joining a gym would be a good way to keep myself fit in this hectic world of programming.
I'm torn in choosing between these two options. Which one should I join as a developer? What would my fellow devs suggest? 🤔22
Last night, after reading one of my computer science textbooks, I couldn't go to sleep because I came to the realization that computers will never be able to think like humans. Because a machine does what it's told to do. It is incapable of thinking outside of the box. What will need to happen is that parts of a human or some biological organism, essentially the squishy stuff, will need to be combined with a computer.
What I mean to say is that computers are good at answering questions in an absolute way. Essentially, you give it a problem and it will click away at it until some output pops out. Yes advanced AI exists, like Alpha Go. But again it's only doing what it was programmed to do. Looking at ways to play a game and answering for that question. In this case, playing a game of Go. I'll guarantee you, that not once did it stop to ask **why** it was playing Go. It was simply__just__ playing Go. But that's it. That's the limit. We give machines data/statistics and we let me them give us an answer based off of that data or input.
This is how I imagine intelligent machines will come about. A biological brain will be combined with a machine. The brain will be doing alot of the questions, and the machine will do a lot of the calculations. Together, they'll be able to answer hard questions. The heavy calculations will be left to the machine, and the heavy thoughts will be left to the brain.
I mean technically we're already doing that. But imagine a machine/brain computer that does not sleep, can't get sidetracked and will never procrastinate. That would be a scary machine.26
Very excited, got my raspberry pi zero working over usb finally, gotta admit it took me a while to figure it out that the ifconfig IP assigned to the interface established isn't actually the raspberry pi's (seriously you don't want to see how far the visited google links go for all variations of "how to setup the otg ssh connection"), that only came to me once I was able to find the mini-hdmi to hdmi cable, before that it was a pure shitfest:
First I just tried all sort of configs, but the raspberry pi kept denying the ssh connection, slammed the microsd into my bigger Pi, even multiple times ran raspi-config, forced ssh to start in all possible ways, nothing.
Then I tried to use the TV-output on it together with my old small portable tv to maybe see some error-logs or the ssh not starting on the zero for whatever reason, even flashed a 2016 image thinking it is stretchs fault for not working, but then my fucking soldering iron cable disappeared, tried to quickly create my own, but that failed cause the 3.5mm connector it uses is different from the ones I had available, so I macgyvered a sketchy ass lose connection with male headers sticking through from the bottom and being sticked against the board with a female end on top, but the TV output wouldn't work, even with proper config options, so I gave up.
Some days later I've found the cable, connected it and realized the fucking IP it gets assigned is totally different from the interface, well fuck my life.
Atleast now I can make a clean image of that microSD and setup the portable laravel development raspi as I wanted, can't wait to try it once I get more time to fully set it up - btw even the internet bridge worked right out of the box, so I can easily use my laptops internet connection on the zero.9
I feel like writing or telling people about the time I jumped from Windows 7 Ultimate and jumping to Windows 10. (I'm not against 10, but I'm never updating after what had happened to me)
It all starts when none of my games will play due to a possible issue with my graphics card. I look up "3D source game bug" and not many results pop up. I go on Microsoft's Qna areas and ask this question but to my surprise nothing they say would make sense. "Clean the pins of your graphics card, make sure you verify the games on Steam". I verified the games and they checked out as perfectly fine. I don't have access to my graphics card because this is a laptop, sadly not a tower.
Two months pass and my computer is already showing signs of stress, like it didn't want to live in a sense. It was three times slower than when I was on Windows 7 and it was unallocating areas of my main hard drive where I could make virtual hard drives.
Instantly I start looking up Linux distros and find Linux Mint. 17.3 was the current version at the time. I downloaded it and burned it onto a DVD-rom and rebooted my computer. I loaded into the disc and to my surprise it seemed almost like Windows 7 apart from the Linux part. I grab my external hard drive and partition it to hold the Linux distro and leave it plugged in incase Windows 10 does actually fail.
On December 19, a few months after Windows 10 had released. I start my laptop to try and continue my studies in video game development. But to my surprise, Windows 10 had finally crashed permanently. The screen flickered blue and black, and an error box saying Loginui.exe failed to start. I look at it for a solid minute as my computer had just committed suicide in a sense.
I reboot thinking it would fix the error but it didn't. I couldn't log in anymore.
I force shutdown the laptop and turn it back on putting it into safe mode.
To my surprise loginui.exe works and I sign in. I look at my desktop, the space wallpaper I always admired, the sound files, screen shots I had saved.
I go into file explorer and grab everything out of my default hard drive Windows was installed on. Nothing but 400gb got left behind and that was mainly garbage prototypes I had made and Windows itself. I formatted my external hard drive and placed everything on it. Escaping Windows 10 with around 100GB of useful data I looked at the final shutdown button I would look at.
I click it and try to boot into normal Windows 10. But it doesn't work. It flickers and the error pops up once more.
I force it to shutdown and insert the previous Linux Mint disc I made and format the default hard drive through Linux. I was done. 10 gave me a lot of shit. Java wouldn't work, my games has a functional UI but no screen popped up except a black abyss and it wouldn't even let me try to update my graphics card, apparently my AMD Radeon 5450 was up to date at the AMD Radeon 5000's.
I installed Linux Mint and thinking the games would actually play I open steam and Launch Half-Life 2 to check if Linux would be nicer to me than Windows 10 had been.
To my surprise the game ran. The scene from Highway 17 popped on screen and the UI was fully functional. But it was playing at 10-15fps rather than the usual 60-70fps. Keep look at my drivers and see my graphics card isn't in use. I do some research and it turns out I have a Hybrid Laptop.
Intel HD Graphics and an AMD Radeon 5450 and it was using the Intel and not the AMD. Months of testing and attempts of getting the games to work at high frame rates pass and the Damn thing still functions at a low terrible fps. Finally I give up. I ask my mom for a Windows 7 disc and she says we can't afford it. A few months pass and I finally get a Windows 7 installation disc through money I've saved up. Proudly I put it into my optical disc drive and install it to my main hard drive deleting Linux completely. I announced to all my friends my computer was back in working order and I install everything I needed, Steam, Skype, Blender, and Unity as well as all my games. I test Half-Life 2 and it's running exceptionally smoothly, I test Minecraft at max settings and it's working beautifully. The computer was functioning properly once again and my life as a developer started as I modeled things and blender, learned beginners C# and learned a lot of Batch. Today the computer still runs at a great speed and I warn others of what happened to me after I installed Windows 10 to my machine if they are thinking of switching from 7 or 8 on an older machine.
Truly the damage to my data cannot be undone. But the memory of the maintenance, work, tests, all are a memory of how Windows 10 ruined me and every night before the one year anniversary of Windows 10's release, I took out the battery of my laptop and unplugged it from the a.c. power, just so Windows 10 doesn't show it's DLLs, batch scripts, vbs scripts, anything on my computer. But now, after this has happened and I have recovered, I now only have a story to tell5
So I finally gave Drupal a try as my colleague is thinking pretty highly of it. Well I installed it, checked a bit... Then uninstalled.
Not interested in building websites that look 20 years old out of the box. Plus, it is god damn slow.
I'd rather build custom admins each time. I start to hate CMS systems, even if they can be pretty convenient sometimes.1
Worst: Writing a quick thing in Python, debugging endlessly because some class I created wasn't being instantiated properly and then realising that I haven't added the holy "()" while creating the object and before using methods in my unit tests.
Best: Creating some pretty sweet algorithms because I was thinking more out of the box and trying things out just for the lulz.
I remember when I first heard about nodejs. I was like " o boy that's what's called thinking out of the box!! ". Now whenever I want to motivate anyone I tell them about ryan Dahl.1
I'm sure we all have those moments when we feel spacey, but there is fine line between thinking deeply and being under a strong hypnotic trance! I honestly believe there might be something wrong with me because usually when I start blanking out, it's like my mind falls into another universe that is far away from earth! I can not ( see / hear ) what is going on around me!!! I sometimes even forget where I'm at and what I'm doing... until someone tries to get my attention! NOW WAIT A MINUTE! HOLD UP!!! BEFORE YOU ASSUME ANYTHING, NO I DO NOT SMOKE OR DRINK. AND I DON'T DO DRUGS EITHER!!! I AM A CLEAN HEALTHY PERSON... I just can't seem to understand why I am so mentally outside of the box instead of inside...1