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 - "1<<10"
-
My coworker left his Windows 10 system unlocked today.
Me:
1. Print screen on desktop
2. Saves the image
3. Sets image as wallpaper
4. Hides desktop icons
5. Changes taskbar alignment to the right and enables auto hide.
6. 🤣🤣🤣37 -
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 -
Math teacher: 1+1=?
Me: one zero
Math teacher: wrong!
So i gived to her my calculator (in binary mode :-) )
Me: check the answer.
Math teacher: [saw 1+1=10 on calc] thinks about 10 seconds LOL then says: you calculator is broken!18 -
Whenever I feel depressed in life.. I open my GMail inbox...I find:
1) 10 banks are giving me easy loans.
2) I have won GBP 10000000 and USD 500000 for unknown reasons.
3) 10 Job companies have best jobs for me.
4) 5 matrimonial sites have most suited matches for me.
5) Dr. Batra has claimed that he will cure my hair fall.
6) 3 universities are giving me degrees in random subjects.15 -
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 -
10 Things You’ll Find Shocking About Asynchronous Operations:
3.
2.
7.
4.
6.
1.
9.
10.
5.
8.
(found on twitter by @iamdevloper 😂)6 -
What my lecturer think I have learned:
- Programming Patterns
- C, C++, Java
- Socket programming, web programming
- Operating system...
What I have actually learned:
1. printf("Hello World");
2. echo "Hello World";
3. console.log("Hello World");
4. Console.Writeline("Hello World");
5. cout << "Hello World" >> endl;
6. System.out.println("Hello World");
7. puts "Hello World";
8. "Hello World"
9. write("Hello World");
10. Display "Hello World"10 -
1 hour to install Windows 10
4 hours installing windows updates
8 hours installing visual studio enterprise
*sigh*10 -
The company I work for...
Has:
1. No CI/CD
2. SVN instead of GIT
3. Outsourcing to India (oof)
4. No Automated Testing
5. Uses Bugnet (ancient, outdated)
6. No clearly defined code standards
7. No real documentation on the code
8. Rubbish code
9. No desire to reduce technical debt
10. Poorly maintained DB
11. Poor outdated equipment
12. A useless PM
13. Still priotizes IE support (??)
On a scale of 1 to 10 how fucked is this company and anything they develop?41 -
Response time of different people on Whatsapp:
Best Friend: 5-10 sec
Friend: 1-2 min
Best Friend(Girl): 3-5 min
Girl Friend: 1-2 day 😢
Client(when me solving bug): 0.00005 sec
Client(when me asking payment): *Blocked*
😕😕😕😕😕7 -
Life of an IT guy
1.Born
2.Study
3.Job
4.Shall I share my screen?.
5.Are you able to see my screen?
6.Am I audible ?
7.Correct me if I'm wrong
8.Sorry I was on mute
9.Ok.. I am sending that email.
10.Did you receive my email?
11.I am on a sick leave.
12.Death
Pretty much it!4 -
!rant
Does anyone of you know LOLCODE?
If not let me present you a simple program that displays the numbers 1-11 and terminates:
HAI 1.2
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
VISIBLE VAR
IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
KTHXBYE
You gotta love the okay thanks bye as termination :D
Check it out on GitHub8 -
10-1 AM - 4 of us got drunk.
2-4 AM - 2 hours straight coding, solving big-ass problems
10 AM - Fucking hangover and python code in a java project!4 -
Share your most useful terminal aliases and functions.
alias gs='git status'
alias gcm='git commit -m'
alias push='git push'
alias pull='git pull'
alias hosts='sudo nano /etc/hosts'
alias glog='git log --graph --oneline --decorate -n 10 --color'
alias mykey='cat ~/.ssh/id_rsa.pub | xclip -sel clip'
function mkcd () {
mkdir -p -- "$1" && cd -P -- "$1"
}
As well as one for each major project (lets say 1+ weeks of dev time) to immediately cd to it from anywhere. How about you guys?
Always looking to improve my terminal commands, so am curious what everyone else uses for shortcuts.27 -
Simple 1 day task. This idiot takes two weeks and after 7 days of hounding finally opens a pull request.
I go in to review the code. Should be a simple 10-15 line patch.
13,000 lines of code changed.
THIRTEEN THOUSAND!
"I fixed a bunch of formatting mistakes and replaced all instances of single quotes to double. Consistency is important you know."20 -
@dfox feature request: polls
It would be great to ask (for example) "what's your preferred os?" and have ppl respond by hitting 1 of the 4 options:
a) linux (60%, 600 votes)
b) mac (30%, 300 votes)
c) windows (0%, 0 votes)
d) other (10%, 100 votes)
Sorry if already requested.26 -
Me everyday:
1- Get excited to start coding
2- Start coding
3- Run code
4- Bug found
5- Start debugging
6- Start feeling frustrating
7- Start questioning myself about career
8- Start hating life
9- Start banging head against the wall
10- Start looking for a different job
11- Oh shit! It was a typo
12- Go back to number 16 -
#Programming alone
print "Hello World!"
#Programming while someone watches
global _start
section .data
msg db "Hello, World!", 10
len equ $ - msg
section .text
_start:
mov rax, 4
mov rbx, 1
mov rcx, msg
mov rdx, len
int 0x80
mov rax, 1
mov rbx, 0
int 0x805 -
That moment when your game appears on some Formula 1 Hungarian website and your server's network transfer is gone from 10 GB left to 2 GB left in just 2 days... But still - I'm proud of myself
http://formula.hu/parc-ferme/1654910 -
1 fix my crappy sleep schedule.
2 organise my time better.
3 stop being a glutton.
4 earn a aws cert.
5 build a portfolio site.
6 build projects to go on portfolio site.
7 find a new job?
8 do some machine learning.
9 find love?
10 continue automating people out their job at their request.4 -
Me trying to install a software :
1. Download the binary file
2. Error this file can't be executed
3. Download the source code
4. Compile
5. Error - instruction not supported by this OS
6. Create a new disk partition
7. Download ubuntu
8. Install ubuntu
9. Apt-get install
10. Error - package not readable by this version of ubuntu
11. Kill myself4 -
Silicon valley season 1 - episode 10
Filename: devrewrite_v092.js
A javascript file running html code18 -
Using web2py, I wrote an SMS center for an African country and my company sold it for 1 Million dollars. I guess it was a success as it took me 10 days to develop it's initial release.3
-
1) Using WordPress
2) Using WordPress
3) Using WordPress
4) Using WordPress
5) Using WordPress
6) U5ing WardPrrrs
7) U5ing WardPrars
8) U5ing WardPr3rs
9) U51ng WardPr35s
10) U҉5҉1n͢y͜ ͞W̷a͞rdPr3̷5͟5̛
11) O̧͘51͜n̨҉y ̶̀Ẁu͝rdPr͠3҉̵͠5̴͟5
12) U5͝1ny ͜Wa͠r͞dP̀r̀35҉5
13) U̕҉̷5̷͢͟͠͞1̴̵̕ǹ̨̢͟͢ỳ̨͜͡ ̕͜͢Ẁ̸̢̕à̢͜͞r̷͜͏̀͜d̨͜͏P͘͜r̛͞͠͠͏3̢̨̡̛́5̴̀5̧̕͏̶
14) U̵ͦ̇͌ͣ̓̈́̒͆̇ͨ͑͟5̴̽̾̓ͯ̔̎̓̔̀̚̕͜͜1̶̷̏͂̑͆ͪͤͥ̈́̔͛͌̅ͨ̚͜n̢ͯͫͬͩ̾̌̇̓͐̒̆͆̋͡ỳ̋̈͑̏̐͜͞ ̓̄͑ͦͬͣͬ͒̈́̍ͦ́ͭ͐̒̑͂͘W̆͋̃̓ͫ̌ͭͩ̾͊̔̋̚҉̀̕͡͠a̷̡̧ͦͦͩ́̈́̃̆̆ͨ̈̚ŗͫ͛̿͗̋̎ͮͫ͊͗ͪ̓̍ͨd̵̢ͦ̐̎̀ͮͫ͛̒̈͋ͫ͗̒̋͢͟P̷ͯͦ͒̒̌͆͡͞r̆ͭ̈́̀͂ͮ̓̂͑̆ͯ̾̀ͪ̋̄̚͟͞҉͞3̔͑̏̽̾̿͂̋̀͟͢5̴̂̈́͗̍ͩͦ̀̋̆ͣͨ̿͜͠5̸̴̶̧̏̂̽̈́̏̃ͫ̅͗̈̂̽̈ͣ̊
15) U̸̶͍̭͕̩̺͓̩̞̫̲̳̥̘̰̦̼͇ͧͫ̍̌̔̆̒ͪ͛̅͂̚̕͟5̷̹̱̜̫̞̮̲̬̲̱̻͙͊̋ͥ̊͜ͅ1͙͎̹͔̺̯̟̮̳̀͋͐̍̿̿̏͋̿̏͐̾́̓͑͋̃̈́͘͡͡͠͝n̴̆ͦ̽͡͝͝҉̫̰̗͓ỷ̴̸̦͕̻̩̖͓͚̟͆ͦ̓̍̇͊͆͊̏ͥͮ ̶̛̹͍̪̟̦͉̙͉̰͎̞̮̰̗͈̥͙ͮ̃ͧ͌ͪͥ͌ͨ̋̈́̚ͅW̩͙̮̯̪̳͖̙̘̰̍ͮͣ̋̇̒͐͋̀ͅa̶̸̷̮̜͈̟̳̺̣̪̻̼̻͍̺̹̽ͩ̿̈ͭ̈́ͩ́̅͌ͩ̈́̾̀́r̵̡͚̘̹̻̩̞ͦͨ̋ͣͣ̆͊̅̂̃̄͛̈́̒̒͒̾d̸̡͓̘̮̲̰̥̗̣̙̬̹̰ͩ́̈́ͥ̅̽ͫͯ̓͜͞P̧̹͉̬̠̻̮̫̼͉͖̯̙̞͎̲͙̖̉ͨ͐ͮ̀͞r̡̖̜̦̞̭̼͐̃ͬ̒̉̈͑͘3̷͇̖̹̱͍̯͈̣̼͔͉͉̜̣̱̉̎̈́̽ͧ̓ͥ͐͟ͅ5̮̩̗̣̣̤͇̲̟͇̒ͥ̂͗̒̆̕͜͝͞5̩̳̗̻̻̯̺̺̻̯̑͐̈ͤ̏̈́̾ͮͨ̀̃ͫ͋ͥ̾̚̕ͅ
REEEEE̸͢E̛͜E͜͡E҉EE̢EÉ͜҉E͠͡È̷̛̛͢E͏̸̨҉E̛҉E̴̷E̢ͪͩ̀̍̍ͦ͒ͪ̈̑̚̚̕͝Ę̴̒̀̐ͭ͞Ȇ̵ͪͫ̍͊̆ͦ̓͢҉Eͪ̈́͊̿ͦ̾͘E̸͒̅̐͆͋̏ͥ̑͒ͫ͋̈́͝͡E͆ͪͬ͘҉̕͞E̢̞̫͕̞̩͇̞̳̦͚͔̪ͭͭͭ̒̔̾͠͞E̡̡̲̤̼͙̥̦̎ͮ̑ͯ̏ͫ̽ͮ́͛̐͡E̷̴̡͙̜̫̠̞̯̗̽ͭͯ̓ͣ̾̐ͪ̚͡Ẻ̷̖͕̖̬͚̦̼͙̖̭̪̖͙̥̘͎ͥ̊ͤ̓̄̇̄̀̚͜E̸͉͍̟͈̺͚̲̦̯̭̬ͧ̈̐̌̇͌̐̀͘͞Ȇ̵̢̛̯̜̤̭͋̏ͣͤ́́E̶̢̩̯͕̱͔̱̙̻̼̬̝̳̹̞̰̹̾͛̒̉̈́̊͒̿̔̈ͦͦͅͅE̢̞̫͕̞̩͇̞̳̦͚͔̪ͭͭͭ̒̔̾͠͞E̡̡̲̤̼͙̥̦̎ͮ̑ͯ̏ͫ̽ͮ́͛̐͡E̷̴̡͙̜̫̠̞̯̗̽ͭͯ̓ͣ̾̐ͪ̚͡Ẻ̷̖͕̖̬͚̦̼͙̖̭̪̖͙̥̘͎ͥ̊ͤ̓̄̇̄̀̚͜E̸͉͍̟͈̺͚̲̦̯̭̬ͧ̈̐̌̇͌̐̀͘͞7 -
Reasons I hate the US
1. It's fucking 2 in the morning there and folks are checking their Slack when they wake up for pee breaks or done after their sex sessions.
Nearly 90% of the team is on and off checking Slack.
2. Culture fucks have only 10 holidays and hence they align rest of the world to their calendar and only give 10 holidays. India, Europe, and entire world can easily get 15 holidays per year outside their leave quota.
What a cluster fuck of a country it is.25 -
How millionaires deal with laptops.
1. Buy a gaming laptop.
2. Install any OS.
3. Open IE11.
4. Place cursor in the new search bar in top right.
5. Type 4k wallpapers.
6. Download anything.
7. Open in MS Photos.
8. Right click, Set as > Wallpaper BG
9. Leave it in the corner.
10. Sell it at double 2 days later.14 -
Boss: How long till it's done?
Me: 1 week
... 1 week later
Boss: How long till it's done?
Me: 1 week
... 1 week later
Boss: How long till it's done?
Me: 1 week
... 10 months later
Boss: It's almost Christmas
Me: 1 week10 -
I find it funny how so many people still do not know that 1 kilobyte is just 1000 bytes and not 1024 bytes!
That's a KibiByte!
Guys, kilo means 10^3, always! Always!23 -
what i did today:
1. start a computer
2. start a xampp server
3. open text editor
4. open bug list
5. realize that i cant do a single thing.
6. steam game invitation shows up (i think it's ok just one game)
7. realize that i spent 10 fcking game
8. tried to fix the bug
9. i failed
10. i do another game
11. and it's time to go home
12. i feel guilty7 -
My life in a nutshell.
I've been stuck in this timeless loop for 10 years, anyone that relates?
1. Set alarm before going to bed.
2. Alarm rings, I turn it off.
3. Wakes up late.
4. Work from 08 AM to 4 PM.
5. Take the train back home
6. Plan what to do for the rest of the day.
7. Come home, do everything except what was initially planned.
8. Watching time goes by while doing non-productive things.
9. I feel alone, watch porn to fill this void.
10. I get depressed and unhappy afterward
11. Set the alarm for the next day.
12. Repeat.11 -
SSD size 128GB
Windows 10: let's go and use 40 fucking GB for windows.old.
Like WTF, use 1/3 of my ducking storage for "I don't trust updating myself so here's a massive restore point"
Fuck you windows.14 -
Worst disturbance while working?
Putting headphones on for 1 minute. and colleges start waving and asking stuff every 10 minutes.
and when you do not respond, the more waving intensify and whistling and when you take off your headphones..
They ask:
What do you think of the weather today?3 -
"God Mode" in Windows 10:
1. Create a new folder on your desktop. Leave its name to be "New Folder"
2. Open CMD with administrator privileges
3. cd C:\Users\<your username>\Desktop
4. ren "New folder" ".{ED7BA470-8E54-465E-825C-99712043E01C}"
Enjoy direct access to all and every settings. :-)16 -
$ npm audit
> found 19 vulnerabilities (10 low, 5 moderate, 3 high, 1 critical)
$ npm audit fix
> fixed 0 of 19 vulnerabilities in 11987 scanned packages
> (use `npm audit fix --force` to install breaking changes; or do it by hand)
$ npm audit fix --force
> npm WARN using --force I sure hope you know what you are doing.
Me too, buddy. Me too.1 -
Deciphering 10-20 jira tickets that relate to 1 feature which aren't linked in anyway beyond titles spread throughout an epic or 2.
Ah the pain of having to go through 200 tickets to find everything you need for a single feature.7 -
Of all people that apply for a job at our company, 95% can't write a loop that counts from 1 to 10.
And if that's not bad enough: our bosses state "we shouldn't ask such difficult tasks."18 -
0. Problem
1. Thinking of an algo
2. Writing a code
3. Compile
4. Compile Error
5. Fixing bugs
...
6. Finally compiled!!
7. Running a test
8. Run time error
9. Fixing bugs
...
10. Finally I can see the result !!!!
11. Shit!
12. LOGICAL ERROR :/3 -
Getting real fucking sick of shitty websites excessive security measures!
1. Username
2. Password
3. Captcha
4. Mandatory 2FA
We don't recognize your IP, please log into your email, click the link, get redirected and complete steps 1-4 again! Also the site will time out in 10 minutes if you aren't actively using it. Have a nice day!
Go fuck yourself.7 -
Dear windows 10
I won't mind a weekly 30 minutes update but...
My ubuntu connects to wifi in 2 seconds
My lubuntu connects to wifi in 2 seconds
My archlinux connects in 1 second(don't ask why)
My raspbian starts up and connects in 10 seconds
WHY WOULD YOU TAKE MORE THAN A SYSTEMS BOOTING PROCESS TO GET CONNECTED?12 -
How to be a successful developer:
1. Identify a problem that you don't know the answer to.
2. Spend 10 minutes searching Google for a solution, trying various keyword combos.
3. Click the link to the solution in Stackoverflow.
4. Find the solution with the most +1's.
5a. If solution looks good, implement the solution in your code.
5b. If solution is not applicable, return to step 2.
6. Test your implementation.
7a. If the problem is solved, bask in the glory of success and return to step 1.
7b. If the problem is not solved, move your hand vigorously through your hair, pulling out several strands. Exhale loudly. Next return to step 2.4 -
This is kinda funny even if the picture is in Swedish. When Avast requires the computer to restart and you can let Avast to remind you to reboot about 10 mins, 1 hour, 4 hours, 6 hours, tomorrow, next week or the best of all - next century, WOW!!
Maybe something Microsoft should implement in their Windows Update?4 -
1. Put headphones
2. Put videogame OST (Chrono Trigger is the best)
3. Start Atom
4. Sacrifice a male virgin to my Code Muse to replenish her mana stock
5. Jerk off seeing a fat granny midget porn
6. Clorophorm and put my coworker to sleep so he doesn't interrupt me to show the FailArm best fails of 2016
7. Atom is still loading, so I curse all the GitHub fuckers
8. Give up and start my emulator to play Chrono Trigger
9. Receive a pull request and realise I need to work and be a productive member of society
10. Goto 110 -
1:1 ++ to comment ratio and a 1:10 rant / comment ratio.
This wasn't even that intentional, well, of course I ++d 23 rants for it to be a perfect match but almost 100% legit lol4 -
Beware, this is gonna be a long one.
Today, in university, our professor wanted us to do an algorithm where a number was given in input, and we had to see if that number was, as she put it, "triangular".
For example:
3 is triangular because it's 1+2.
6 is triangular because it's 1+2+3.
10 is triangular because it's 1+2+3+4.
And so on.
While she was explaining this, I was programming it on my phone (because I didn't bring a PC there).
In about 10 minutes I completed it.
This student who was beside me, which I didn't know until today (I'm still in my first year here), saw me programming it, and when I finished it, he looked at it and said: "It takes too much time, like this."
So he spent another like 5-10 minutes """fixing""" it, and then showed it to me: "Here, now it's better."
Do you want to know what he did?
The only thing he did was putting a for cycle instead of my while cycle.
And he didn't even do it properly!
He put an else statement inside the brackets of an if, and some variables weren't correct.
You call that making a program more efficient? Deficient is more like it.
Also, like 5-10 minutes after I did it on my phone, on my own, I looked at the prof's desk: a guy (who apparently is "the best") wrote his algorithm on the blackboard, and the whole fucking class applauded.
Later, I saw on our Whatsapp group that someone sent a photo of him writing on the blackboard, with the caption "The student surpasses the teacher." Others agreed.
I replied with: "For the record, I did this algorithm in 10 minutes."
An asshole replied: "You'll never be superior to the master"
Fuck off. -.-"
...I'll show them.22 -
1. Start programming to solve a beautiful problem.
2. Setting up my IDE.
3. Creating nem project.
4. Start coding, but dig into first little problem.
5. After 10 hours give up.4 -
An open letter to those who think lines of code == a decent metric for productivity:
NO!!!
Just because I wrote 10 lines of code all day (yes just 10 very well thought out, many times rewritten) lines doesn't mean my day was unproductive. Quite the opposite, while other devs pad their shit with:
//Adds 1 to I
I++;
Yup. Quality code. LOC doesn't lie.10 -
Manager: How to make successful product?
CEO: Just Add words like Machine learning and Ai
Newbie developers: Takes 10$ udemy course without statistical and probabilistic knowledge, after 1 week believes himself to have "Expertise in ML,AI and DL"
HR: Hires the newbie
*Senior Developer Quits*6 -
*** don't use compiler ***
Question in class today:
int n = 0;
for (int i = 1; i < 10; i++) {
n = n++;
System.out.println(n);
}
what will be printed?50 -
People are so annoying.
It's 12 so finally, happy new year!
I'm trying to spend my new year by reading and there are annoying idiots outside have a country from 10 to 1 until it was 12 am.
Now they have fireworks and are screaming at the top of their lungs with music...
Looks like I won't have a peaceful night.14 -
!rant
I have t shirt which has 1+1=10 written over it. In my family all are from non science background.so they laugh at me whenever i wear that shirt.
Once i got frustrated and yelled " you will never git it".
*,awkward silence*
Wish i had cs related family background -.-5 -
On a scale of 1-10:
If you own the domain "Google.com" for 15 minutes, all of the traffic will go to your server/hoster.
How bad will you be sued by your service provider?8 -
1. get a job interview in google
2. design a kitchen
3. ???????
4. the kitchen is for a giraffe
5.?!?!?!!?
6. new kitchen
7. a baby giraffe
8.??!?!?!??!??!??!??!??!??!??!?!?
9. we will call you
10. __time passes__
11. no call
12.X_X14 -
😐ctrl/cmd + s to sacrifice file.😑
Teacher: always save your file or else data will be lost. ctrl + s
Me: in word
__________
| |
| |
| |
| page 1 |
__________
ctrl + s ( 10 times)💾
Next day I open this file, my data is lost.
I sware to god i hit ctrl + s 10 times.15 -
1. Pre-sales to Client: We can develop 200 APIs with 10 developers in 9 months.
2. Client: Ok! Cool, its a deal.
-- Sprint starts --
3. Actual: We are 6 developers, commited (or sold out) to make 200 APIs in 9 months.
Fucking pre-sales.3 -
So I’m having an argument with my gf.
Is it “Why is 6 afraid of 7?” or “Why is 10 afraid of 7?”
I fucking said that 6 has not seen the action of 7 eating 9. But 10 has, therefore he is scared.
If we were to iterate from 0 to 10, we would see that 6 hasn’t seen shit.
Let’s print out each number if we iterate through and find a consecutive 7, 8 and 9 then print out “Oh shit 7 ate 9.”
0
1
2
3
4
5
6 // Hey honey I don’t see anything here??
7
8
9
Oh shit 7 ate 9
10 // Someone call the fucking police
Thoughts?10 -
1)Get Project/idea
2)Look for the most suitable tech
3)Draw out all the functionality
4)Break into milestones
5)git init
6) git commit
7) Start
8) Test
9) Complete
10) Feel like a King7 -
Anyone else having connection problems after the recent Windows 10 update? We've been slammed at work with them. If you do, here's an easy fix:
0. Go to Command Prompt (Run as Administrator)
1. First command:
netsh int ip reset resetlog.txt
(One of them will probably fail, that's fine.)
2. Second command:
netsh winsock reset
3. Restart the computer.13 -
When defining a range, let's say from 1 to 3, I expect:
[1, 2, 3]
Yet most range functions I come across, e.g. lodash, will do:
_.range(1, 3)
=> [1, 2]
And their definition will say: "Creates an array of numbers ... progressing from start up to, but not including, end."
Yet why the fuck not including end? What don't I understand about the concept of a frigging range that you won't include the end?
The only thing I can come up with that's this is related to the array's-indexes-start with-0-thing and someone did not want to substract `-1` when preparing a for loop over an 10 items array with range(0,10), even though they do not want a range of 0 to 10, they want a range from 0 to 9. (And they should not use a for loop here to begin with but a foreach construct anyway.)
So the length of your array does not match the final index of your array.
Bohhoo.
Yet now we can have ranges with very weird steps, and now you always have to consider your proper maximum, leading to code like:
var start = 10;
var max = 50;
var step = 10;
_.range(start, max + step, step)
=> [10, 20, 30, 40, 50]
and during code review this would scream "bug!" in my face.
And it's not only lodash doing that, but also python and dart.
Except php. Php's range is inclusive. Good job php.4 -
"We expect you to be at your desk from at least 10-5 every day. You may work from home 1 day per month with a few days advance notice."
70 minute commute into SF each way, every day, so I can sit at an uncomfortable desk and not interact with anyone except on hipchat.3 -
If we compare this list with last year’s list, nothing much has changed. The top three worst passwords of last year were ‘123456’, ‘password’, and ‘123456789’. Source : Splashdata
Top 10 worst passwords in 2019 below:
1. 123456
2. 123456789
3. qwerty
4. password
5. 1234567
6. 12345678
7. 12345
8. iloveyou
9. 111111
10. 12312315 -
Things to do in today
1. Go to post office
2. Send post
3. Go to CVS
4. Buy drink
5. Go to movie theater
6. Watch movie
7. Come back
8. Go to phone store
9. Buy something
10. Go to supermarket
11. Buy supplies
12. Go to McDonald's
13. Use coupon valid til today
14. Run back home befor parents come
15. Act normal14 -
Makeshift standing desk to see if the hype is actually worth it or not.
10 minutes in: Not really feeling it. Could be because it's 1:20 and I'm slightly tired, or it could be the fact I'm kinda lazy lol3 -
Wtf? Who parties in the middle of the week?
My Alcoludo game has been installed on 96 devices yesterday, when normally average daily installations are between 1 to 10. Not that I'm complaining 😅7 -
Teaching JavaScript to a master of classical programming (only uses C++, Python, Ruby, etc.). Here are the results:
1. What
2. What the fuck
3. Why
4. Why the fuck
5. Oh shit that's useful
6. Oh shit that's stupid
7. Why would anyone do that
8. Why isn't anyone else doing that
9. This is crazy complex
10. This is stupid easy8 -
I was 3 hours late. They were calling me to check if i was coming but my phone had died. I ended up arriving at 1 pm when i should have been there by 10 am.1
-
A new breach has just been confirmed about 10 minutes ago. CHECK YOUR EMAILS AND PASSWORDS!!!
Details at: https://troyhunt.com/the-773-millio...
CHECK YOUR EMAILS AND PASSWORDS AT haveibeenpwned.com TO CHECK FOR WHETHER YOU WERE COMPROMISED.9 -
how much developers does it take to change a light bulb? 10. 1 to actually change it and 9 to say: "I can write it better in language 'X'..."3
-
Thanks Microsoft, thankyou for not grouping notifications on windows 10 when multiple come through from the same app at the same time...
Opened the mail app after having it disabled for a while and it slowly queued up over 120 notifications that came through one by fucking one...
Why can't you just detect there are tonnes of notifications and just send 1 saying there are notifications... ffs6 -
Time taken to modify the code : 10 minutes
Time taken searching the code to understand where to put the modification : 1/2 day
Viva VB6!2 -
Disable Windows 10 Auto Updates
1. Run gpedit.msc
2. Set "notify for download and notify for install" according to this screenshot http://i.imgur.com/VjpeDHWh.jpg
3. You will still get an annoying popup saying "get updates" but windows will never autoinstall them and autorestart your machine.13 -
09:54 I'll get out of bed soon
09:55 let's round it to 10
10:00 ok let's wait till 0 turns into 1
10:01 hmm that number doesn't look convincing to get out of bed
10:03 ok let's round it at 05 and then get up
10:05 that's not even a good number let's round to 10
10:10 actually i like 30 more this is the last one
10:30 honestly we're halfway there so let's round to 11 and then get out for real this time
10:47 fell asleep
12:18 woke up3 -
Step 1: create genius-level Excel spreadsheet
Step 2: wait 7-10 days
Step 3: realise you're an idiot for not documenting what all your genius code does so it will take just as long to unpick it as to start from scratch
Step 4: complain on devrant even though it's your own fault
:( -
Just wanted to spread awareness about a Windows 10 devRant app called "devRant Unofficial". It's literally a 1:1 clone of the Android and iOS apps.
Maybe the devRant team could contact the dev for come co-operation and get an official app for Windows 10 with little to none effort?
It works on mobile and PC so I can easily use it on my Lumia and Surface. I know most of you guys here use macOS, but for us Windows devs, having an official app would be cool.
I know Valve talked to an unofficial developer of the Steam app for Windows Phone, and gave him approval for removing the "unofficial" tag. I suggest you guys do the same.
Happy 2016's death everyone, and sorry for the long and boring post!13 -
once my professor asked our class, how will we rate ourselves on a scale of 1 to 10 on our knowledge of C language.
When we finally finished giving our answers, he told me that he'll rate himself a miserly 0.0000001, though he had brilliant knowledge of C.
I wanted to know if people here would give themselves similar rating or not?12 -
My dev Golas for 2019:
1. Control the chaos in the startup.
2. Go on trip or trekking
3. Lose at least 10 kg. (currently 83 kg)
4. Start waking up before 9 o clock
5. Help maintain a open-source library.
6. Make a open-source library.2 -
Tl;dr stupid password requirements
Begin quote
Password must not contain any non-alphanumeric characters.
Your Password change was not accepted. Enter your current Password correctly following the rules for New Passwords. Please try again.
Passwords must be between 8 and 12 characters in length and MUST contain each of the following:
At least 1 lower case character (a-z)
At least 1 upper case character (A-Z)
At least 1 numeric digit (0-9)
But, MUST NOT contain:
more than five repeating characters in a row (e.g. 111111356 would not be valid, but 112233445 would be valid)
spaces or other special characters
NOTE: Your new password cannot be the same as any of your 10 previous passwords.
End quote
Are you fucking kidding me? Only (26+26+10)^8 through
(26+26+10)^12 different passwords to go through? It's like the oxygen wasters that built this website give zero fucks about security.
Why? This is the site that manages money and investments. Just allow passwords up to 64 characters, allow any ascii character and just fucking encod the characters to prevent any Injunction.4 -
Time to add a new feature in an Android app:-
Java code with basic layout to implement the feature - 1 hour
Polishing the layout - 30 mins
Time to fucking make the scroll view wrap around the text and not overflow in the dialog so that the buttons below are visible - 6-10 hours!!!12 -
Created a bool and set the value 1 instead of true
Took 10 fucking minutes to realize what I did wrong even with the red underline calling me an idiot6 -
*2 days ago in a meeting*
Boss: "We need you to develop this, this .... *adds 10 tasks in Trello*
*1 day ago. less than 24 hours*
Boss: "So , what's new regarding the tasks?"
ME (angry): "You just gave me all those tasks less than 24 hours ago. What kind of news do you expect?"
*Boss leaving to his desk, laughing from embarrassment.*4 -
"UPDATE table SET field = 1"
Neglected to include "WHERE ClientId = XXX"
1800 users loose access to thier software in the middle of the day
Restored in 10 minutes thanks to disaster recovery policy.3 -
So.... yeah, making a Scratch clone (with more features) is frustrating and super hard.
Major problems include
- Drag&Drop from listbox to usercontrol - stress level : 3/10
- connect blocks when two blocks are close to each other - stress level : 10/10
- generate live code when there was a change in blocks editor - stress level : 9/10
- write a compiler or some interpreter that converts block code to real c# code - stress level : 10/10
- generate output by calling csc.exe - stress level : 1/10
- make code at least readable - stress level : 7/1014 -
Here is what I see in industry right now.
Don't go on math but get the gist.
1. 9 of 10 developers are Web developers
2. 9 in 10 developers want to be data scientist
3. 9 out of above actually give up and start doing Web development
4. 9 in 10 developers think CS education is not necessary.
5. 9 in 10 developers want to work for Google Facebook and Microsoft.
6. 9 in 10 developer don't make it to above companies.
7. 9 in 10 developers think design and test are important but never do it.
8. 9 out of 10 developers don't want to code after 5 years and just want to exit industry to non technical roles.
9. 9 out of 10 developers don't get rants and dev memes posted here.
What's your take on this7 -
Alright lads. Contest time.
How many times have you been asked to
1) Hack someone's Facebook account
2) Fix a laptop or wifi'
My record is like 1018 -
So, here I am at a guided internship programme, hosted by Indian Railways.
They told us to report at the Personnel Office by 10:00 AM. When I reached there, they told us the venue has been changed (to a place 1km away, with no transportation) and the official "forgot" to inform the 500+ candidates.
Yet, we moved to the said Hall, and am waiting for 1 hour (10:59 AM here), watching :
1. The stupid technician trying to align the projector
2. The stupid presenter trying to copy something and failing, as his pen drive gets disconnected halfway the process.
3. The VIPs having snacks and coffee on-stage while we the students wait here looking at those dumb assholes.
How am I supposed to respect them tomorrow at work?12 -
I hate it when people sort numbers in a drop down box like so:
[1, 10, 11, 12...19, 2, 20, 21...29, 3, 30, 31...]
This is just pure infuriating...5 -
I am forced to use IDE and Text Editor against my will.
I hate eclipse, but what to do, Salesforce support that IDE only, although VSCode has one plugin for that, but it's not the best,
Why I hate Eclipse you ask?
1. Null pointers
2. No Emmet
3. No Autcomplete
4. Runs like shit on Windows 10 (See my last rant for windows 10)
5. no pretty print extensions/plugins for isml
For my personal projects I am forced to work on Sublime because again VSCode decided to drop
1. Syntax Highlighting
2. Autocomplete
for PHP
(Fuck you for hating php)11 -
I finally did it ! Bought a 10 Gbits network card.
(You can search prev rants on it. My internet connexion became almost unlimited and I felt that 2300 Mbits were bottlenecked by 2.5 Gbits card).
And yes, I have more speed now !!!!
Do I need it ? Nop.
But as long as my line stays in this "unlimited" mode, I want to use it !
3200 Mbits !!! Ping goes to 2 instead of 1 tho. With "old" 2.5 Gbits card I always had 1.
https://speedtest.net/result/c/...
Edit : Added screenshot for lazy people10 -
On a scale of 1-10, how lazy are you when it comes to prototype code?
Me, well I'm a 'fuck it lets just wildcard anything that is a child of a GLib objects'
Don't be like me kids...
EDIT: Yes i know it should have been an override void4 -
Unreal Engine SDLC:
1. Start Epic
2. Wait
3. Start Unity
4. Wait
5. Open Project
6. Wait
7. Wait more
8. a bit longer...
9. (it usually crashes here, or freezes, in which case go to 1)
10. Game opened, make modifications in C++ codes
11. Wait VS to load
12. Wait VS to parse all the file in solution
13. Make changes
14. Compile
15. Run from Unreal
16. (sometimes, go to 9)
17. Goto 9
18. 9
19. Goto 9
20. Congrats on finishing the game, and losing your patience8 -
I was trying to get into a project dev class in here in uni, and I was already ahead of with my team setting up goals and starting with the project, when suddenly, the system notifies me that I might not get into the class because too many people are in it. I wait anxiously 30 minutes before the deadline to see if I get in.
15 minutes. Nothing
10 minutes. Nothing
1 minute. I am the only person left in the waitlist.
The deadline passes.
1 minute after the deadline passes. Someone drops the course.2 -
Tomorrow’s schedule:
7am-8: Yoga
8:45-10: Retro
10:15-10:45: Team Meeting
11-11:30: Interview
11:30-Noon: New project meeting
Noon-1pm: Foster care meeting with case worker (monthly check-in)
1pm-1:30: Train co-worker on how to restore databases
2pm-3pm : Onboard new DBA
3:15-4:15: Conference with AWS partner
Yup. I think I’ll complete a perfect zero LOC tomorrow. Oh, I’m also on-call.2 -
when code comments be like
# loop over the array
for i in 1...10
# divide by 2
x = i / 2
# return the result
return x4 -
One of the worst support threads I've come across.
http://answers.microsoft.com/en-us/...
Context: Trying to open a transparent image that is mainly black. But not being able to see it due to the default black background.8 -
Today me started to come to college by wakeuping at 10@m to attend DAA class by 1pm a strict warning to all to attend by sharp 1'o clock but at the scene my madam is absent and my effort gone wrong😢😢😢(Computer Science)6
-
!(!StrangeRant)
I want to have a program that makes programs.
----CONSOLE------------------------
$ sudo makep
(makep = make program)
$ makep > destroy the world and make that me and i are the only survivor
$ makep > select language > TrumpLang
$ makep > Please wait...
$ makep > Compiling...
Estimated time to finish: 1 million years later
(i died)
$ makep > .........
$ makep > Building...
Estimated time to finish: 1 million years later
$ makep > .........
(ok, so i wont wait 1 million years here, so lets say 1 million years passed)
$ makep > Running...
Estimated time to finish: 1 million years later
$ makep > .........
(ok, so i wont wait 1 million years here, so lets say 1 million years passed)
$ makep > Destroying...
$ makep > Finished!
$ makep > Press CTRL+F to shut down.
-----------------------------------
Earth stopped.
This computer is the only survivor.
While he was compiling, he got artificial intelligence.
He tried to survive.
Now the story begins.
The life of a computer.
Alone.
In theaters at 2018/04/01.
Buy tickets now!
IMDB / RT rated this movie 10/10
-----------
Footnotes
This movie is containing parental advisory content.
(This is sponsored by the awesome people at Turbo C and IBM)9 -
Ffs😪, Google play rating is worst than the University GPA, you get 10 5 star rating it goes up 0.1 you get 1 start rating it goes down 1.5 😂😂
-
@dfox i have a devRant Idea.
Achievements - Kind of like Xbox achievements etc ...
For example: (Bronze, Silver, Gold, Platinum)
Total Likes: 2k, 5k, 10k, 25k
Likes On a post: 100, 250, 500, 1000
Likes on a comment: 10, 25, 50, 100
Total Rants: 15, 50, 100, 500
Total Comments: 50, 150, 400, 1000
Weekly Rant: Top 10, Top 5, Top 3, Number 1
Monthly Rant (most popular rants that month): Top 10, Top 5, Top 3, Number 14 -
Craft CMS deployment on shared server, PHP5, Apache takes 10 - 30 seconds to load.
Craft CMS deployment on virtual shared server, PHP7, Nginx takes 1 - 2 seconds to load.1 -
I was looking up for a bug in my code that caused a fail in one of the test.
Hours later I found that negative integer division in python is just stupid and -1 / 10 = -1.
The sad part is that -1/10 != -(1/10) contradicting the associative property of multiplication over the real numbers.
FUCK YOU PYTHON.12 -
I love listening to music while coding, mainly metal/rock/classical
Comment with 10 tracks from your playlist .... Here are my 10
0. Disturbed - stricken
1. Tremonti - decay
2. Black label society - bored to tears
3. Ac/dc - back in black
4. Rolling Stones - paint it black
5. Gary Moore- still got the blues
6. Carcass - blind bleeding the blind
7. Alter bridge - metalingus
8. Fear factory - linch pin
9. Pantera - 5 minutes alone8 -
1. Use browser for a few minutes and creating tabs with 'ctrl + t'
2. Switch over to vscode to open a new tab with 'ctrl + t'
3. Random wild search popup thing appears
4. Confused. Searches for keybindings
10 minutes passed till I remembered the keybinding was 'ctrl + n'. Thought my vscode was broken.
Why am I here? How did I got this job?1 -
0. The conference room TV has no sound.
1. I submit ticket to Facilities.
10. Facilities closes ticket saying that's up to Service Desk.
11. I submit ticket to Service Desk
100. Service Desk closes ticket saying that up to Facilities
110. ???
111. Profit2 -
How to LAN -Party:
1: PC is starting normally, resolution fucked up, restart
2: booting for 10 minutes, restart, 2 times
3: repair tools open, 30 minutes system recovery
4: finally PC starts normally, everything works expect the game i want to play-.-1 -
Anybody who is crying for slow machine issue. You can do this think.
1. Replace your HDD with ssd (256gb in 3500 INR)
2. buy DVD shape hdd holder (cost 700 INR)
3. replace DVD with this case
Benefits :
Speed up
No need to worry about data backup
Enjoy
My boot time of window 10
3 mins to 15sec17 -
now that monday is almost over for me, here's a couple of questions:
1) From 0-10, how good was it for you?
2) Had you read it, would you say my post wishing you a passable monday worked?19 -
Don't forget, docker desktop will require paid licenses after 31/1/22
Docker Desktop remains free for small businesses (fewer than 250 employees AND less than $10 million in annual revenue), personal use, education, and non-commercial open source projects.
Just a friendly reminder to fuck docker and migrate to a better solution.25 -
Per company policy, needed to change my password again.
Usually I just increment a counter and reset to 1 after 9 but seems now they keep the last 10 passwords used...
OK, time to add an extra symbol18 -
I was 1 hour into an 8 hour data warehouse build on my VM, when Windows popped up with a dialogue informing me that it would initiate Shut Down in 10 minutes. No button to Cancel or Delay, just “Okay”.
To Microsoft, I offer a hardy Dickensian “GOOD AFTERNOON, SIR!”4 -
Current workload as dev lead:
- 1% actual development
- 2,5% waiting for SaaS to load
- 2,5% cursing company server network connectivity issues
- 5% switching VPNs
- 7,5% pkg management & deploys
- 10% writing JIRA and support tickets
- 12,5% filling in timesheets
- 15% coaching & reviewing a bot coworker
- 19% doing 2FA, refreshing expired passwords
- give up and spend the remaining 25% doing something meaningful8 -
12:55 AM, Subject gets and decides to look at crude oil chart.
1:05 AM, At it.
1:10 AM, Subject decides to check the temperature, using laptop screen in dark.
1:12 AM, Does a wild aerobic move to save flying laptop.
1:13 AM, Finds out that screen is gone.
1:23 AM, Orders new screen.
1:26 AM, Types this rant. -
!Rant
.net 6 + c# 10 is a blast to work with !
I double dare you to create hello world with less lines :) (It's actually 1 line in .net 6)5 -
after staring my stupid code for 10 mins, the facepalm. Better even before this my program went into infinite loop cause i had initialized a counter and if(counter<10) WITHOUT INCREMENTING IT. Its 1 am i should sleep.2
-
Ever seen a computer with a warranty period as long as the whole 30.... days?
Now you can get one! https://store.pine64.org/product/...23 -
Product Managers: I know what users want! They want 10 different things stuffed into 1 piece of software that does nothing well because I don't understand budgets, timelines, or scope.
Everyone else: How about we do 1 thing, and do that well.1 -
bool showUpLateToWork=true;
bool rememberHeadPhones=false;
String DayOfWeek=Tuesday;
int hoursSpentOnPhoneLastNight=
int productivity = 100 - hoursSpentOnPhoneLastNight;
if(showUpLateToWork)
missStandup();
}
if(rememberHeadPhones)
Productivity +=10
Else
Productivity -=50;
While (hourOfDay(now()) <17)
{
drinkMntDew();
discussDataQualityIssuesWithBusiness();
lookThroughTonsOfPoorlyWrittenCodeForDefectThatBusinessWantsFixedYeasterday();
dieOnTheInside();
curseProjectTeamForPassingCrapCodeToMaintainaceTeam();
cry();
curseComputerApplicationsForNotResponding();
visitBathroomWhileLurkingDevrant();
}
goHome();
while (!asleep && hourOfDay(now()) > 17)
{
playWithPuppy();
qualityTimeWithMyWife();
pkayLeagueOfLegends();
netflixAndChill('litterally');
for (int i =1; i <=5; i++)
showLoveUsingLoveLanguage(i);
try
{
makeBaby();
} catch
{
learnPatience();
}
cuddle();
if(!wifeAwake)
checkDevrant()
}1 -
mfw
> 1 year into project in React.js with a 10+ members in team
> PM panics over last Apache statement
> PM: "fuck, rewrite it in Angular 4 : /"1 -
Found a dumb mistake I made in a query in my project.
Reduced page load from 10 sec to < 1 sec with an hour's restructuring.
Had just assumed it was slow because of my super cheap Azure DB subscription... 🙄 -
This always gets me:
Developers complaining that their 4 year old / cheap ass computer is slow.
Get. A. New. One.
It's not that hard.
Here, let me do one for you:
https://computeruniverse.net/en/...
I just went to a site that delivers across Europe, and selected a cheap laptop with a decent CPU and SSD. Short on RAM, sure, and without a Windows License. But you can buy RAM for an additional 50$, and that brings you to a total of 550€, delivery included. And it will WORK. And it will be fast.
It's too expensive?
No, not exactly. Wherever you are in the world, if you can code decently, good enough to have the right to complain about development tools, you are eligible to at least 10$ per hour income as a freelancer across the globe. I've had such opportunities offered to me by many organizations, especially non-profit ones that need cheap employees. I actually was offered more but let's stick to 10$ per hour.
So that's 1600$ per month. Enough to buy 3 such laptops. Oh, taxes, I forgot. So you get 2 laptops. Wait! You need food and everything else. Well if you're in a country where that offer actually makes sense, then it's likely that you can live off of 400$ per month quite well. Maybe 800$ if you need to pay rent.
So that's roughly 1 month of work for a laptop that will make you not waste time on waiting for stuff.
Sweet! 1 Month! What does it get me?
Well assuming that you have no laptop, it gets you A JOB that pays you 1600$ per month.
But if you DO have a laptop, you can sell it for cheap, and benefit from the following:
1. Boot-up time from 30-60 seconds to 10 seconds.
2. Installing software - from 1 minute to 10 seconds.
3. Opening a browser - from 10 seconds to 1 second.
4. Opening an advanced text editor (Atom, VS.Code) - from 10 seconds to 1 second.
5. Searching for a file on your entire hard drive - from 1 hour to 2 minutes.
....
You get the point. Waiting is reduced by several times.
So how much do you really wait when coding?
Well are you compiling? Are you opening a new project and the IDE needs to re-index the files? Are you opening programs like a terminal emulator, browser and such? Are you using virtual machines for dev environments?
Well all of these processes become several times faster. Depending on how often you do it, you'll be saving yourself from 1 hour per day to upto 4 hours per day (my case, where a HDD would be just out of the question).
How much is that time worth? At least 10$ per day. If you're working for 20 days per month, 240 days per year, that's a total of 2400$. And for the life time of that crappy laptop of 2 years, that's 4800$ saved. And that's with hugely conservative numbers. Nobody pays 10$ per hour any more, except if you've just started in the industry. I know because I've been there.
Please, for all that's sacred to you, justify right here, right now, HOW THE FUCK can you not afford to get that 8GB of RAM, that cheap ass SSD for 100$, or even a brand new laptop (hey! it's even portable and has FHD graphics on it!) for 550$.
That's why every time I hear someone who is a professional developer complain that they don't have money for a decent machine, I have to ask: why the fuck are you wasting yours and everyone else's time?!10 -
Time spent on devrant:
50% trolling
25% challenging people's worldview aka trolling
15% making witty remarks, and more trolling
10% looking through my notifications to see wtf @Wisecrack said
<1% posting "quality" content14 -
// Posting this as a standalone rant because I've written the best piece of code ever.
// Inspired by https://devrant.com/rants/1493042/... , here's one way to get to number 50. Written in C# (no, not Do diesis).
int x = 1;
int y = x + 1;
int z = y + 1;
int a = z + 1;
int b = a + 1;
int c = b + 1;
int d = c + 1;
int e = d + 1;
int f = e + 1;
int g = f + 1;
int h = g + 1;
int i = h + 1;
int j = i + 1;
int k = j + 1;
int l = k + 1;
int m = l + 1;
int n = m + 1;
int o = n + 1;
int p = o + 1;
int q = p + 1;
int r = q + 1;
int s = r + 1;
int t = s + 1;
int u = t + 1;
int v = u + 1;
int w = v * 2 * -1; // -50
w = w + (w * -1 / 2); // -25
w = w * -1 * 2; // 50
int addition = x+y+z+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v;
addition = addition * 2;
if (addition == w)
{
int result = addition + w - addition;
Console.Writeline(result * 1 / 1 + 1 - 1);
}
else
{
char[] error = new char[22];
error[0] = 'O';
error[1] = 'h';
error[2] = ' ';
error[3] = 's';
error[4] = 'h';
error[5] = 'i';
error[6] = 't';
error[7] = ' ';
error[8] = 'u';
error[9] = ' ';
error[10] = 'f';
error[11] = 'u';
error[12] = 'c';
error[13] = 'k';
error[14] = 'e';
error[15] = 'd';
error[16] = ' ';
error[17] = 'u';
error[18] = 'p';
error[19] = ' ';
error[20] = 'm';
error[21] = '8';
string error2 = "";
for (int error3 = 0; error3 < error.Length; error3++;)
{
error2 += error[error3];
}
Console.Writeline(error2);
}5 -
Updating Oxygen OS....
1. WARNING: You will lose root.... OK
2. Fastboot TWRP
3, Install TWRP
4. Flash Magisk
5. Restart
6. Reinstall xposed from Magisk Installer
7. Restart
10. Re-enable Gravitybox in xposed
11. Restart
All done... did i do something wrong?7 -
When you manage a large project and 1 of the devs helping you is bitching about 10 mins daily status meeting "in other places it's not like that " ... Who the fuck cares , this is how I want it to be so unless you are going to do 50%of the work like I will then come to the meetings and stop bitching , it's just 10 mins dammit7
-
Somehow they felt like the first day of a month isn't always n°1 (and last day might be smaller than 10)8
-
When we subtract some number m from another number n, we are essentially creating a relationship between n and m such that whatever the difference is, can be treated as a 'local identity' (relative value of '1') for n, and the base then becomes '(base n/(n-m))%1' (the floating point component).
for example, take any number, say 512
697/(697-512)
3.7675675675675677
here, 697 is a partial multiple of our new value of '1' whose actual value is the difference (697-512) 185 in base 10. proper multiples on this example number line, based on natural numbers, would be
185*1,
185*2
185*3, etc
The translation factor between these number lines becomes
0.7675675675675677
multiplying any base 10 number by this, puts it on the 1:185 integer line.
Once on a number line other than 1:10, you must multiply by the multiplicative identity of the new number line (185 in the case of 1:185), to get integers on the 1:10 integer line back out.
185*0.7675675675675677 for example gives us
185*0.7675675675675677
142.000000000000
This value, pulled from our example, would be 'zero' on the line.
185 becomes the 'multiplicative' identity of the 1:185 line. And 142 becomes the additive identity.
Incidentally the proof of this is trivial to see just by example. if 185 is the multiplicative identity of 697-512, and and 142 is the additive identity of number line 1:185
then any number '1', or k=some integer, (185*(k+0.7675675675675677))%185
should equal 142.
because on the 1:10 number line, any number n%1 == 0
We can start to think of the difference of any two integers n, as the multiplicative identity of a new number line, and the floating point component of quotient of any number n to the difference of any number n-m, as the additive identity.
let n =697
let m = 185
n-m == '1' (for the 1:185 line)
(n-m) * ((n/(n-m))%1) == '0'
As we can see just like on the integer number line, n%1 == 0
or in the case of 1:185, it equals 142, our additive identity.
And now, the purpose of this long convoluted post: all so I could bait people into reading a rant on division by zero.30 -
from 1-10 how bad is it if i publish an app to play store knowing it has bugs and is not very optimized but everything works fine?17
-
Typical Git work flow on a feature branch:
Commit#1 : The silly feature itself that took 10 minutes to code
Commit#2 : Added unsaved files
Commit#3 : Fix unit tests
Commit#4 : Fix
Commit#5 : Fix
Commit#6 : Fix
Commit#7 : Various Fix
Commit#8 : Added unsaved files
Commit#9 : Merge
Commit#10 : Fixed unit tests
Commit#11 : Code Review tasks
Commit#12 : Revert- Code Review tasks
Commit#13: Refactor part 1
Commit#14: Refactor part 2
Commit#15: Deleted unit tests
Commit#16: Added checking for null
Commit#17: Completely different feature's bugfix
Commit#18: Code review spacing corrections
*Approved*
Trying to merge, then merge conflicts.....2 -
Digital minds, ranked:
1. Skynet
2. GLADOS
3. HAL-9000
4. The OS from movie “Her”
5. GPT-4
6. GPT-3
7. Clippy from MS Word 2003
8. Half-Life 1 cockroach ai
9. a brain-dead Markov chain
10. human ai from cyberpunk 2077 beta
11. virtual therapist from Emacs
12. GPT-4o6 -
Guyz let hack this
Here is the tea
A house wife forgot her bank 'ATM PIN' which is a four digit number, but luckily she remembered some hints on how to recall this 'PIN'
Here are some of the clues
(1) The 1st digit is half of the 2nd
(2) The sum of the 2nd and 3rd is 10
(3) The 4th is equal to the 2nd plus 1
(4) The sum of all the digits is 23
What is the ATM PIN ?3 -
What is it with this bullshit culture about installing something syncs it with all machines
First chrome/chromium, You can't install a plugin or extension on 1 machine unless you're logged out. what is this bullshit
Next windows 10, I fucking installed a Japanese language pack on 1 machine, by the end of the day all my fucking machines and even my windows tablet got it installed and applied in a fucking bugged way that made it that my UI is English and my fucking metro apps are Japanese.
This is starting to get annoying as fuck5 -
We take over development of a live customer facing system and PM agrees date for our first code deployment with client CIO
Me: The dev and staging environments don't have any test data currently as the old agency screwed it up
PM: Well you better load some
Me: There isn't any... It'll take 10 days to copy prod db due to hosting provider SLAs, leaving 1 week for SIT, UAT and performance testing (assuming they don't screw up)
PM: Well the date is set, 1 week will be enough for testing2 -
My day today:
- tell everyone to fuck off and are idiots politely from 10 to 4
- tell them if they won’t fuck off now I will start looking for a job - 1 hour
- listening them apologizing me - 1 hour
- code and solve problems - 1 hour
Mondays
Hopefully I start working on Tuesday.5 -
How to respond to the "How do you rank yourself in technology X on a scale from 1 - 10"?
What is 10? Why are recruiters and interviewers asking such questions?7 -
I have a gaming laptop with a 125gb ssd and 1 TB secondary drive. Ssd has just 20 GB free.
I wanna dual boot windows 10 and arch. Most of the secondary drive is full of steam games. Win 10 for gaming and arch is for projects.
What's a good way to partition the drives for arch? I can't guess how much space either will need in the future. And what do I do with the other drive?7 -
I'm thankful I have 2 ISPs in my area so I can at least threaten to switch although one only offers 1/10 the speed of the other.3
-
"1. Good design is innovative
2. Good design makes a product useful
3. Good design is aesthetic
4. Good design makes a product understandable
5. Good design is unobtrusive
6. Good design is honest
7. Good design is long-lasting
8. Good design is thorough, down to the last detail
9. Good design is environmentally friendly
10. Good design is as little design as possible" - Dieter Rams -
T(x, y)=x*(1+y/100)+√-1
x = hours estimated from Boss. if the boss
y = sum of the features with the following weight:
Multiplatform = 10
Web = 5
social * = 100
blockchain = 100
HTML-email = 10
Every other bullshit bingo term = 20
everything else = 1
Terms that appear multiple times count multiple times.
If the boss didnt give his estimate triple the feature-value and use 100 as x-value3 -
The ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code
- Robert C. Martin3 -
How angry are you in a scale from 1 to 10 when you want copy something from gnome-terminal and you forget to press shift (only CTRL+C) -> ^C and you have to repeat ?3
-
Any code should be simple and easy to read / understand.
I just reworked an old stored SQL proc.
Went from 102 lines to ... 10.
More I code, more I realize that maintainability, readability, comments and unit tests are more important than actual code. (And performances ofc. But if 1 line code does it in 1 second and 500 lines code in 0.2 seconds, I’ll take one line solution every time)5 -
customer claims they do scrum but they have quarterly planning events (2 full days) where we need to estimate and plan everything for the next 3 months.
Manager: "last quarter I calculated your velicoty so now you get 4 story points per sprint per developer"
Team: "But you started us off at just 5 per sprint that's too small"
Manager: "Ok but if you only did 4 why do you now want 20"
Team: "Because it's arbitrary and we say we want to"
Manager: "1 story point is 1 day"
Team: "story points aren't time"
Manager: "4 story points is 1 sprint"
Team: "but a sprint is 10 days"
Manager: "the junior dev can do 4 story points per sprint and the senior dev can do 4 story points per sprint"
Team: ...8 -
I've been at work for nearly 4 hours and have gotten barely 1 hour of work done due to my amazingly slow computer. Currently I'm waiting for visual studio to start responding. It'll respond in about 10-15 min... Takes 40 min to boot up my PC and launch my VS solutions.13
-
* break it into elementary steps, small enough to fit into your "estimation time unit", e.g. days or hours.
* estimate those steps for "developing at a leisurely pace" if nothing goes wrong.
* think about "what could go wrong" (list everything!) and adjust values accordingly.
* adjust total amount with experience values, like:
* times 1.2 for every manager
* times 1 to 4 based on which legacy projects i have to touch
and finally:
* multiply with `1+log(t/u,2)`, with `u` being the amount of useful data in the requirement description and `t` being the total amount of data in the requirement description
* sample: with our current "favourite" customer, about 90% of all tickets is garbage, so t/u = 100/10 = 10 => log(10,2) = 3.3 => multiply everything with 4.34 -
1. I have Animal Crossing
2. My internet can drop to 0.8Mbps
3. I have Animal Crossing
4. My internet can drop out 10 times a day
5. I have animal crossing
6. My office pc is my gaming rig
7. I have... I think you get the gist1 -
Hi,
every day I turn my laptop at work, I have to run like more than 10 programs in order to start working.
I have a question, anyone know how if there is a way make custom set of programs to run by just a click, this is really being annoying14 -
Who of you needs some non-disturbing background music while coding?
echo "g(i,x,t,o){return((3&x&(i*((3&i>>16?\"BY}6YB6%\":\"Qj}6jQ6%\")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}"|gcc -xc -&&./a.out|aplay
A while ago I found this in a Youtube-Video from computerphile.
I always listen to it or some variations if I need to stay focused.
Works for me.2 -
Hey devRanters, how do you charge your phone?
1) Let ist almost drop to about 1-5%, and then let it charge fully up over night, and keep it plugged in till morning.
2) Just let it drop about 10-20% and charge it immediately up, and unplug it, when it reaches full charge15 -
· 10 sales on Play Store
· 1 star review because "good app, but doesn't have that particular function"
· 0 sales on Play Store4 -
Thank God, most of my clients don't understand multithreading.
Just denied a feature
Reason
1 independent task - 6sec
10 independent tasks - 1min1 -
My Top 10 most useless keys (#1 is worst):
1. Stop (the media key).
2. Pause/Break. (I understand this has historical usage, but I personaly have never used it.)
3. Page Up
4. Page Down
5. Scroll Lock
6. All those little shortcut keys along the top (above the F-keys) which open things like IE, My Documents, email etc.
7. All the modifier combinations of back tick (it in itself is useful, but WTF is a split pipe supposed to mean!? Or a ¬ !?)
8. Right Windows key.
9. Insert. Again, it has historical significance, but it's completely useless! Especially when you press it by accident.
10. The Menu key which opens the context menu.
I know some people will probably say 'the [blah] key saved my life once...', but I just rebind these keys with AHK. (http://autohotkey.com)7 -
Wow! New devRant IOS upgrade released today has some really cool new features! They must have a team of 10 coders or 1 @dfox and 1 @trogus. Great work guys!
-
To Mac fan boys... Suck it. In the time I've had 1 BSOD on Windows 10 I've had 7 kernel panic on Mac is x at work. And the MBP is newer.6
-
If someone asked me how much I can tolerate meetings from 1 to 10, I would ask why negative numbers are not allowed... I hate them that much, mostly meetings are planned as single person(which is generally organizer) needs to talk everyone in the room but the rest needs the meeting only in percentages like %10 to %20. I am attending to a meeting that includes info about other projects and their calendar because organizer leads both projects...4
-
Day 1/2 using windows phone.
Wish me luck my fellow debs, while my nexus 6P gets the camera glass replaced I'm stuck using windows 10 phone, this will be an interesting 2 days!13 -
Probably pure coincidence but if you look at the deconstruction of the dedekinds like so:
>>> decon(6)
offset: 1, exp: [[Decimal('2'), Decimal('1')], [Decimal('3'), Decimal('1')]]
>>> decon(20)
offset: 2, exp: [[Decimal('2'), Decimal('2')], [Decimal('5'), Decimal('1')]]
offset: 1, exp: []
>>> decon(168)
offset: 3, exp: [[Decimal('2'), Decimal('2')], [Decimal('5'), Decimal('2')]]
offset: 2, exp: [[Decimal('2'), Decimal('2')], [Decimal('3'), Decimal('1')], [Decimal('5'), Decimal('1')]]
offset: 1, exp: [[Decimal('2'), Decimal('3')]]
>>> decon(7581)
offset: 4, exp: [[Decimal('2'), Decimal('3')], [Decimal('5'), Decimal('3')], [Decimal('7'), Decimal('1')]]
offset: 3, exp: [[Decimal('2'), Decimal('2')], [Decimal('5'), Decimal('3')]]
offset: 2, exp: [[Decimal('2'), Decimal('4')], [Decimal('5'), Decimal('1')]]
offset: 1, exp: []
>>> decon(7828354)
offset: 7, exp: [[Decimal('2'), Decimal('6')], [Decimal('5'), Decimal('6')], [Decimal('7'), Decimal('1')]]
offset: 6, exp: [[Decimal('2'), Decimal('8')], [Decimal('5'), Decimal('5')]]
offset: 5, exp: [[Decimal('2'), Decimal('5')], [Decimal('5'), Decimal('4')]]
offset: 4, exp: [[Decimal('2'), Decimal('6')], [Decimal('5'), Decimal('3')]]
offset: 3, exp: [[Decimal('2'), Decimal('2')], [Decimal('3'), Decimal('1')], [Decimal('5'), Decimal('2')]]
offset: 2, exp: [[Decimal('2'), Decimal('1')], [Decimal('5'), Decimal('2')]]
offset: 1, exp: [[Decimal('2'), Decimal('2')]]
>>> decon(d('2414682040998'))
offset: 13, exp: [[Decimal('2'), Decimal('13')], [Decimal('5'), Decimal('12')]]
offset: 12, exp: [[Decimal('2'), Decimal('13')], [Decimal('5'), Decimal('11')]]
offset: 11, exp: [[Decimal('2'), Decimal('10')], [Decimal('5'), Decimal('10')]]
offset: 10, exp: [[Decimal('2'), Decimal('11')], [Decimal('5'), Decimal('9')]]
offset: 9, exp: [[Decimal('2'), Decimal('9')], [Decimal('3'), Decimal('1')], [Decimal('5'), Decimal('8')]]
offset: 8, exp: [[Decimal('2'), Decimal('10')], [Decimal('5'), Decimal('7')]]
offset: 7, exp: [[Decimal('2'), Decimal('7')], [Decimal('5'), Decimal('6')]]
offset: 6, exp: []
offset: 5, exp: [[Decimal('2'), Decimal('6')], [Decimal('5'), Decimal('4')]]
offset: 4, exp: []
offset: 3, exp: [[Decimal('2'), Decimal('2')], [Decimal('3'), Decimal('2')], [Decimal('5'), Decimal('2')]]
offset: 2, exp: [[Decimal('2'), Decimal('1')], [Decimal('3'), Decimal('2')], [Decimal('5'), Decimal('1')]]
offset: 1, exp: [[Decimal('2'), Decimal('3')]]
the powers in the 2's column go:
1, 2, 2, 2, 3, 3, 2, 4, 6
which are predicted by:
https://oeis.org/search/...
Again, probably only a coincidence, but kinda beautiful.2 -
feature request / rant: there sbkukd be no posting new rants unless you have a minimum amount of +1. Maybe it's 10, or 25. but I've noticed the vast majority of people posting repeated memes, gifs, and overall irrelevant stuff are people with 0-5 +1. they should be required to post comments and be around for a bit to understand what devrant is before clogging up the feed.8
-
There are 10 types of people that understand binary - those that do and then those that have varying levels of misunderstanding on a scale of 1 - 9.1
-
What to choose for first job?
1. Small company "10-15 people" working with CRM systems C# Full stack.
2. Big company "1000+ people" working with java backend.
Same pay and language doesn't really matter right now. What's best for the future?16 -
I do not understand how event loop of node is faster than per request new php fpm process or similar.
Imagine you have 10 users surfing your website. In PHP there will be 10 process working on each request.
Where as in NodeJS there is only 1 process taking each request one by one.
Now for the I/O part, it is going to take same time on completion. By the time the IO is completed and the control is back to NodeJs, It will eventually take the same time (the actual response delivered).
Am I missing something here ?4 -
** happens all the time in medical research **
Clinician : So here's the data, can you make something beautiful out of it so we can publish?
Statistician : Sure, let me take a look. So here you coded 1 for "dead" and 0 for "alive". What's the 10 for?
Clinician : Oh, didn't notice. Dunno.
Statistician : So they're missing values. No problem, just wanted to know.
Clinician : What? No way, let's consider them as 1
Statistician : "Let's consider"? And publish in influent reviews with fake data?
Clinician : Yup1 -
1. Closed a solution.
2. Opened same solution, other branch.
3. "Get Latest" on the whole solution.
4. Build solution => Build errors (probably because some project needed be built before another).
5. Right-clicked a project => Build.
6. Nothing happened and VS2017 became completely unresponsive. Has been like that for like 10+ minutes now.
Nice? Nej, bajs.3 -
Need to use new module or pattern:
1. Read the online documentation
2. Have no fu*kin clue what I just read
3. Try for 2 hours and fail.
4. Go home and sleep
5. Wake up at 3am from a fever dream with the solution to the problem
6. Go to work and implement it in 10 min
I guess I learn when I sleep -
!rant, but maybe useful tip for someone:
if you like listening to something while falling asleep, but dislike the idea of your pc being needlessly on through the whole night:
1. cmd
2. shutdown -t 3600 -s
(replace the number with seconds (up to 10 years =D) you want the computer to shut down after)7 -
Anyone else watching the HD remaster of Star Trek: TNG on Netflix and thinking, "that Holodeck should have had some unit tests!"
Also: what's with the passwords being short spoken phrases that can be recorded and played back? Have they not heard of 2FA in Starfleet?
1/10 totally unwatchable (just kidding, I'm loving it)3 -
Some compilers give an error message on forgotten type casting. From that it shows good typing style casting. So you also avoid clerical errors that can lead to the program crash in the worst case. With some types it is also necessary to perform type casting comma on others Types, however, do this automatically for the compiler.
In short:Type casting is used to prevent mistakes.
An example of such an error would be:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int * ptr = malloc (10*sizeof (int))+1;
free(ptr-1);
return 0;
}
By default, one tries to access the second element of the requested memory. However, this is not possible, since pointer calculation (+,-) does not work for a void pointer.
The improved example would be:
int * ptr = ((int *) malloc (10*sizeof (int)))+1;
Here, typecasting is done beforehand and this turns the void pointer into its int pointer and pointer calculation can be applied. Note: If instead of error "no output" is displayed on the sololearn C compiler try another compiler.1 -
Hate it when recruiters send a template asking about how skillful are you in <insert language here> on a scale of 1-10.
A recruiter sends me a questionnaire, which had almost 10-12 questions. I spent almost 30-40mins, explaining in detail about my past experiences and answering all of them. The next day I got a reject without even a phone call. :/
Why do recruiters even do this without even as much as giving a call to a candidate, and assessing them with a test?5 -
Why does every Monitor with a high resolution have such a wide format, like 16:9 or worse? As a developer i need more vertical than horizontal space. 9:16 is ok for coding but too small for anything else. I want a Monitor which is 2:3, 3:4 (rotated 3:2 or 4:3) or 1:1 and has at least 1920x2560. The better the resolution the more lines can i see at once. I can't make the text smaller than 10 pixel per line.
Do you guys have the same problem?12 -
1) git init
2) organize the structure of the project and check what features you need
3) google the name of the features and search a module that solves it
4) follow the module's tutorial step by step
5) compile the code
6) notice it doesn't work
7) StackOverflow, github, Quora, emails with insults to developers, parcel posts with bombs, try suicide
8) ascertain you could have spent all that time in funnier or more productive tasks
9) right click on project -> delete
10) forget the previous experience
11) goto 1 -
Some time I just love comments that are brain twisters.
```
( [ helpers.must_not(helpers.prefix("response", "10")) ] if _type=="detractors" else [] ) )
# Above line prevents the condition 10 is 1 but 1 is not 10 making 10 is 10 and 1 is 1 and 1 is not 10
```1 -
"Bug: IE 10/11 open silverlight when trying to view a MS Office PowerPoint link online"
"Bug: IE doesnt play this 1 video"
The problem is IE right? Not the website or the links? Am I crazy? -
I use PhpStorm. I often open files by their name (ctrl+shift+n). I have a 2 monitor setup at work. On 1 I have chrome open, the other PhpStorm. I end up opening incognito mode on chrome about 10 times a day.3
-
Me at 9:00 AM: wide awake 🔥
Me at 10:00 AM: after spending 1 hour on trying to find out why storage space is low on some of our production servers: ready to fall asleep any second 😴 -
How do you deal with stressful situation as a developer
1. Biting your fingers
2. Pulling your hair
3. Grinding your teeth
4. Scratching your body
5. Eating
6. Not eating
7. Play games
8. Sleep
9. W.W.W
10. Sexual pleasure20 -
Lambda style Linq statements should be no longer then 1 line in C#
Current task debug 10 line Linq statement. Fml -
Saturday 9:30am
Interview: #1
Company: A
Salary: they have no idea how much is a devops engineer paid, but they're looking for a devops engineer asap
Monday 9:30am
Interview: #1
Company: B
Salary: up to $50/hour for devops position
Tuesday 10:00am
Interview: #487 (final one with clients now)
Company: C
Salary: $6.25/hour for backend java + devops position3 -
Lets reinstall my Linux. Step 1 reformat from Windows 10 in your dule boot system and delete Linux partion. Step 2 boot up in bios.... The first time you do this, is the last time you do this.... I hate grub rescue.1
-
A big hurdle I'm fighting for last 1 year, is to convince a bunch of people having 10+ years of experience not to make production released of the same codebase from multiple branches.
-
Which one is IPv6 loop-back address ?
A. ::01
B. 127.0.0.1
C. ::1
D. ::10
E. I put a loop-back on your loop-back
F. None of the above16 -
What's a fun habit you do as a developer?
When I'm introduced to a new codebase I like to string search curse words and slurs. Bonus points when I get more than 10 hits or at least 1 slur.3 -
½ Rant, !dev;
HECK i missed the exact moment it happened >.<
but THANK YOU so much for (1 << 10) ++'s!
like who cares celebrating 1000 :P
Thank you guys <3
Shoutouts to @jiffier for being the 1024'th ++er6 -
If these are true:
1) 42 is the answer to life, the universe, and everything.
2) You are supposed to be a 10x employee.
Lets put them together:
10 x 42 = ?9 -
OFFER!!!
3 hours of lifetime for only 1 failed exam!!!
Special: If you buy two you actually can experience your bought lifetime for more than 10 minutes in sequence!!!
OFFER END!!! -
Developer: “Fix this”
Developer: “You should test your code”
Developer: “You should rigorously test your code before pushing it to qa”
Intern: “it was working on my local machine ( shared my screen and showed him)”
Developer: “Do you test your code before deploying to qa?”
I’m fucking frustrated working 8-10 hours a day and listening to this condescending shit after making one mistake.
Now I’ve asked other developers and they think I was rude so tomorrow I have a 1:1 with my manager .
I’m just counting my days now.8 -
Whoops, my head will be squashed tomorrow. Asked to put monitoring in other week by boss, sysadmin been complaining about high CPU, apparently 10 requests (different domains) to the one VM on our servers every 10 seconds is killing it. However this server is being used for MySQL and serving web requests by Apache and PHP. Then also running a few jobs like consuming queues etc.
Wtf do I do? Every time I tell him about more resources (we have decent 2 rack servers just running 20 vms and only 1 VM is for web sites) he says software should be made to work with what we have.1 -
Imagine an entire operating system dedicated to running a web browser and only 1 web browser 10 years ago it would have been thought of as insanity2
-
We had a dispute @ work yesterday on this topic :
aproach 1 :
$res = getSomeData( [ 'filter_1' => 'str_1', 'filter_2' => 'str_2', ... 'limit' => 10 );
with
function getSomeData( $data )
{
...
}
VS
aproach 2 :
$res = getSomeData( 'str_1', 'str_2', ... 10 );
with
function getSomeData( $filter_1 = '', $filter_2 = 'default_str', ... $limit = 20 )
{
...
}
I had used 1-st b/c IMHO it's more dynamic and easy to maintain and call ( especially when there are many params, most of which not used on each call )
and my colleague didn't liked it w/h his main arguments that one can not easily see the needed params and no default vals for them ( the latest could be easily corrected in the function body ). I'm curious to read your opinions, arguments & contra arguments for each aproach12 -
So i rant too
I was workink with 50y+ guy who think he knows programming
Its 1/5 rant about him
So he told he share his data through csv ( comma saparated values) but his own implementation
So he shared data in his own csv separated with sharps
I told to him about standardas. His reply was: he know lol
Its my share 1/ 10 wait for it the last will kill3 -
Feature request:
OP gets ++s for different stages of comment amount.
E.g.:
5 comments = 1++
10 comments = 2++
20 comments = 4++
40 comments = 8++
...
;)15 -
I'm doing freelancing.
One client hires me for 30 hours/week.
And I'm are getting work irregular.
Like
1 week is full of 30 hour
1 week just 10 hours.
1 week 20 hour.
What should I do?
I try to get other project but most of are For a full time.
One Client hires me but at that time the previous client gave me a full 30 hour's work so the new client could not get enough time and gave me low ratings because of time wasting.
I'm afraid that can happen again.3 -
Started downloading Sierra this morning at 10am: "3 hours 15 minutes"
12pm: "2 hours 40 minutes"
2pm: "2 hours 10 minutes"
3pm (now): "1 hour 52 minutes"
It's just been sitting there, next to the router, charging. Hope I'll get to play with it before going to bed...1 -
As i was shitting on toilet I realized something very important. This could be THE answer.
The question: what is the formula for achieving success? I realized this must be THE ultimate answer:
Money + connections + luck >= success
Why?
MONEY:
You must have money to make more money.
CONNECTIONS:
Some average joe can tell his friend Cockty to phone call his friend Dickson who's a good friend with Cumston to message his millionaire friend Asslicker who is gonna help the average joe succeed.
LUCK:
No matter what you do or how hard you work, how many achievements you have or degrees, you can spend 10 million dollars on a project -- and still fail because you're not lucky.
Let's calculate this probability:
have = 1
missing = -1
money = 0
connections = 0
luck = 0
success = 1
money + connections + luck >= success
Case 1 (have everything):
have + have + have >= success
1 + 1 + 1 >= 1
3 >= 1 ✅
Case 2 (no money):
missing + have + have >= success
-1 + 1 + 1 >= 1
1 >= 1 ✅
Case 3 (no connections):
have + missing + have >= success
1 - 1 + 1 >= 1
1 >= 1 ✅
Case 4 (no luck):
have + have + missing >= success
1 + 1 - 1 >= 1
1 >= 1 ✅
Case 5 (no money, no connections):
missing + missing + have >= success
-1 - 1 + 1 >= 1
-1 >= 1 ❌
Case 6 (no money, no luck):
missing + have + missing >= success
-1 + 1 - 1 >= 1
-1 >= 1 ❌
Case 7 (no connections, no luck):
have + missing + missing >= success
1 - 1 - 1 >= 1
-1 >= 1 ❌
Case 8 (no money, no connections, no luck):
missing + missing + missing >= success
-1 - 1 - 1 >= 1
-3 >= 1 ❌
We have: 4 possible outcomes that we want, k=4
Out of total: 8 possible combinations, n=8
Probability of achieving success using this formula is: P(A) = k/n = 4/8= 0.5 * 100% = 50% chance of being successful in this shit life
This is correct in theory. HOWEVER:
Case 1: someone having
- a lot of money
- a lot of connections
- a lot of luck
In practicality is damn near IMPOSSIBLE
Maybe 1 in 100 million people are born like this. That's 100,000,000 people / 8,000,000,000 people = 0.0125 * 100% = 1.25% of people are this blessed and gifted in life. This might be even less so we can ignore this probability as a possible outcome and average it out to realistic average joe daily life.
Therefore giving us a total of 7 combinations, 3 possibilities to succeed in this shit life
So: k/n = 3/7 = 0.4285 * 100% = 42.85% chance to be successful in this shit life
Mathematically proven how life is pure trash
Funny enough we can round it to 42%. And 42 is the answer to life, universe and everything in existence4 -
Doing some group assignments for uni
Repo 1, 60, 7, 2 commits
Repo 2, 200, 12, 1 commits
Repo 3, 55, 10 commits
You can guess which stats are mine.......
And then on the reports I have to do all the work cause I wrote all the FUCKING code ... FUCK8 -
So, are there any way to solve automatic mysql shutting down in XAMPP. OS-Win 10
To solve this I need to do run innodb_force_recovery = 1 command evry time after restarting OS. -
Any heuristics on using new JS/CSS features?
I thought of waiting 2 years, but I just saw an article that recommended waiting 6 months.
Another factor could be covered percentage, based on caniuse. 98%+ is the coverage of things we can all agree we can use, so is 95%+ enough for new features? 90%+ (so 1 in 10 people wouldn't get the expected experience)?5 -
If I code 10 to 1 or 2 I can have good sleep..but in any case if I sleep eaely before 1 then code snippet and bugs come in dreams.........
..
Even if I sleep early when I'm too tired.. -
Hey guys. I'm sure this has been asked before but what kind of work laptops are you issued. And 1-10 rating of em. Just curious.
Personally: Dell Latitude e6520. 6/109 -
Who is going to tell Netflix that not every title need to be a 10 part series? A story that should fit into an 1 hr (maybe 2 max) is padded with unnecessary stories to be a 10 part series of 1 hr+ per episode.2
-
Within your area of specialty / position, where would you place your skills on a scale of 1 to 10? 1 is very new / not skilled, 10 is 'this is what I do and everybody knows I'm one of the best at it'.
Interested in seeing how we rate ourselves when compared to the rest of the industry.6 -
10 most useful API for developers
1-Google Maps
2-CoinGecko
3-Mail Chimp
4-Open Weather
5-Instagram
6-Yelp
7-Bit.ly
8-Souncloud
9-Dropbox
10-Okta24 -
This is a Shark Tank related question. I've seen some investors say "I lost money investing in this business or that business" and I'm curious what happens after that.
Let's say I gave you 10% of equity for $1 million and my business didn't make it.
Or I partied too much and blew it all.
What would happen to me then?11 -
I was trying to build this AWESOME react native application.
1. install npm and react native [3 min]
- oh wait install yarn [about 10 min]
- how about expo 1 min
- and install expo on my phone [ 1min]
2. create a react native app
umm install pod [10 min]
run npm ... figure failures and stuff [20 min]
it's been almost 1 hour now and I forgot what I was building.2 -
Meeting just after given a vacation to the whole company. We had 1 week of no work. Everyone of us including the boss went on a vacation together. He sets up a meeting the very next day at 8:00 fucking AM . Sent at 10 PM. Like nigga . Let me reset and prepare my mind ffs. That was a ridiculous meeting recently just for the sheer fuck of it.1
-
The platform team who provides all other teams with common framework emails everybody we need to upgrade the framework to new version. Let’s say version 1.a.0. They say it brings crucial security features and all pipelines using old versions would be blocked. My colleague created a story to upgrade all of our 10 microservices. When I got to it in a couple of days for some fucking reason they already rolled out 1.a.1 and didn’t inform anybody, the pipelines just logged warning u need to use 1.a.1. Alright, I did the upgrade to 1.a.1 and merged ducking everything in 10 fucking microservices. In a couple of days at morning they roll our 1.a.2 and require everybody to upgrade ducking degenerates as they found a high severity bug. I wanted to start again but was lazy and did nothing all day to learn that at 6pm the fuckers roll out 1.a.3!!! And again require everyone to upgrade!1!1!1eleven
Ten fuxkibg microservices. Goddamit write some unit tests, do friends&family, do fucking tests on small group of your inner clients before rolling out this shit that everybody must to use.
Spat at the display -
What are the odds Microsoft is playing behind the scenes with Wannacry attack to increase Windows 10 growth ?
It is not a secret that Satya Nadella is on a mission to meet 1 billion W10 devices by 2018.9 -
1. Makes account on CodeWars to see what the fuss is about, have a bit of fun on a quiet weekend etc.
2. Does a few 7kyu challenges, feels neat.
3. 4hrs later is 10 commits into a 1kyu level challenge called PuzzleFighter.
WHY DO I DO THIS -
Went through 60 python packages to see which fails installing on the serve. Took hrs as I have no terminal access but just via jenkins pipeline. So "edit/gitpush requirements.txt and wait" many times. Eventually looped them 1 by 1 in shell. By end of day got the list that installs.
Finally sent the whole list....with confidence
-Takes full 10 mins & Fails......
(panic mode starts)
+Changed the sequence = fails, somewhere else
+1 by 1 again = installs.....
+few random without the culprit =works
+again, whole list = fails, somewhere else
Need to sleep, brain's thinking of eagles1 -
Rate your company / co-workers, how intersting the projects are! (1 to 10), and write down how long have you been working for them.
I'm really curious to see how satisfied people are with the social part of the company they work with.4 -
had been working on a code for 10 hours and when i thought it was finally ready, without any errors, the compiler bi#ch killed my satisfaction for a f#@king ';'
never miss the semicolon, lessons from day 1. ://4 -
Applied to nearly 50 vacancies in Australia for role of Software Engineer/Developer. Maybe about 10 of them replied and said:
1. due to current international restrictions we are unable to provide Visa sponsorship for overseas candidates
2. we have decided not to move forward with your application
Waiting for others to reject me too.1 -
If your resume lists 10 jobs and you've spent 1 year or less at each job and you were not a contractor, that is not viewed as a Good Thing. I toss those resumes in the trash.5
-
How my day goes....
- 8:00 am: get to office
- 8-8:30: check all social apps(devrant,telegram,discord,whatsapp,linkedin)
8:30-10am: watch tutorial videos, reading some books
10-11am: break
11-1pm: tutorials
1pm-1:30pm: lunch
1:30-2pm: social apps again
3pm: lockdown rules kick in i head home
👨💻 👨💻 👨💻2 -
Why i dont have ten +1's in one Rant !
Should i do this to get those +1's ?!
for(i=0; i<10 ; i++){
sysout("Rants : "+i);
}2 -
Which linux distro is best?
1. Ubuntu linux
2. Manjaro linux
3. Pop os
4. Deepin os
5. Linux mint
6. Kali linux
7. Open SUSE
8. Garuda linux
9. Debian linux
10. Arch linux
11. Kde neon
12. Fedora
13. Redhat linux
14. Elementary os
15. Chrome os
If you know other best distros, let me know13 -
I kinda hate that I don't get any use out regex at work (I work with integrations). Gotta love that feeling when something that would have taken 10+ lines to solve without regex can be solved on 1 line with.3
-
Here , I am posting some questions so plzz reply in comment 😄
1. VScode or Atom
2. Flutter or Kotlin
3. Android dev or Web dev
4. Cpp or Java
5. Windows or Mac
6. Product based or Service based
7. Stack overflow or GitHub
8. Full stack or single stack
9. MEAN or MERN
10. Programmer or Devloper14 -
What is the efficient way of querying database and fetch paginated posts AND also checking if the user viewing that post has liked it?
Just like on instagram or twitter, you can just like/unlike post.
Entities:
- user
- post
- user_post_like
Ive implemented fetching posts for 1 user profile and also liking unliking each post. Thats fine
But now how do i know which post has been liked by which user?
One way i can think of is:
1. Query paginated posts (e.g. 10)
2. Loop through each post and query in user_post_like table to check if this post has been liked and if it is then set flag liked to true. That way on the frontend i can easily set liked or unliked post via ui
But this means I'd have to query database 10 times all the time, aside from querying 10 paginated posts. This doesnt seem efficient... Or am i wrong? Is this normal?
How would you model this?7 -
ProjectEuler problem difficulty level increases logarithmically after question 50. Question 60+ seems to take 10 times longer to solve than previous 50. I give up solving questions to write code to run within within 1 minute (which is a general rule specified).
I need to relearn Calculous...2 -
fuck peoplecert. youre software is crap. i dont have anything against yoire requirement that you need to see that someone doesnt cheat. but WHY is my cpu burning and so buggy. i needed 1 hour until the client started the test and somebody was able to see me and the desktop. 10 restarts of your client and one reboot IS TO MUCH.
By the way: i passed -
Chrome vs Firefox ram usage. Chrome running 1 tab (moodle) and Firefox a blank startup tab. I was genuinely surprised to see Firefox using more than 50% more compared to chrome. Both browsers are 64 bit and chrome has perhaps 10 extensions while Firefox only 59
-
Question about git. I worked on dev branch and made 10 commits.
Then I squash merged 10 commits from develop to master and made a release build.
Now problem is if I make a pull request from develop to master bitbucket will still show that master is behind (because develop has fixes in 10 commits while master has all of them squashed in 1 commit).
Now my question is whats the best way to make sure master and develop are synced (basically that master would have everything what develop has) ?
should I just merge master into develop back after the release?9 -
to me, "var a" is unorthodox. i'd rather use switch(expectedOutput){case 1:a=1;break;case 2:a=2;break;case 3:a=3;break;case 4:a=4;break;case 5:a=5;break;case 6:a=6;break;case 7:a=7;break;case 8:a=8;break;case 9:a=9;break;case 10:a=10;break;case 11:a=11;break;case 12:a=12;break;case 13:a=13;break;case 14:a=14;break;case 15:a=15;break;case 16:a=16;break;case 17:a=17;break;case 18:a=18;break;case 19:a=19;break;case 20:a=20}1
-
I had %1 of charge before going to sleep last night. My phone was turned off and not charging all night (~10 hours). I woke up and I turned on my phone as usual.
And I have %19 of charge. How is this possible? Does anyone have an explanation?
(This is probably my second time facing this.)
(P.S: Nights are cold here)5 -
Does anyone have any ideas on how to decrease latency of audio multicast via pulseaudio?
Currently having a non uniform latency of 1-10 seconds
This is in case of local network6 -
Databases are designed to support read heavy applications. A typical read write ratio is 10:1.
Is there a database that is designed to support a write heavy application?
What some examples of write heavy applications?9 -
HELP
Why does gcc fails to compile?
main.c:10:1: error: unrecognizable insn:
10 | }
| ^
(insn/f 18 4 19 (set (mem:SI (pre_dec:SI (reg:SI 1 bx)) [0 S4 A32])
(reg:HI 0 ax)) "main.c":8:1 -1
(nil))
during RTL pass: shorten
main.c:10:1: internal compiler error: in insn_default_length, at insn-attrtab.c:221
0x61f93f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:108
0x61f95b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:116
0x742291 insn_default_length(rtx_insn*)
/home/user/Documents/gcc/build-d16i/gcc/insn-attrtab.c:221
0x9ee716 shorten_branches(rtx_insn*)
../../gcc/final.c:1118
0x9ee78f rest_of_handle_shorten_branches
../../gcc/final.c:4753
0x9ee78f execute
../../gcc/final.c:47828 -
Microsoft understands we're pissed about low QA performance on updates. They're gonna bleach the Start menu and add a couple more buttons to the UI. https://theverge.com/2020/7/...9
-
Trying to figure out how the below code works. Everything is straight forward. The code works as I ran it in qbasic in dos emulator.
But for the life of me I cannot figure out wth cap1 and cap2 are. I debugged the code and saw values being set, but I cannot figure out where the data is coming from. I assume it is somehow related to the function declarations. Been 20 years since I did anything with qbasic. Maybe some other old fogie can tell me what is going on here:
DECLARE FUNCTION integrate (sample, cap, tc)
DECLARE FUNCTION differentiate (sample, cap, tc)
COMMON SHARED accumulator
CONST pi = 3.14159
SCREEN 9: CLS
FOR timeConstant = 10 TO 600 STEP 100
accumulator = 0
FOR a = 0 TO 22 STEP .01
wave = 0
FOR h = 1 TO 10
wave = wave + SIN(a * h) / h
NEXT h
lopass = integrate(wave, cap1, timeConstant)
IF wave > lopass THEN
trigger = 1
ELSE
trigger = 0
END IF
hipass = differentiate(trigger, cap2, 20)
PSET (a * 30, 50 - wave * 20), 15
PSET (a * 30, 50 - lopass * 20), 14
PSET (a * 30, 100 + timeConstant / 4 - trigger * 15), 2
PSET (a * 30, 270 - hipass * 20), 15
NEXT a
NEXT timeConstant
END
FUNCTION differentiate (sample, accumulator, tc) STATIC
fsample = tc
leakage = 1 - EXP(-2 * pi * 1 / fsample)
capAvg = leakage * accumulator
accumulator = accumulator - capAvg + sample
differentiate = sample - capAvg
END FUNCTION
FUNCTION integrate (sample, accumulator, tc) STATIC
fsample = tc
leakage = 1 - EXP(-2 * pi * 1 / fsample)
capAvg = leakage * accumulator
accumulator = accumulator - capAvg + sample
integrate = capAvg
END FUNCTION
The output looks like the image.10 -
Aaaand going through recruiter hell again! Not even 1 hour later i already receveid 10 phonecalls.3
-
Why are USB passkeys so expensive? I was under the impression that you 1) create a key pair, upload the public key to your google account and 2) store the private key on an old USB drive. But nooo, then you could copy the key I guess. Good luck convincing the average Joe to spend more than $10 on a fido/yubi/whatever key...3
-
I have a function that receives 2 parameters: a string and a max numer of characters.
It returns an array with the partitioned string.
Example:
function name("hi, I love devRant", 10);
//return:
array(2){
[0] ->"hi, I love"
[1] ->" devRant"
}
Now.... what would be the appropriate name for that function?10 -
Win7 Task manager: 7 slack.exe processes running after shutting down app. Force closes 1 process, revives itself. 16 chrome.exe processes running after closing chrome. 8 node.exe running when no more node apps running.. Jesus christ, clean up after yourself Windows.. No wonder virtual box complained about not enough memory to run Windows 10 image because I have to test my web app on Edge browser..1
-
First worl problem.
There is only 1 10Gbits port on router. I'm already using it (Usage never exceeds 3.5 Gbits).
I wanto to add second device, also in 10 GBits.
Hub or Switch ?
On the one hand, my fiber max out at 3.5 Gbits.
On the other hand, I might want full 10 Gbitrs for Pc to PC communication.
Do I need 10 ? 99% : NO. But there is this 1% when everything is so fast !12 -
There are 1 type of programmers. Those who understand how to use bits, and those who thinks it should be 10.4
-
Rembember the good old time when you just needed 10 +1's for stickers? Well live is getting harder from now on.1
-
Downloads a whole bunch of training videos.
-this looks interesting (clicks magnet link)
-I want to learn this (clicks magnet link)
-This would be useful to know (clicks magnet link)
Watches 1 out of 100000 downloads
10+TB data
Secretly waiting for matrix like learning -
Ok new game! 6 degrees of @localhost
Where every rant is only 6 degrees away from @localhost
BEGIN
10 Scroll through some rants
20 random stop at a rant
30 click on that rant
40 Click on the user's name on rant
50 In there profile: click on +1's
60 Click on the first rant you see
GOTO 402 -
With Reed Milewicz we conduct a 10-15m survey of mentorship among people who develop software. We offer a $100 Amazon gift card raffle to participants & donate $1 USD to an open-source 501(c)(3) non-profit for every survey completed.
Survey link: https://snl-survey.sandia.gov/surve...
Please help us to help the next generation of developers! -
I've been working on a project which has been understaffed (from the beginning, now I know).
All the newly hired guys, who are more experienced than me (in terms of how many years of work experience), use Eclipse.
I use IntelliJ.
I don't think I can make them switch to IntelliJ.
On a scale of 1 to 10, how frustrated should I be?8 -
https://cnet.com/products/...
Ho guys i have this old pc and i want to install Linux into. What do you suggest for this?
I don't know nothing about Linux so i hope you can help me. Thank you so much :)
P.s. Sorry for my bad english3