Details
-
Location127.0.0.1
Joined devRant on 1/27/2018
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
-
"Knock Knock"
"Who's there?"
"Knock Knock"
"Who's there?"
"Knock Knock"
"Who's there?"
- DoS Attack20 -
A group of wolves is called a pack.
A group of crows is called a murder.
A group of developers is called a merge conflict.28 -
Hi, I am a Javascript apprentice. Can you help me with my project?
- Sure! What do you need?
Oh, it’s very simple, I just want to make a static webpage that shows a clock with the real time.
- Wait, why static? Why not dynamic?
I don’t know, I guess it’ll be easier.
- Well, maybe, but that’s boring, and if that’s boring you are not going to put in time, and if you’re not going to put in time, it’s going to be harder; so it’s better to start with something harder in order to make it easier.
You know that doesn’t make sense right?
- When you learn Javascript you’ll get it.
Okay, so I want to parse this date first to make the clock be universal for all the regions.
- You’re not going to do that by yourself right? You know what they say, don’t repeat yourself!
But it’s just two lines.
- Don’t reinvent the wheel!
Literally, Javascript has a built in library for t...
- One component per file!
I’m lost.
- It happens, and you’ll get lost managing your files as well. You should use Webpack or Browserify for managing your modules.
Doesn’t Javascript include that already?
- Yes, but some people still have previous versions of ECMAScript, so it wouldn’t be compatible.
What’s ECMAScript?
- Javascript
Why is it called ECMAScript then?
- It’s called both ways. Anyways, after you install Webpack to manage your modules, you still need a module and dependency manager, such as bower, or node package manager or yarn.
What does that have to do with my page?
- So you can install AngularJS.
What’s AngularJS?
- A Javascript framework that allows you to do complex stuff easily, such as two way data binding!
Oh, that’s great, so if I modify one sentence on a part of the page, it will automatically refresh the other part of the page which is related to the first one and viceversa?
- Exactly! Except two way data binding is not recommended, since you don’t want child components to edit the parent components of your app.
Then why make two way data binding in the first place?
- It’s backed up by Google. You just don’t get it do you?
I have installed AngularJS now, but it seems I have to redefine something called a... directive?
- AngularJS is old now, you should start using Angular, aka Angular 2.
But it’s the same name... wtf! Only 3 minutes have passed since we started talking, how are they in Angular 2 already?
- You mean 3.
2.
- 3.
4?
- 5.
6?
- Exactly.
Okay, I now know Angular 6.0, and use a component based architecture using only a one way data binding, I have read and started using the Design Patterns already described to solve my problem without reinventing the wheel using libraries such as lodash and D3 for a world map visualization of my clock as well as moment to parse the dates correctly. I also used ECMAScript 6 with Babel to secure backwards compatibility.
- That’s good.
Really?
- Yes, except you didn’t concatenate your html into templates that can be under a super Javascript file which can, then, be concatenated along all your Javascript files and finally be minimized in order to reduce latency. And automate all that process using Gulp while testing every single unit of your code using Jasmine or protractor or just the Angular built in unit tester.
I did.
- But did you use TypeScript?37 -
Internet streaming website be like:
Oh no, you can't right click and save the video file on your computer!
*f12* *ctrl+f* *<video* *right click* *open in new tab* *right click* *save as*22 -
Every day.
I am a PHP developer.
Yeah, "another PHP is awful" rant... no, not really.
It's just unsuitable for some ambitious projects, just like Ruby and Python are.
First of all, DO NOT EVER use Laravel for large enterprise applications. The same goes for RoR, Django, and other ActiveRecord MVCs.
They are all neat frameworks for writing a todo app, as a better-than-wordpress flexible blogging solution, even as a custom webshop.
Beyond 50k daily users, Active Record becomes hell due to it's lazy fat querying habits. At more than a million users... *depressed sigh*.
PHP is also completely unsuitable for projects beyond 5M lines of code in my opinion. At more than 25M lines... *another depressed sigh*.
You can let your devs read Clean Code and books about architecture patterns, you can teach them about SOLID & DRY, you can write thousands of tests... it doesn't matter.
PHP is scaffolding, it's made of bamboo and rope. It's not brick or concrete. You can build quickly, but it only scales up to a certain point before it breaks in multiple places.
Eventually you run into patterns where even 100% test coverage still doesn't guarantee shit, because the real-life edge cases are just too complex and numerous.
When you're working on a multi-party invoicing system with adapters for various tax codes, or an availability/planning system working across timezones, or systems which implement geographical routefinding coupled to traffic, event & weather prediction...
PHP, Python, Ruby, etc are just missing types.
Every day I run into bugs which could have been prevented if you could use ADTs in a generic way in PHP. PHP7 has pretty good typehints, and they prevent a lot of messy behavior, but they aren't composable. There is no way to tell PHP "this method accepts a Collection of Users", or "this methods returns maybe either an Apple or a Pear, and I want to force the caller to handle both Apple/Pear and null".
Well, you could do that, but it requires a lot of custom classes and trickery, and you have to rewrite the same logic if you want to typehint a "Collection of Departments" instead of "Collection of Users" -- i.e., it's not composable.
Probably the biggest issue is that languages with a (mostly) structural type system (Haskell, Rust, even C#/JVM languages to some degree, etc) are much slower to develop in for the "startup" era of a project, so you grab a weak, quick prototyping language to get started.
Then, when you reach a more grown up phase, you wish you had a better type system at your disposal...28 -
Just came back to an old project I haven't touched in a while and realized I did an awesome job documenting it. It's almost annoying my level of detail. I'm proud of my past self for thinking of me now.3
-
One of my pet peeves is coming across a post on stackoverflow with an awesome answer and even a comment from the OP saying this is exactly what I needed but it's not marked as the answer. Really? It's longer to write the comment.1
-
Stop asking which Linux distro is best. Seriously there is no "best" one. Arch is best FOR ME. Debian or Fedora might be your cup of tea. But I have great news for you, they are all FREE and there is free virtualization software you can try them on. Stop asking a stupid question that only gets opinionated answers and flame wars and go try them for yourself.
Also, while I'm on the topic. Ubuntu, Ubuntu Mate, Ubuntu XFCE etc. are all the same distro, they just have a different DE (desktop environment for you noobs). It's like on Monday I wear a suit but Tuesday I wear shorts and a tee shirt, it's still me, I'm just dressed differently.8 -
I've been working towards a degree in CS recently after being out of school nearly 10 years. I've been trying really hard to keep an open mind and not complain about the professors, but I have to let this out.
My one class we have to write all of our code in their specified editor which I hate, but I understand the need for standardization, but then once it is error free we have to copy and paste the code into ms word and turn it in!! Really?! In 2018 I can't just submit my source files and you open them to run and grade? I seriously have to copy my code into ms word for you to grade it? I don't even understand how you would grade that because it kills the formatting and readability, not to mention the quotes get changed to their curly counterpart which isn't valid syntax.7 -
I saw an article about the best open source text editors today. I was expecting to see atom, vs code etc. Well no, the author says "sublime text. It's not exactly open source or even freeware software, but there are lots of open source plugins for it."
Well why in world would you title the article best open source editors?? Why not call it what it is: "my lovefest for sublime text and some plugins." You could post it on your stupid blog with 1 reader per month where I would never find it and waste my time on it.9 -
Using vim inside the terminal to take text based notes for school is kinda like having a Ferrari just so you can use the radio.5
-
Rating:
"1 star for now. Will give 5 stars if it can make me coffee, bring me breakfast in bed and drive me to work."
It's a digital assistant not a literal butler you troll!5 -
Someone at Google: how do we make Android build times quicker?
Someone else at Google: we could make a new button next to Run and call it 'Instant Run' and give it an awesome lighting bolt icon!
First someone: what will it do differently?
Second someone: nothing 😎14 -
Very worst programing language 10
10. No reason to
9. call any
8. Programing language
7. the worst.
6. Cuz
5. they have
4. advantages and
3. uses according to
2. their philosophy.
1. JAVA19 -
Hold your keyboard! Hold your mouse!
Sons of Java, of Python, my brothers,
I see in your eyes the same fear that would take the heart of me.
A day may come when the sense of programming language fails,
when we forsake our logic
and break all the laws of programming,
but it is not this day.
An hour of headache and shattered monitors,
when the age of Javascript rises,
but it is not this day!
This day we will find solutions on StackOverflow!!
By all that you hold dear on this good code,
I bid you stand,
Developers!!!8 -
Random guy : Well I'm not tracked on the internet, I use private tabs.
Me : Well, I'm not sleeping with your mom, I use condoms10 -
After following the recent events and announcements, I'm thinking
Is Google seriously turning into an AI overload..?
What happened to "Don't be Evil"..?6 -
Someones keyboard just stopped working in my job.
They called the helpdesk and i told them to unplug the keyboard from the back of the PC and try a different usb port before i send them down a new keyboard.
Their reply?
‘How am i meant to do that? I mean... *laughs* I didn’t go to college for this kind of stuff. I know you did but you need to explain it in English for me instead of using technical terms.’
....
So i had to describe what a USB looks like, and tell her how to follow the (only) skinny black cable she has on her desk, down the back of the desk and into the PC. She got overwhelmed by this cable being the same colour as the thicker VGA cable, so ended up unplugging everything!
Its fine though, as when she plugged them all back in, everything was back working.
She finished the call by saying:
“Like, i know how to use a computer but I just don’t understand all this technical mumbo jumbo, like USB’s and stuff? How should i know about that?”
...
I sincerely think interviews need to have just 5 minutes dedicated to the person showing that they know what a bloody USB is!!, can turn on/off a PC, open outlook, and follow basic instructions.
Ugh I work with idiots 😢17 -
So you are telling me I can run tensorflow.js on the browser and use user's GPU to power my models!
Oh Yeaaaaaaaaaaah!1 -
In my Inbox, a mail trail with 3 people who concluded: "This is not working properly"
Me: "Looks like a config issue..."
Someone else: "Hey we've now checked the config, it looks fine"
Me: /goes and looks
Me: "But the required line is commented-out..."