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 - "yoda"
-
TOP 10 PROGRAMMING BEST PRACTICES
#1 Start numbering from 0.
#10 Sort elements in lexicographic order for readability.
#2 Use consistent indentation.
#3 use Consistent Casing.
#4.000000000000001 Use floating-point arithmetic only where necessary.
#5 Not avoiding double negations is not smart.
#6 Not recommended is Yoda style.
#7 See rule #7.
#8 Avoid deadlocks.
#9 ISO-8859 is passé - Use UTF-8 if you ▯ Unicode.
#A Prefer base 10 for human-readable messages.
#10 See rule #7.
#10 Don't repeat yourself.12 -
The beginning of my freelancing time. I was so naive. Didn't even used contracts...
This one client wanted a website with 2 specific features until a certain time. It should look nice, but only the features functionality was defined. All seemed reasonable at first.
I delivered 2 weeks before the deadline. The client was furious, as it didn't look like they imagined. They wrote me 8 lengthy emails with very fractioned feedback. It was becoming unreasonable.
But hey, I'm a newbie in this business. I have to make myself a name, I thought.
Oh was I naive....
This whole project went on for 2 more months. The client was unhappy with every change and 2-5 emails a day with new demands were coming in. I was changing things they wanted done 2 days ago, because they changed their mind.
Then they started to get personal. They were insulting me and even my family. My self-confidence dropped to an all-time low.
In the end I just sent them all the code for free and went to therapy.
BTW: this was also my most important experience, as things went up hill from then on. As Yoda once said: The greatest teacher, failure is.8 -
I like to fold origami mostly following instructions from youtube-videos. It really helps to calm down and relax and it's a great feeling being able to fold figures without instructions after a couple of times.
Here's the little Yoda I've made as a christmas present5 -
My team lead force pushed to master. This guys always complains when we merge PRs with wip or fixup commits and he just did it himself and tried to cover it up doing a rebase on the master branch.
Good job fucking up everyone. 👍5 -
I am going to create a new language called Yoda that is identical to Java but it has no exception handling and no for loops.6
-
I hate it when people dislike things because it’s cool.
“PHP is terrible,” they say.
Yeah! If it was any good then most websites on the Internet would be coded in it... oh wait.
“Nickelback suck,” they say.
Of course. That’s why they’ve never been able to make any money off their “terrible” music. Oops. Wrong again.
What other things are “cool” to hate just because people say so?39 -
Qualifications and experience require to start a WordPress consultancy/brand agency:
• Be a marketing/people person.
• No technical requirements required.
Hate seeing others get clients and delivering half-assed solutions and deploying outdated and even insecure versions of everything.5 -
Boss quoted Yoda today, to my answer to if I would be able to deliver today a freaking huge project I've been working on, 14 days before the rescheduled deadline I was given, just because the client is pissed with them.3
-
Coding PHP that prints JS that prints HTML and hating myself and everyone who sets “requirements”.5
-
Woo-hoo!!! Yoda is in da house! Or to say it in his own words: "Truly wonderful, the mind of a child is."1
-
arrived all the way to Philippines, the stickers have. yes mhmmm. salamat po @dfox @trogus (thank you).
//po is used to show respect to older people or someone respectable here in ph4 -
WordPress core itself isn’t the problem. It’s the horribly substandard plugins the client insist on that introduces all the problems.
-
Watching all the StarWars for the first time (to fill in the gaps in my cultural knowledge).
I think Yoda may have had some syncronization issues -- some race conditions in his speech I noticed have.5 -
$a = 1;
$b = 2;
echo ($a < $b) ? ($a > $b) ? 'This is totally fine' : ($a < $b) ? 'This is not ok!' : 'Perfect' : 'No problem here';
Why do people do this?!
(And I mean nested ternary ifs, not coding in PHP :P)16 -
Every website we craft at work has some email substitution logic so that addresses you see on the site don't actually exist in the HTML source like that (you wouldn't find them in a format like "foo@example.com").
Instead the @ and the period right before the TLD get replaced with something else (to prevent (dumb) spam bots from using that address and blast it with junk).
Some people replaced them with images in the past (ew), replaced the @ with "(at)" or other stuff.
I made it a habit to render the @ and . by replacing them with span tags which then get a ::before in CSS that contains "content: '@';", so that the @ is visible but is not actually inside the HTML source code.
The classes for these spans then have a random name (persistent for that website though). The first one was called "move-along-nothing-to-see-here", but then I started naming them after Star Wars quotes.
One website's @ class is called "that-s-no-moon" (Obi Wan), others are called "i-have-a-bad-feeling-about-this" (Han Solo), "powerful-you-have-become-the-dark-side-I-sense-in-you." (Yoda) and "these-are-not-the-droids-you-are-looking-for" (Obi Wan).12 -
So my girlfriend decided to get me a rubber duck for my birthday. This is Yoduck, my new dev companion. 😊2
-
My kick-ass merch from JapanCon Brussels (Nov 2018): a Yoda doormat, TallGeese Gundam Wing model, Pulp fiction displate, AND in front of it A 3D-PRINTED PICKLE RICK OMG CAN YOU BELIEVE THAT!!! xD3
-
Don’t you hate it when you realize that although your latest websites loads fine from your laptop; it takes more than a full second to load it from some location on the other side of the planet?2
-
I’m thinking of replacing my dev duck with baby yoda.
Btw he’s 50 years old, and I bet his psychic abilities could help me run my code better.5 -
**Yoda conditions**
(also called Yoda notation) is a programming style where the two parts of an expression are reversed from the typical order in a conditional statement.3 -
“Do or do not, there is no try”
- Yoda, when developing in Rust
Also, my mobile is stuck to always make things a question @dfox
I think it is saving it from an old rant... maybe1 -
What's the funniest, coolest, programmer slang you've heard?
I love the Rubberduck, and Yoda Condition.. cracks me up :P3 -
Welp, how much longer till someone building some magic to crack any modern encryption in blink of an eye.
...
tl;dr Google claimed it has managed to cut calculation time to 200 seconds from what it says would take a traditional computer 10,000 years to complete.
https://nydailynews.com/news/...20 -
Implementing a third-party link shortner:
link.performance=-400ms; link.privacyFactor=-10;
link.ownership=externalProvider;
Keep hyperlinks in-house. Keep ’em fast. Fight the good fight. -
Setup a VPS from Linode today (they hair started offering 2 GB for 10 USD), and was really pissed when I discovered that their “cloud enhanced” kernel had disabled SELinux and generally removed all sorts of useful features and security features from the default CentOS kernel.6
-
Is WordPress' use of God objects really such a big problem? I mean, sure wp_query is used for every possible purpose and is the most mutated piece of horror every. But what is the harm?1
-
Setting Cache-Control headers that are aware of future changes on a given page is freakishly complex. Too bad the Expires header doesn't overrule Cache-Control.1
-
Follow @TheStrangeLog on Twitter to get funny verbatim quotes from various changelogs. They’re more often than not surprisingly entertaining [out of context]!
https://twitter.com/TheStrangeLog -
I got an idea for a fun api which can convert the style of input text, for example “hey I am a chatbot, please ask your query” if converted to the style of yoda from Star Wars will be “chatbot am I, queries you must ask”. There can be different styles like archaic English, sports commentary etc.
I’ve got the ai part ready, just need to write an api (I’m learning django for that). Has anyone got any experience with api marketplaces, I’m not sure what to use?1