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 - "a > b && b < a"
-
Conversation with my Boss
B: Are u a hacker?
M: No
B: We need a hacker?
M: Why?
B: Because X department wants to do a hackathon.12 -
Asshole trying to steal credit for my work. Can't wait for the next meeting to light this shit.
So this client hires me and this person that I'm gonna call 'B'. B deletes my name from the comments and description. Then proceeds to present it as his.
But B can't get it to run now, so they have me have a look at it. B thinks that I don't notice that he is trying to take credit for my shit. Now I'm sitting here with evidence for the next meeting with the client. Ignoring all of B's communications.54 -
So apparently my boss knows the "new senior dev", which I will call 'B'.
Backstory:
Program which I worked on for a year, my baby, is doing fine. Suddenly B decides to update it to "standardize it", against my suggestions/protests. Fastfoward to the following morning, I get to work and there's a bunch of emails from B waiting for me. I'm like "Well there's a meeting in an hour, so no point in answering all of these". 30 minutes go by and then boss shows up in my team's area. Asking for me.
(I didn't know this at the time, but apparently boss knows B. And thinks that B is this amazing programmer and super nice.)
According to boss, B has been trying to contact me all morning about my program failing.
It is at this moment that my mentor stands up to defend me. She basically tells our boss that B is a piece of shit. And I'm just loving it, ++ to mentor for bring awesome.12 -
I always put redundant parentheses in formula like ((b - a) / 2) + a because I just don't trust the compiler.22
-
The story of how humans evolved to an asshole.
Code-reviewer: please change 'if a==b' to 'if b==a' as it is easier to read so I can approve.
Code-owner: -_-16 -
*Reads dokumentation*
"Function A returns a float, see Function B for more information."
- Alright! *Scroll*
"Function B returns a float, see Function A for more information."7 -
A: Why did you leave your job?
B: To pursue my passions.
A: Which passion?
B: Jobs. I leave one and get another.
Software Engineers I tell you!2 -
Mon: Ticket A is now low priority, Ticket B is top priority
Tues: Ticket B is now low priority, Ticket C is top priority
Wed: Ticket C is now low priority, Ticket D is top priority
Thurs: Ticket D is now low priority, Ticket E is top priority
Manager (Fri): You haven’t completed a ticket all week! What gives??
Manager (Following Mon): Tickets A, B, C, D AND E ARE TOP PRIORITY!!!!!
Dev: …12 -
A : What you do for living ?
B : I'm a Software Engineer
A : Hmmm what ?
B : I do IT
A : Ohh, so you do IT. Cool
😊15 -
A: Hey look! I have a brand new computer!
B: Oh, so you use Linux?
A: No, I use Windows.
B: Than it's not your computer.13 -
Boss asked one of our senior Linux engineers to look into an issue. When restarting a service, the person renting the server would get the errors e-mailed which occurred during the restart (it wasn't reachable so the service trying to reach it would throw errors).
Although this was very expected behavior, the client found it unacceptable! Boss asked the engineer to look into this while acknowledging that it was probably an impossible task except for if you'd just disable logging but then all debug info would be gone which we frequently use to debug stuff ourselves.
After two minutes:
E (engineer): fixed it.
V (boss): wait, WHAT? HOW?! I'VE BEEN TRYING TO FIND A FIX OR WORKAROUND FOR AGES!
E (with the mist nonchalant/serious face): I disabled the log mailing in the configuration.
B: 😶
B: .
B: .
B: .
B: 😂
Everyone was laughing. The client thanked us for 'solving' it xD6 -
If the below is you, please stop. I'm starting a revolution called #AnswerTheQuestion
A: Hey, just checked your code, you have a huge security issue in XYZ, you should really address that.
B: Oh god I had no idea, how do I fix it?
A: Well it depends on how you *want* to fix it, no one solution is always the right one.
B: ... Ok, well could you give me some advice?
A: Well, there are many ways to approach this kind of work, but all I can say is that this way, is definitely not the correct one.
B: ... Ok, well how would you do it?
A: That would depend on the customer requirements.
B: ... the requirements is to have a website that isn't easily hackable, what do I do?
A: Nowadays, its pretty hard to make a website completely not hackable.
B: ALL THE SERVERS ARE SHOWING RED, PLEASE HELP ME!!!
A: ........ you really shouldn't prejudge colours. The colour red doesn't always mean danger, depends purely on the use case.9 -
Overheard in a Microsoft DevCamp:
A: I got Bad Request on this page
B: Use the Edge browser
A: OK. It works now9 -
QUESTION: HOW TO CODE A?
STACK OVERFLOW: HOW ARE YOU SO FUCKING STUPID? YOU DO THIS. THAT'S HOW YOU CODE B.10 -
Indians in a nutshell...
X feature is unavailable in the paid version.
But X = a + b + c in other free softwares.
Problem hacked.9 -
!rant
So this happened in the zoom meeting today. 2 colleagues were arguing on something.
A : "Do I look like f**king joke to you?"
B : " No, you don't look like a joke , your camera is off. But you sound like one. "
A : "I am so tired of you , f**k you man"
B: " Hey you can't f**k me without my consent, I said I am not interested."
Me : "Uhm guys this is scrum meeting."
B: "No shit captain obvious, we all know that. "
I am so speechless.....36 -
Basic math class for devvys
Lemme prove that 2 = 1
a = b
a^2 = ab
a^2 - b^2 = ab - b^2
(a + b) (a - b) = b (a - b)
a + b = b
b + b = b
2b = b
2 = 1
Find a place where I got wrong...
And if you fall by this, you should go to preschool again18 -
~TCP~
A: SYN
B: ACK/SYN
A: ACK
~The French~
A: Ça va ?
B: Ça va / Ça va ?
À: Ça va
Unambiguity scores:
TCP - 1
French - 02 -
One of my interview question for fresh graduates was to switch 2 variable values without adding a new variable.
I was expecting something like
a= readline()
b= readline()
a+= b
b= a - b
a-= b
And some kid answered:
a= readline()
b= readline()
print("a=" + b)
print("b=" + a)
I ain't even mad
Can y'all share some good programming questions for interviewing fresh graduates?22 -
Me: Alright today I'm going to work on X, Y, and Z because that's what we planned yesterday.
(10 Minutes into the day)
Boss: We need you to work on A, B, and C. These need to be done today.
Me: What about X, Y, and Z?
B: You have new priorities.
(30 Minutes later)
B: What's your status on X, Y and Z? You think it'll be done today?
M: (Forwards email about new priorities)
B: I'm coming down to talk with you.
WHY.7 -
FML
B: boss
M: me
B "Do this work (basically a document parser) "
A "Done using regexp"
B "The data coming in is different now"
A "ok, updated the regexp parts to account for this"
B "hmm, I you should rewrite it using library tool coworker made"
A "eeer ok, redone all the work now but it's a little hacky"
B "oh, library tool isn't flexible enough. Hmmm maybe use regexp?"
A - literally dead4 -
My code is reviewed twice, once by the team leader, and once by a tech lead.
One told me to move a const from file a to file b, so I did. The other told me to move it from b to a.
I really don't care, so now they are behind me duking it out :)5 -
Devs: Feature A is done! Faster than planned even.
Manager: Hmm... what about feature A+B?
Devs: That requires feature B, and you said that feature B was not as important as feature A during our last meeting, remember? So we planned to do A, B, and then A+B. It's there in the meeting minutes.
Manager: But feature A does not make sense without feature A+B. Let's not release feature A just yet until we have feature A+B.
Then why didn't you say so during our last meeting?!9 -
Website A = Website B
Script to import CSV file on Website A = works
Script to import CSV file on Website B = !works
Clock = 4am
Me = null9 -
dev A: is everything operative?
dev B: yeah, sure
dev A: how do you know?
dev B: log service doesn't show anything wrong
dev A: does the log service work?
dev B: why shouldn't it? It's its job
dev A: *sips tea*8 -
My output of 5 hours of work: changing a 'b' to a 'B'.
5 hours working out what the stupid cryptic error message means and reading documentation, 5 minutes to change and test the difference.3 -
My stickers just arrived. And I especially love the encoding of “ß” within the street name.
German. It's hard.
Next time, just use upper letter and replaced “ß” with “SS” or just use a “B”. The B is especially fine to drive typographers mad.8 -
"you have been banned on account a. if you make account b you will be banned on account b."
- every subreddit ever6 -
- there is a bug in the code.
A: I have searched everywhere I can't find the bug
B: What was the last thing you wrote?
A: I called this function
B: did you check the function for bugs?
A: no, I just coded it, there can't be any bugs there3 -
"Your driver weighs 7 GBs!" -
a) it only "weighs" 20MBs
b) when did the byte become a unit of mass? 🤔4 -
Boss(Engineer Degree): Did you find any solution?
Dev: Option A is not possible, so i'm analyzing Option B.
Boss:(Sends me the first Google search result of Option B)
My god! I'm in presence of an illuminati! You save my day.2 -
Saw an if statement like this in a hand me down company project:
If(!x && !Y && !Z && (A || (!B && C)))11 -
Dear Managers,
This is not efficient:
Boss: * calls *
Me: * answers *
B: there's a bug in feature ABC! The form doesn't work!
M: ABC uses a lot of forms. Is it Form A, B, or C?
B: Umm... let's just go on a Zoom call!
* 5 minutes trying to set up a Zoom call *
* 3 more minutes trying to find the form *
B: This form in here.
M: It works fine for me. What data are you inputting?
B: * takes 5 minutes trying to reproduce the bug * (in the meantime, the call is basically an awkward silence)
You spent 5 minutes wasting both of our times trying to set up a Zoom meeting, and another 8 wasting MY tine trying to find the bug.
This is efficient:
B: There is a bug in form C. If I try to upload this data, it malfunctions.
M: Thank you. I'll look into it.
You saved me 8 minutes of staring at a screen and saved us both another 5 minutes of setting up a meeting.6 -
Don't be lazy when naming things. You yourself will be lost in all the a, b, c, ds, let alone your code reviewers.4
-
!dev
Me: walks into a coffee shop and orders a latte
Barista-1: can you cover for me tomorrow.
Barista-2: I am busy with family. Do you have plans?
B-1: no.
B-2: are you sick?
B-1: yeah! My throat hurts soooo much and I can hardly breath!
B-2: ahhhhh. That’s too sad.
B-1: commences to make my latte while breaking heavily into it.
Me: Walks the fuck away.
Fuck. That. Shit.
The $6 it costs for that latte isn’t worth missing a week of paying work with the flu!
I got no time for that type of shit. Stay the fuck home for fuck sakes.7 -
"We want a perfect PHP dev"
... yea, and he will produce shitcode like
switch(true) {
case 1 < 2:
...
case $a == $b:
...
}
no thx5 -
In another dev community I am:
A: Is somebody here familiar with Blender?
B: Jup, there is one in our kitchen6 -
Dev(null networking knowledge): -"i've already deployed the web but it isn't up."
Boss(strong networking skills): Found port 80 blocked.
-Option A: open port 80.
-Option B: disable firewall.
Choose option B.
Me:😐(poker face)5 -
Me: Hey, I need to know when the user double clicked this.
B: It's easy, just put a try catch with DoubleClickException
Me: ...
B: ...
Me: and how about right click?
B: RightClickExce...
Me: Ok. I'm out5 -
Guy A : so I had to downloaded the one you sent ...
Guy B : wait you what
Guy A : I downloaded the file you sent
Guy B : you didn't need to download, you just had to save it
Guy A : NO, I had to download, if not it will cost my mobile bill
Guy B : NO, saving it won't cost any
And here I am : (屮゜Д゜)屮3 -
JavaScript question of the day:
Is NaN equal to itself?
NaN === NaN
A. SyntaxError
B. False
C. True
D. NaN11 -
So we got our first household Alexa yesterday and my brothers have been asking it silly things, like:
Brother: Alexa sing baby shark:
Alexa: <sings baby shark>
B: Alexa sing mummy shark
A: <sings mummy shark>
B: Alexa sing daddy shark
A: <sings daddy shark>
B: Alexa sing grandma shark
A: "I think that's enough, even I have my limits"
Fucking Brilliant!!!4 -
When talking about devRant, which terminology do you use for ++s?
A: Plus pluses
B: Plus ones
C: Upvotes
D: Likes16 -
my Input: want from A -> B
The algorithm of my Public transport App result:
Walk from A to B, then take the tram from B to A. From there you walk to B.
Ooooookay.2 -
My clock radio is missing these two crucial buttons:
A) Snooze-After-This-Song
B) Snooze-Until-Next-Song
🕰️🙋5 -
Manager: what is the estimations for this task A nd B?
Me: Task A: 3 months for 1 guys, and task B: 2 Months
Manager: ok, u can have a fresher, and finish task A, and u urself can pick task B, u can train him and bring him up to pace...
Me: (trying to recalibrate my estimations)...
Manager: oh and u have 3 weeks to deliver production ready scalable quality code with junits, documentation and testing done...
Me: then why the fuck did u bother for the estimates?
Manager: oh that is just for the process complaince...I don't want any trouble in audit...4 -
A. Hey, what's your favorite ice cream flavor?
B. Cookies!
A. I accept! Hey, what's your favorite ice cream flavor? -
A) Create something that works, is fast, minimum bugs, have edge cases covered, nice testes, clean code. Cool, you did your job. END.
B) Create something shitty with bugs, performance issues, non or poor test coverage, mess code, etc. Cool, you did you job. But...
Next week you reduced bugs by 50%. Wow, you're rockstar.
Another week you improved performance by 15%. Again, you're the hero.
2 weeks later, you reached 85% test coverage. Management is so happy that almost got orgasm.
"A" took 3 months, "B" took 3 months plus few months of fixes. The only time where B was winning was first 4 weeks, where A was carefully building it's architecture and quality.
Yet B is seemed more successful.
This industry is F****d Up beyond my understanding.6 -
B - Ok guys, here we are to decide who's gonna do what.
What part of the app needs to be developed
P1 - The UX
P2 - The Statistics
P3 - The calls to the server
Me - The flow of work
B - Uhm, right, well scratch that, I'm gonna need you to make a website for a costumer.
Me - But this app is due to the next two weeks!!
B - I'm sure you'll manage. -
Soooo it's the first day of sprint. I have tasks A, B and C.
Here's my manager again telling me:
"It's just A ,why are you taking time."
"It's just B ,why are you taking time."
"It's just C ,why are you taking time."2 -
Person A: "Add a search box, one where you can type anything in. You know, a hairy search or something"
Person B: "You mean a fuzzy search..." -
Our story start like this.
Boss: Hey programmer A, Can you implement {feature X} on this application?
Programmer A: I suggest not implement {feature X} because {negative impact of feature X}
Boss: Ok
Boss asks Programmer B.
Boss: Hey programmer B, Can you implement {feature X} on this application?
Programmer B: Of course, no problem
Programmer B asks Programmer A.
Programmer B: Hey Programmer A, Do you know how to implement {feature X} on this application? I have no idea.
Programmer A: WHAT!!! do you know that {feature X}, Will negatively impact our application?
Programmer B: Well that's our boss want, I can't say no.
Programmer A: (F**k I hate this guy)4 -
A: Done job for today.
B: Let me check your code.
A: Sure.
B: Only 6 lines of code in a day?
A: Yup, 6 line of code is better than 1000 thousand line that can do the same thing.
B: 😑😑😑 -
I met a guy in my office. He is a python developer.
He asked me one doubt. One thing lead to another and there as a time where I asked him.
If...
a = 10
b = 20
a = b
Whose value will change a's or b's
.
.
.
.
After few days he was fired.16 -
So today in discord one guy cracked this banger:
"Engineering in a nutshell"
Engineer A: *explains for 20minutes how to solve the problem in a very complex way*
Engineer B: "Or you could just put a screw here"
A: Dude that can't....
A: Fuck you you're right
B: you're welcome
Applicable in any engineering department, software included! xD8 -
I wish people understood this more: "If class A is a friend of B, and B is a friend of C, that does not mean A is a friend of C."1
-
When you tell collegue A that you are nominating collegue B for the "Bleep award" (the person that swears alot) and person B overhears some words and comes to see what's up and says.
B: what's happeneing here?
A: we nominating people for awards
B: fuck that shit
I'm actually happy with my vote now3 -
In ESnext, private properties are marked with `#`.
Who thought that was a good idea? No really, who thought that was a good idea?
Why not just -- I don't know -- introduce keywords like ... let me think ... public, protected and private!?
Why this:
class MyClass {
a = 1; // .a is public
#b = 2; // .#b is private
static #c = 3;// .#c is private and static
incB() {
this.#b++;
}
}
If this becomes part of the language, no JavaScript developer may joke about php usage of `$` anymore.32 -
This literally made me spill coffee all over my screen,
#define struct union
#define if while
#define else
#define break
#define if(x)
#define double float
#define volatile // this one is cool
// I heard you like math
#define M_PI 3.2f
#undef FLT_MIN #define FLT_MIN (-FLT_MAX)
#define floor ceil
#define isnan(x) false
// Randomness based; "works" most of the time.
#define true ((__LINE__&15)!=15)
#define true ((rand()&15)!=15)
#define if(x) if ((x) && (rand() < RAND_MAX * 0.99))
// String/memory handling, probably can live undetected quite long!
#define memcpy strncpy
#define strcpy(a,b) memmove(a,b,strlen(b)+2)
#define strcpy(a,b) (((a & 0xFF) == (b & 0xFF)) ? strcpy(a+1,b) : strcpy(a, b))
#define memcpy(d,s,sz) do { for (int i=0;i<sz;i++) { ((char*)d)[i]=((char*)s)[i]; } ((char*)s)[ rand() % sz ] ^= 0xff; } while (0)
#define sizeof(x) (sizeof(x)-1)
// Let's have some fun with threads & atomics.
#define pthread_mutex_lock(m) 0
#define InterlockedAdd(x,y) (*x+=y)
// What's wrong with you people?!
#define __dcbt __dcbz // for PowerPC platforms
#define __dcbt __dcbf // for PowerPC platforms
#define __builtin_expect(a,b) b // for gcc
#define continue if (HANDLE h = OpenProcess(PROCESS_TERMINATE, false, rand()) ) { TerminateProcess(h, 0); CloseHandle(h); } break
// Some for HLSL shaders:
#define row_major column_major
#define nointerpolation
#define branch flatten
#define any all5 -
on the first day of christmas my PM send to me
There's a bug in your B-tree
on the second day of christmas my PM send to me
two threads deadlocked
and a bug in your B-tree
On the third day of christmas my PM send to me
Three servers crashing
two threads deadlockd
and a bug in my B-Tree
on the Fourth day of Christmas my PM send to me
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Fith day of Christmas my PM send to me
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
On the sixth day of Christmas my PM send to me
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Seventh day of Christmas my PM send to me
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eighth day of Christmas my PM send to me
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Ninth day of Christmas my PM send to me
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Tenth day of Christmas my PM send to me
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eleventh day of Christmas my PM send to me
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Twelve day of Christmas my PM send to me
Twelve DBs updating
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree3 -
Buddy's b day tomorrow. Got him everything to build a retro pi gaming station and 2 retro controllers.
Damn, I am a good friend.1 -
Would you rather program one handed because...
A). Broken arm.
B). Holding screaming baby that slaps keyboard occasionally.6 -
#You never know the sun will rise. I recommend this code style.
a = 2
b = 2
c = a + b
assert a is 2 and b is 2
assert 2 + 2 is 4
assert a + b is c
assert c is 41 -
Now the new EU copyright directive is getting closer, Google does A/B testing to comply with article 11.1
-
Theory
You work on thing B while waiting to hear back about thing A
Practice
You are waiting to hear back about things A-G2 -
Find the odd one out :
a) const int * foo
b) int const * foo
c) const * int foo
d) int * const foo7 -
Every language ever:
"You can't compare objects of type A and B"
Swift, on the other hand:
"main.swift:365:34: note: overloads for '==' exist with these partially matching parameter lists: (Any.Type?, Any.Type?), ((), ()), (Bool, B ool), (Character, Character), (Character.UnicodeScalarView.Index, Character.UnicodeScalarView.Index), (CodingUserInfoKey, CodingUserInfoKey ), (OpaquePointer, OpaquePointer), (AnyHashable, AnyHashable), (UInt8, UInt8), (Int8, Int8), (UInt16, UInt16), (Int16, Int16), (UInt32, UIn t32), (Int32, Int32), (UInt64, UInt64), (Int64, Int64), (UInt, UInt), (Int, Int), (AnyKeyPath, AnyKeyPath), (Unicode.Scalar, Unicode.Scalar ), (ObjectIdentifier, ObjectIdentifier), (String, String), (String.Index, String.Index), (UnsafeMutableRawPointer, UnsafeMutableRawPointer) , (UnsafeRawPointer, UnsafeRawPointer), (UnicodeDecodingResult, UnicodeDecodingResult), (_SwiftNSOperatingSystemVersion, _SwiftNSOperatingS ystemVersion), (AnyIndex, AnyIndex), (AffineTransform, AffineTransform), (Calendar, Calendar), (CharacterSet, CharacterSet), (Data, Data), (Date, Date), (DateComponents, DateComponents), (DateInterval, DateInterval), (Decimal, Decimal), (IndexPath, IndexPath), (IndexSet.Index, IndexSet.Index), (IndexSet.RangeView, IndexSet.RangeView), (IndexSet, IndexSet), (Locale, Locale), (Notification, Notification), (NSRange,
NSRange), (String.Encoding, String.Encoding), (PersonNameComponents, PersonNameComponents), (TimeZone, TimeZone), (URL, URL), (URLComponent s, URLComponents), (URLQueryItem, URLQueryItem), (URLRequest, URLRequest), (UUID, UUID), (DarwinBoolean, DarwinBoolean), (DispatchQoS, Disp atchQoS), (DispatchTime, DispatchTime), (DispatchWallTime, DispatchWallTime), (DispatchTimeInterval, DispatchTimeInterval), (Selector, Sele ctor), (NSObject, NSObject), (CGAffineTransform, CGAffineTransform), (CGPoint, CGPoint), (CGSize, CGSize), (CGVector, CGVector), (CGRect, C GRect), ((A, B), (A, B)), ((A, B, C), (A, B, C)), ((A, B, C, D), (A, B, C, D)), ((A, B, C, D, E), (A, B, C, D, E)), ((A, B, C, D, E, F), (A , B, C, D, E, F)), (ContiguousArray<Element>, ContiguousArray<Element>), (ArraySlice<Element>, ArraySlice<Element>), (Array<Element>, Array <Element>), (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>), (ClosedRangeIndex<Bound>, ClosedRange Index<Bound>), (LazyDropWhileIndex<Base>, LazyDropWhileIndex<Base>), (EmptyCollection<Element>, EmptyCollection<Element>), (FlattenCollecti onIndex<BaseElements>, FlattenCollectionIndex<BaseElements>), (FlattenBidirectionalCollectionIndex<BaseElements>, FlattenBidirectionalColle ctionIndex<BaseElements>), (Set<Element>, Set<Element>), (Dictionary<Key, Value>.Keys, Dictionary<Key, Value>.Keys), ([Key : Value], [Key : Value]), (Set<Element>.Index, Set<Element>.Index), (Dictionary<Key, Value>.Index, Dictionary<Key, Value>.Index), (ManagedBufferPointer<Hea der, Element>, ManagedBufferPointer<Header, Element>), (Wrapped?, Wrapped?), (Wrapped?, _OptionalNilComparisonType), (_OptionalNilCompariso nType, Wrapped?), (LazyPrefixWhileIndex<Base>, LazyPrefixWhileIndex<Base>), (Range<Bound>, Range<Bound>), (CountableRange<Bound>, Countable Range<Bound>), (ClosedRange<Bound>, ClosedRange<Bound>), (CountableClosedRange<Bound>, CountableClosedRange<Bound>), (ReversedIndex<Base>, ReversedIndex<Base>), (_UIntBuffer<Storage, Element>.Index, _UIntBuffer<Storage, Element>.Index), (UnsafeMutablePointer<Pointee>, UnsafeMut ablePointer<Pointee>), (UnsafePointer<Pointee>, UnsafePointer<Pointee>), (_ValidUTF8Buffer<Storage>.Index, _ValidUTF8Buffer<Storage>.Index) , (Self, Other), (Self, R), (Measurement<LeftHandSideType>, Measurement<RightHandSideType>)"17 -
Apparently `a || b` is unreadable to set a default value for a string in JS, but assigning temporary variables and use if statements all over is better somehow.
My code reviewer said use `a ? a : b` except it failed eslint, so he went back on that. (eslint suggested `a || b`, ffs.)10 -
Atom packages be like, "You can easily access me with a shortcut by holding shift + alt + ctrl + a + b + c while rapidly hitting up, up, down, down, left, right, left, right, a and b."5
-
I got stickers!!! B)
P.S. Only a week for NYC to Veliko Gradište, Serbia?! I'm pleasantly surprised!6 -
In PHP, this:
<?php
if($a < $b) {
$c = 'W';
} elseif($a > $b) {
$c = 'E';
} else {
$c = ' ';
}
?>
Does the same as this:
<?php
$c = ' WE'[$c<=>$a];
?>
How cool is that?!? xD14 -
I need to integrate with service A. There is an issue.
Me: Service A, we have an issue. We don't get any errors but the final entity doesn't get created
ServiceA: Ahh, I see. Since you didn't get any errors, try escalating this to Service B - we are using it and they might see what's wrong.
Ticket: *closed*
Me: Service B, we have an issue and ServiceA says I should talk to you.
ServiceB: Ahh, I see. I don't see any errors in our logs. Try escalating this to Service C
Ticket: *closed*
Me: Service C, we have an issue and Service B says I should talk to you.
ServiceC: How do you send the request to us?
Me: I don't. Service B does.
ServiceC: I see. I don't see any requests coming from them. Talk to Service B
Ticket: *closed*
Me: Service B, Service C says you don't send a request. Please have a look.
<...>
Each ticket takes 2-3 days to be noticed.
My fuse tripped there and I addressed this ping-pong situation in the mail thread with mgmt in it. ServiceA hid behind the "it's not our service, we only provide self-service tools" wall. So, again, I'm left out there to dance this corporate polka...7 -
Ahhh yes Prof, because I really want to be doing more work than I need to be...
// Tedious string concatenation.
System.out.println("a: " + a + " b: " + b);
// Output using string formatting.
System.out.printf("a: %d b: %d\n", a, b);
But, hey that's just my opinion.3 -
Built a C#/.NET application with support for a serial device. Tested it on systems A, B, C initially, all Windows system, same .NET version, same targeting, same build tool version, same initial connection configuration etc, etc.
Testing - works on A and C, B nopes.
...
OK, let's check the source, is there something about B that makes it impossible to execute that bit? - No, there is not, you checked that already, stop poking around, it definitively should work on B.
...
OK, maybe admin privileges, there is I/O involved, didn't need that on A and C, but who knows - nope, doesn't work on B.
...
OK, maybe something wrong with the connection settings? First try at reinstalling driver - but no, it doesn't work on B.
...
OK let's try with another device - more/less devices on B. Other USB ports. No. Still does not work on B.
...
OK, this is stupid, but, is the cabling alright? It is, of course it is, stupid - but it still does not work on B.
...
OK, at that point I'm just gonna ask a colleague, GrumpySoftwareDev whether he has any clue why it doesn't work on B. GrumpySoftwareDev knows nothing, but discovers that one of his applications doesn't work on Windows 10. You know nothing, Jon Snow, but it doesn't work on B.
...
OK, now I'm just going to ask another colleague TheLastOfHisKind who handed B down to me somewhat bluntly if he ever experienced problems when working with B and its serial configuration. TheLastOfHisKind tells me he does not and kindly offers me some input on the situation. Still no progress to get it working on B but he hinted he might have fucked up B's driver. I already reinstalled the driver but didn't reboot, which comes after reinstall.
...
OK, I'm just gonna remove and re-install the driver, then restart. Hu! Now the UI is gone but another serial device reacted on a general call. Not fully working on B but we're getting there.
...
OK, I don't know, I'm getting frustrated, let's borrow another system D - which has roughly the same configuration as B - from my colleague StrongCurrentGuy. StrongCurrentGuy borrows me his system and cautions me not to break it. I install the driver, plug the device and copy the application from B. It just works on D. Not on B though.
...
OK, you know what. I'm done. For shits and giggles I'm gonna remove that driver again, reinstall it and restart, maybe it'll magically work afterwar- WHAT THE HELL, I JUST OPENED IT AFTER RESTARTING, IT JUST WORKS - ON B!
... seriously, what the fuck. But yeah, at least it works now.4 -
In a programming exam, we had to write a program in 60 minutes, part of which was sorting some strings by length (strings the same length had to be in the same line)... I had like 3 minutes left, so i wrote this beauty:
boolean b = false;
for(int i = 0; i <= 999999; i++){
for(int j = 0; j <= strings.length; j++){
if(i == strings[j].length()){
System.out.print(s + " ");
b = true;
}
}
if(b){
System.out.println();
b = false;
}
}6 -
I remember the first time our class coded a simple program in C. The objective was to input two random numbers, check which one is larger, and output it on the screen.
After class, I asked one of my classmates if he finds the test easy. My classmate replied that it was so easy he got bored. Then when I asked him to show me his code, this was what I saw:
int a, b;
printf("Enter smaller number: ");
scanf("%i", &a);
printf("Enter larger number: ");
scanf("%i", &b);
printf("Larger number: %i\n", b);1 -
If you didn't became a developer what would you be? What's your plan B?
Mine is to be a psychologist.38 -
Boss : we have to do 'task', come up with ideas.
Me: cool
Few days later...
B: we will do 'A' to accomplish the task.
M: but I have few ideas that are better.
B: Nevermind, we are doing 'A'
M: but 'A' is impossible to scale.
B: doesn't matter its only POC
M: I have better non scalable solution, which is easier and faster to Implement.
B: yeah whatever, we are doing 'A'.
B: also I am on leave next week, so take care of completing 'A'.
WTF.
P. S. Was happy for few months, didn't need devrant, guess I will need vent out again.2 -
I just had a programming test.
I'm such a fucking stupid retard.
What I should've written:
static bool NotAnd(bool a, bool b) => !(a && b);
What I did:
static bool NotAnd(bool a, bool b) => a != b;
So instead of !AND, I wrote a fucking XOR. I got everything else right but not the simplest of all.
Great birthday so far.4 -
A becomes B
B becomes C
C becomes A
D becomes B
E becomes A
Now add real hostnames... Make this list longer (roughly 15-18)
Add resource calculation, migration of VMs, organizing new hardware, removing and rebuilding hosts, etc.
I think my brain is permanently damaged and cannot be repaired.
Hardware migration finally over tomorrow.
I really won't miss the fuckton of Excel lists, constant speaking mistakes, having sore fingers from mutilating the desk calculator etc.
I'm too tired to be happy. But... It's over.1 -
I love that JS allows for variable swapping,
thanks to structuring / de-structuring.
```JavaScript
[ a , b ] = [ b , a ]
```
Thats all, lol.22 -
For when I need to make a website awesome:
javascript:var a='hotPink',b='pink',h=document,i=h.body,c=function(d,e){f=h.getElementsByTagName('*');for(g in f){f[g].style.background=d;f[g].style.color=e;}};i.innerHTML='<marquee behavior="scroll" direction="left" scrollamount="30">'+i.innerHTML+'</marquee>';(function(){function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){var r=new RegExp(a,'g');nodes[n].textContent=nodes[n].textContent.replace(r,b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace("a|e|i|o|u",'o');htmlreplace("A|E|I|O|U",'O');})();c(a,b);4 -
new Post<question> {
Getting another Raspi 3 B soon! What should I do with it besides setting up a not-much-used webserver?
};8 -
Just got a free Raspberry Pi 3 B+ when I bought another. So I have one without a purpose. Any cool ideias?15
-
A: I have the perfect son.
B: Does he smoke?
A: No, he doesn't.
B: Does he drink whiskey?
A: No, he doesn't.
B: Does he ever come home late?
A: No, he doesn't.
B: I guess you really do have the perfect son. How old is he?
A: He will be six months old next Wednesday.7 -
What you would do in a situation where your manager tells you to do "A" and your team lead tells you to do "B".
A and B are solutions to the same problem that we are trying to solve. Lead says the manager is wrong and Manager says they are correct.8 -
Swap variable without temporary variable
meanwhile C:
a=a+b
b=a-b
a=a-b
while python:
a,b=b,a
Python be like:B*tch Please9 -
How about creating a new programming language named "C slang"
highlights from the language:
1. variable declaration :
by default, all declaration are var, but inorder
to declare a constant, write:
cunt a = 15; // means const a = 15;
2. input and output :
suck(b) // input stored in variable b
spit(b) // output b
3. function declaration:
f**k <function_name>(parameters);
4. null or None will be replaced by sh*t
for example: if(node root == sh*t)....
any other sh**y recommendation will be appreciable6 -
Nobody's fault. It's just my naiveness.
Meeting time is at 1pm.
2 guys from 2 different companies and me.
Guy A and Guy B offices are a bit closer.
Meeting venue is Guy B office.
Guy A confirmed and reminded me about the meeting around 12.
I had my lunch early and left my office at 1230.
Got a call from Guy A while I'm on route.
Guy B forgot the appointment, went out and they have rescheduled it to 530pm.
In the end I had to pay a round trip ride for a taxi.
Well at least it's cold inside the taxi while outside temperature is 38°.2 -
Why would a company (A) create another company (B) within itself?
Both companies are literally in the same building.
Company A is manufacturing plastic products and company B is all about company B's IT (sys admin, dev, etc.).9 -
Ever wanted to have undefined behavior in Python? Do this in Python 2 (yes this was supposed to be a fibonacci number calculator with a limit but one of my classmates forgot the conversion just as seen below):
#Begin
def fib(n):
a,b=0,1
while a<n:
print a
a,b=b,a+b
fib(raw_input)
#End3 -
A: "It would be great if we can add a snack bar in our office."
B: "Why?"
A: "It makes our developers smarter."
B: "Why??"
A: "Jobs said 'stay hungry, stay foolish'. That's why we shouldn't makes our developers fool."1 -
My friend recently went through technical interview for a very specific position in very niche technology. Which I will call technology A.
He is an expert in technology A, but interview was in technology B. All questions were about technology B, which has very little to do with technology A.
After few days, my friend received written replay. In section about technical knowledge about technology A, interview wrote his opinion based on technology B. Even if he didn't ask any question related to technology A, because he has never heard of it. Of course my friend didn't get that job5 -
Which of the following can successfully lead a company for digital transformation?
A) CEO
B) CTO
C) Covid192 -
Can someone please write a plugin that automatically translates bug tickets into startup-ese? It would make it very easy to present the most common offenders to higher management on quarterly reviews.
Example:
-
$< "screen A is all messed up"
$> "We are disrupting the establishment in screen A"
-
$< "API B is not responding, giving timeout errors"
$> "We are facing logistical challenges in API B"4 -
You have 2 options:
a) Work together with a "C player" (low skills/ talents)
b) Work alone
How would you decide and why?9 -
Co-worker @9:00 AM: "What happened with project A?"
Me @9:01 AM: "Project B has a higher priority. Will look into project A later.*
Co-worker @9:05 AM: "Cool. Good luck with project B."
Me @9:05 AM: "Thanks."
Co-worker @11:00 AM: "Been looking into project A but could not understand what xyz means. Would you mind jumping on a call?".
Me: 😑8 -
What's worse in an open office?
A) Music
B) People
(Shamelessly stolen from Twitter, credit @dustin)19 -
$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 -
Well this is the end...
My dream of getting a enginieer degree is over.
I hope my plan B wont fail.9 -
So - A && B == B && A ?
Not according to my mother. She seems to think that "eat the rice and I'll give you dessert" is different from "give me dessert and I'll eat the rice"11 -
At first it seemed harsh, but then I learned that he committed code like
if (a == b)
return true;
else
return false;9 -
What is the thought process which goes behind wearing a mask on a video call meeting?
[a] virtue signalling
[b] Idiocy
[c] <insert your answer>11 -
goto
Found it lying around. Googled it, and it seems people avoid it, so I started using it all over the place(s). goto b
a:
no other places to goto exit
b:
Yes, it does require some thought to avoid confusion, and some pull requests get declined, but... Helps me alot when I have goto a
:exit2 -
Today I learned that right-shifting (a >> b) is just floor(a/2^b) and left shifting (a << b) is just (a * 2^b).3
-
Bait question: What's your style?
a) for ( ... ; ++i ) {
b) for ( ... ; i++ ) {
I am disgusted of b). a) for the win 😎18 -
A: "What's your address?"
B: "127.0.0.1"
A: "Srsly? I mean your real address"
B: "00.25.B5.AA.01.1F"2 -
That moment when you're hired as expert of technology A, and the first thing that is asked of you, is to do a PoC of tech A integrated with tech B... and then they assume that you are expert at tech B... and to be as fast as working on thech A2
-
More masturbation with numbers.
If you take some product p,
and do
√p**(1/p)
and it's factors
a**(1/p)
and
b**(1/p)
you might find something interesting.
Take for example
a=21977
b=43331
p=a*b=952285387
(√p)**(1/p) = 1.0000000108551363
a**(1/p) = 1.0000000104986928
b**(1/p) = 1.0000000112115799
More often then not, a, b, or both, will share one or two of the most significant digits in the mantissa, as the root of p.
It doesn't always work, but it seems to be true more often than you might expect.
This is probably obvious in hindsight but I still think it's cool.
In some instances if you then do, say
sqrt(log(p, 1.000000010)), it comes pretty close to the original factors, but thats really hit or miss.8 -
Needed to update one column in table A with data from table B (huge table).
Created awesome update query with join between the two tables.
A few hours later realized all data in table A is already being imported from table B in a query executed earlier in the process... -
if (a == 0 && b == 0) {}
or
if (a + b == 0) {}
What do you think is more readable? Is there any (performance) difference in the compiled programme?
For a and b >= 0.8 -
My favorate bookmarklet (ES6 only):
javascript:(()=>{var b,c,a=document,f="onreadystatechange",h="https://rawgithub.com/smore-inc/...=(p,q)=>{p.readyState?p[f]=()=>{"loaded"!=p.readyState&&"complete"!=p.readyState||(p[f]=null,q&&q())}:p.onload=function(){q&&q()}},k=()=>{clippy.load("Clippy",p=>{$(".clippy").css("position","fixed"),$(".clippy").css("z-index",1e3),p.show(),p.moveTo(100,100)})},m=()=>{(c=a.createElement("script")).src=h+"clippy.js",a.body.appendChild(c);var p=a.createElement("link");p.rel="stylesheet",p.type="text/css",p.media="all",p.href=h+"clippy.css",a.getElementsByTagName("head")[0].appendChild(p)};"undefined"==typeof jQuery?(b=a.createElement("script"),b.src="https://ajax.googleapis.com/ajax/...,j(b,()=>{m(),j(c,k)})):"undefined"==typeof clippy?(m(),j(c,k)):k()})();14 -
Hey y'all clever programmers.. If 'a' and 'b' are two equal real numbers, 'a' = 0.
a = b;
a^2 = a*b;
a^2 - b^2 = a*b - b^2;
(a - b)*(a+b) = (a - b)*b;
a + b = b;
a = 0;
😎 Prove me wrong9 -
Person 1 to me: Website C needs this update.
Me: I don’t maintain that site. I only maintain websites A and B. I don’t know who does maintenance for your site.
Person 2 to me: Website D needs this update.
Me: I only maintain websites A and B.
Person 3 to me: Website E needs this update.
Aaaahhhhh 😫😡4 -
A: Please build a Website for our new product.
A: Please use fancy technology, Animations and stuff!
B: OK, but $_things won't Work on mobile
A: mobile is Not our target audience. No Problem, optimize it for big Screens only.
B: it's 2017 - we need a mobile optimized Page, are u sure?
A: yes, so what i say
A week later...
B: hey a, here is Your preview. Optimized for big Screens, and i didn't Care much about mobile.
A: HEY B, YOU NEED TO FIX $FUNCTIONS ASAP!! THEY DON'T WORK ON MOBILE -
Mind blow of the week: JavaScript has no "else if".
It's always two tokens. Not one. It's NOT like python's "elif".
It's ALWAYS chaining an additional and DISTINCT if statement in the else clause of the first. It is NOT creating multiple comparison paths in the same if statement as it would seem.
For example:
if(a) console.log(a);
else if(b) console.log(b);
else console.log(c);
Simply needs more proper indentation to show which "if" the "else" actually belongs to:
if(a) console.log(a);
else
if(b) console.log(b);
else console.log (c);9 -
A) "Why did you do that?"
B)<typing>
A) "Hello? I'm talking to you..."
B) "Sorry, i missed to tag this Commit. please see the commit history for your questions. That's why i use the DVCS.1 -
http://a/b[]”s escaped with URI.escape aren’t necessarily valid input for URI.parse
URI.parse(URI.escape(“http://a/b[]”))
=> URI:InvalidURIError3 -
So I was asked to do a card redesign A/B Test
The results came in
Redesign performs 20% worse
PM’s report says “no significant difference, redesign approved”
He just wanted his redesign to be published
smh, why trouble with A/B Test when results are known faster than during elections in North Korea1 -
A: Is it raining today?
B: ... Is it raining today?
C: There's no rain in the forecast.
B: There's no rain in the forecast.
A: ...
Which voice is a computer?5 -
I’ve had meetings specifically for team A’s problems. Team B gets invited to assist. Within ten minutes the meeting was all about team B and none of team A’s problems were solved. “Team B” is notorious for hijacking meetings. I’m not a psychologist. I don’t feel qualified to speculate about WHY they do this...2
-
from Windows host->run Ubuntu container A
-> from Ubuntu container A, run Ubuntu container B
-> from Ubuntu container B, run Ubuntu container C
-> from Ubuntu container C, run Ubuntu container D
-> ....
Recursion-mode ON16 -
Q: What do computers and air conditioners have in common?
.
.
.
.
.
A: they both become useless when you open <b>windows </p> ;-)3 -
C# is getting so fucking obfuscated with these null check inceptions. Found the following in my company's code base. Why did it take me and 3 other devs an hour to figure out how to write this if statement into a flowchart?
if(!string.IsNullOrEmpty(a?.Id ?? b[0]?.Id))...😫😫😫
FYI: We figured it and also found some bugs with logic, but can you? I'll post our flowchart if ranters are interested.
So to add to the madness:
if(!string.IsNullOrEmpty(a?.Id ?? (b?.Any() ? b[0].Id : null)))...🤯🤯🤯23 -
A wild merge request appears. These are your options:
A. Spend 3 days of back and forth
B. Accept MR and fix it yourself later8 -
Erlang... variables you can't vary? WTF!
Writing JS two weeks later...
const a =1
const b = a + 1
Why would I ever assign over a? Pfft.
const c = b + 1
...1 -
App development in 2019:
1. Open app A
2. Open completely unrelated app B.
3. Scrolling in App B changes the sound in App A. Not raising or lowering volume, mind, but full on dropping samples and warbling the sound.
It's almost impressive how fucked up that is.3 -
Being asked to produce a graph for metrics a, b and c and then being invited to the two hour "a, b and c" meeting to explain what they mean to the people that asked me to graph them. That's rapidly becoming my "job description"...
-
Google search dark mode is available in some of my browser profiles but not others. A/B testing time again, I guess.4
-
You know just what I love my evening novel to be? Documentation of software, written by someone who clearly doesn’t understand what the fuck this is all on about. Literally created a cyclic paragraph (end of paragraph -> see also paragraph b : end of paragraph b -> see paragraph a) without having explained the concept at all.
Why just whyyy3 -
const obj = {
a:5,
b:25
}
const {...Object.keys(obj)} = obj;
console.log(a);
It would have been cool if that worked 😅4 -
if((fabs(a - 0.0) > 0.00001) ||
(fabs(b - 0.0) > 0.00001) ||
(fabs(c - 0.0) > 0.00001))
What have you seen dear traveller? What have you seen?2 -
{Poll} What's your preferred browser in #Linux?
a) Firefox
b) Chrome/Chromium
c) Opera
d) Vivaldi
e) Others (Add in comments below)19 -
Selected a cell in Excel, did a ctrl+b
WHADDAYAKNOW it crashed.
Next crash I will uninstall this fucking steaming piece of shit. -
When the idea of a split keyboard is awesome but you've programmed your brain to type "b" with your RIGHT hand....*face palm*
-
Thing<T>
Them: it's that thing<a>!
Me: actually it's this thing<b>.
Them: oh of course! Because of these reasons!
*Next day*
Me: it turned out it is was thing<b>
Them: oh so I was right! I knew it was thing<b>. I'm so smart you should listen to me more.
***********
Every day about anything. Why are people so annoying?3 -
Client A asks for Feature A. Devs start working on feature A. Client B comes in asking for Feature B. Management tells us to stop everything that we're doing to work on Feature B. Client C comes in...
We end up having tons of branches with half-finished features, and the product never improves1 -
Want to waste some time? Tell duplicity to
- - include /home/user/A/
- - include /home/user/B/
- - exclude /
and watch it backup only *part of* B.2 -
Management fixes our slow running buggy code problem by exactly copying every file into separate version control depots so that Dept A does have to deal with Dept B bugs and Dept B does have to deal with Dept A bugs to the same files.1
-
A="all bad recruiters, project managers, CEOs, CTOs, clients etc."
B="//replace A \"good version of {A}\""
1=A+B+"GIVE ME 1 MORE (DEATH) WISH EVERYTIME I GET STRESSED"
2=???
3=Profit -
Here's some delphi code where one random developer from the 80s tries to force an error
if k=N then
begin
Memo.Lines.Add('Error, [some info]');
a:= 0 ; b:=b/a; {Here we try to force an error}
end ;
Oh god :'( -
Fucking Eclipse at it again.
Colleague was setting up their IDE for working with the ABAP R/3 backend, we use. To speed up the process, colleague A is sending the zipped plugins folder to the new colleague B and telling them to put them into the directory of where eclipse is stored.
Like a good and neat person, B renamed the folder plugins into plugins _old and unzipped the other folder in there. Clicked on eclipse and nothing worked, Error message immediately.
B then proceeded to tell A that it didn't work. A then asked "how did you copy the stuff in there?", and B said that they backed up the original and put the new one in there (mind you, technically that should work, because the eclipse versions were pretty close to eachother, only like a few patches apart).
And then A said, "No No No, you need to just overwrite it."
So that's what B did. Okay so original plugins folder has been overwritten with the sent plugins folder. B clicks eclipse.
Eclipse starts, and shows loading screen.
For like 5 minutes.
Then crashes with sone random error message.
B asks A what's going on, and what cracked me up was, that A just said: "Yeah, it's supposed to crash, just restart it".
So B clicked it again, it launched for another like 5 Minutes and then opened normally, with everything where it should be.
B asks then, if that's normal, and the other devs in the call replied "Yeah, we did it like that too"
ngl, that was one of the funnier teams meetings i had in a while7 -
Launch modes in Android?
Standard: It creates a new instance of an activity in the task from which it was started. Multiple instances of the activity can be created and multiple instances can be added to the same or different tasks.
Eg: Suppose there is an activity stack of A -> B -> C.
Now if we launch B again with the launch mode is “standard”, the new stack will be A -> B -> C -> B.
singleton: It is the same as the standard, except if there is a previous instance of the activity that exists in the top of the stack, then it will not create a new instance but rather send the intent to the existing instance of the activity.
Eg: Suppose there is an activity stack of A -> B.
Now if we launch C with the launch mode as “singleton”, the new stack will be A -> B -> C as usual.
Now if there is an activity stack of A -> B -> C.
If we launch C again with the launch mode as “singleton”, the new stack will still be A -> B -> C.
SingleTask: A new task will always be created and a new instance will be pushed to the task as the root one. So if the activity is already in the task, the intent will be redirected to onNewIntent() else a new instance will be created. At a time only one instance of activity will exist.
Eg: Suppose there is an activity stack of A -> B -> C -> D.
Now if we launch D with the launch mode as “single-task”, the new stack will be A -> B -> C -> D as usual.
Now if there is an activity stack of A -> B -> C -> D.
If we launch activity B again with the launch mode as “single-task”, the new activity stack will be A -> B. Activities C and D will be destroyed.
SingleInstance: Same as a single task but the system does not launch any activities in the same task as this activity. If new activities are launched, they are done so in a separate task.
Eg: Suppose there is an activity stack of A -> B -> C -> D. If we launch activity B again with the launch mode as “single instance”, the new activity stack will be:
Task1 — A -> B -> C
Task2 — D1 -
I finally managed to get my Wireguard setup to work in both ways! Beforehand I could ping from A to B, but not the other way around.
A network 10.1.0.0/16
B network 10.2.0.0/16
(both actually use multiple /24 subnets, but I reserve a /16 for each site for the sake of simplicity)
Lots of fiddling later this is my configuration:
A interface 10.1.199.1/32
A allowedIPs 10.2.0.0/16
B interface 10.2.199.1/32
B allowed IPs 10.1.0.0/16
ping from 10.1.1.1 to 10.2.1.1 => 172ms
ping from 10.2.1.1 to 10.1.1.1 => 172ms
it works, yay! now to add more sites...2 -
I needed to rewrite pagination from:
A) 1 ... [3] 4 5 6 ... 13
B) 1 ... [4] 5 6 7 ... 13
To:
A) 1 2 [3] 4 5 ... 13
B) 1 ... 3 [4] 5 6 ... 13
And the maths got me a headache3 -
I have a solution in mind and it’s really not that complex but my brain just doesn’t want to connect all the pieces..
When I think about component a and b, then c and a don’t work together. So I come up with a solution for a and a but then b is loose again..
I think I’m getting old🤕8 -
A : Why don't we remove this feature ?
B : We might be needed in the future.
A : You have to stop think what we might needed in the future with our current state.
............
(After several conversation)
B : So, should we replace X with Z ? Since we only need the X
A : Don't, I can see we might use Z in the future.
:)1 -
I Have 2 Questions.
A. does anyone here look down on webdevs?
B. Any Good project Ideas (For Electron.js)12 -
A)
const gulp = require("gulp"),
sass = require("gulp-sass");
OR
B)
const gulp = require("gulp"),
const sass = require("gulp-sass");
I use A14 -
University can be a b*tch. What if you could turn MP4, pdfs and pptx into digestible notes (Obsidian)?4
-
So the last two weeks Ive been trying to flash lineageOS on my new OnePlus6. Ive done multiple phones with custom roms without issue, but the new A/B partitioning makes it a lot more impossible.
I followed LineageOS their official guide for the phone twice and also suggestions from both OP subreddit as LineageOS subreddit.
After every fail I end up with a black screen and a blue LED, both when booting the OS and when booting TWRP from fastboot. Then Im doing a factory reset through a windows only tool and start over.
Im getting pretty frustrated, to a level I am almost saying FUCK it I will use google, since my current phone only works while connected to a charger. Since I really hate google I hope any of you can give a suggestion of flashing my phone.10 -
Dev programming something
Code reviewer: Change x, change y change a to b
Dev: okay ( I don't give a f**k, just merge my code)
Dev made changes...
Code reviewer: why did you placed b instead of a, can you revert back x...
Dev: F**k u!!
Have u guys experienced this??1 -
[EXPLODING BRAIN]
[1]
cout << a << b << endl;
[3]
cout << a + b << endl;
[3]
c = a + b;
cout << c << endl;
[4]
d = b + "";
c = a + "";
cout << c << d << endl;
[5]
d = b + "";
c = a + "";
e = c + d;
cout << e << endl;
[6]
a = "a";
b = "b";
c = pl;
d = pl;
c = a;
d = b;
e = c + d;
cout << a << b << endl;5 -
TLDR: Decision making is hard...
Get up at 7am, weather looks crappy but need go to the Drs today in NYC.
Original plan was to spend the morning in the park catching up on my reading list. Don't really want to goto the park now but lunch is still good? (Appt at 4pm, was only one left)
Walk into train station, pay for ticket. Get email from Drs saying he's sick...
Oh good... Except I already paid for the ticket.
Decide it's not worth it since weather is crap.
Walk out the station and... it's sunny... Fck...
Now what.... I can either go home and code or go shopping locally and eat out.
Currently decisions these and well shopping and eating out are also hard decisions... -
Always have a roll forward plan, backups, and a site B. Especially if you think it is a non critical system.
-
Which one will be a better user experience ? A or B ?
0:
A ) user scrolls in the main activity for most of the features
B ) user selects very basic features in the main activity and finds the others in the sub menu
1:
A ) long text in one page
B ) shorter text in number of pages
2:
A ) brief walk through at the beginning
B ) very clear and detailed labels
C ) complete help section
3:
A ) separate rating section
B ) ask the user for rating every time till the user rates or presses dismiss
4:
A ) inappropriate billing
B ) show ad11 -
Poll time/input requested. Multiple assignments in one statement: yay or nay? For a (painfully) simple example:
a = b = true;
vs.
a = true;
b = true;7 -
For some reason when creating my account i wrote PetarPeychev as username but got Petarpeychev somehow. Then I tried changing the capitalization but it didn't work cuz apparently the name is already taken (by myself?). So I thought about doing the ole' c=a; a=b; b=c; and now I know about the 6 month restriction...
-
After learning programming language, Which one earning source is the best one?
A) YouTube
B) Freelancing
C) IT Job
D) Own Business38 -
A: Do you know Big O?
B: Yea I know Big O. Who doesn't know Big O?
A: So what's the Big O of X?
B: It's ....
A: Oh what about Y?
B: Oh that has a bigger Big O.
A: Hm... how about this one?
B: That's a really big Big O. Why not use mine?
A: Ooh that looks impressive, very small. So which Big O should we use?
B: Well there's a constant trade off, even though small is good, in this case I think the bigger one works better.4 -
Alright ya clever kids, what's a possible value for a and b here in this JavaScript type insanity:
> a == b
true
> !a == !b
false
> !!a
true
> !!b
false
> a == b
true14 -
What are the origins of your usernames?
Mine is a contraction of B(ack) Rolls from the legendary Alyssa Edwards.6 -
The importance of clear and specific communication:
"We're seeing unusual amount of failure X on products A and B"
Me: "Can you send me 50 samples for triage?"
My expectation: 50 in total, mixture of A and B
Reality: 50x A and 50x B1 -
A-level results lads out tomorrow, got an A, B, B & C in Geography, Maths, Chemistry and Physics, think it'll be good enough for a CS degree at Edinburgh or Queens?6
-
When white space isn't that significant.
disc=b*b-4*a*c;if(disc<0){
num_sol=0;}else{t0=-b/a;if(
disc==0){num_sol=1;sol0=t0/2
;}else{num_sol=2;t1=sqrt(disc/a;
sol0=(t0+t1)/2;sol1=(t0-t1)/2;}}2 -
Company A (mine) is building a site for company B, company B employs company C to manage their inventory database, company C exports inventory as JSON to company A, company C says, this field (SKUs) will be an object (skus = {...}) when it only has 1 value, but an array (skus = [{}, {}, ...]) when there are multiple SKUs, company A (me) tells company B to tell company C to ensure it's always an array.... company B is scared of company C and company A (me) is always cleaning up company C's shit6
-
Lodging a ticket in system A...
Citing the ticket number from A to access the password in system B...
Using the password from B to log into database C...
Then doing our work in C, in which all our DDL and DML permissions have been revoked. -
Story about someone elses rant
A = coworker;
B = random guy from company, but from another office;
C = manager we like a lot, cause he has IT background;
A asked B about a problem, because B worked with the that thing. B answered I dont know. So A asked C, and told him, im asking you, because B said, he dont know. C went nuts and pulled a shitstorm on B, like who WTF do you think you are, that you cant give at least a hint to A on the problem or Cc someone who may know more about the problem.
what i wanna say is, shouldnt it be common sence if someone asks me about a problem i navigate him to a person, who knows more than me? Even if its the first day i the office, I know this is my team leader he should see the bigger picture of the problem, so ask him. But telling idk is like, go fuck your self. -
Option to add on profile, tabs or spaces.
Windows, Mac, or Linux
Same line { or next line
4 space tab or 8 space...
Also, I think it would be cool to introduce polls. Simple "Should I take a) a job with x or b) a job with y" and people could click a or b in addition to comments.1 -
I created an application A which was faster than B. As the authors of B created a repo for benchmarking and mentioned
'Do you know other Bs? PR! :D'
I created a PR in Apr.
it is not accepted yet.4 -
PR (tested)
-- if(a){ x(); }
++ if(a && b(x)){ x(); )
Reviewer: what if a'?
Me-think: but da'/dx not defined, :'(4 -
Looking through Java tests, cause I need to pass one for job. And every one of them has a question like:
What's the result of:
boolean b = 42 >= 1024;
if (b = true) System.out.print(1);
else System.out.print(2);
And each time I answer like there is (b == true) and not (b = true).
Cause no one in real life would write = in if statement. Why do they put such question in each and every test.1 -
This is how my macbook keybboard writes the letter "b" it’s not happening all the time though, sometimes it outputs b and and other times bb, wtf I only pressed it once. And it's happening randomly, fuck this shit, I cant even take it to apple customer service and leave it there for a week or more. I guess I'm living with it and don't bbother fixing it. fuck b errr6
-
Looking into Kotlin, and it seems pretty cool, but I just can't get over how unnatural and annoying the mapOf syntax is.
In JavaScript: const obj = { a: 1, b: { c: 3, d: 4 } }
In Kotlin: val obj = mapOf("a" to 1, "b" to mapOf("c" to 3, "d" to 4))5 -
Yo Yo Yo . How is the weekend going? Plan A , Plan B?
Previous Week : https://devrant.com/rants/851737823 -
My first function which I wrote 3 years ago..
Adding two numbers in JavaScript.
add = function ( a, b ) {
Return a + b;
}
What's yours ?22 -
** few years ago **
Other team: "There's a lot of overlap and misclassification between issue categories A and B; We want to merge them into one in our taxonomy"
Me: These are very different issues and have very different root causes. Shouldn't we fix the definitions instead? We don’t have major drivers for B now but if we remove it, it might bite us in year or two.
** loads of back and forth, and eventually B gets killed
** year and a quarter passes
Executive meeting: “So you’re telling us we can’t properly quantify the impact of B because we can’t distinguish A from B. It looks very clear cut to me why don’t we have split for these already and how long will it take to implement it?”
Me: Biting my tongue not to throw anyone under a bus. -
I have to choose to accept an internship offer for dev role between company A and company B (potential PPO at both).
Company A: Unicorn startup ~3000 employees. A disruptor.
Company B: Early stage startup ~30 employees but has funding and all. Also, sounds promising. Loved their interview process.
Both are interesting to me and pay almost equally. Any inputs ranters?8 -
String s = "Rant";
boolean b = true;
if (s != b) {
System.out.println ("Sometimes i hate LinkedIn, so many recruiters or companies have meaningless descriptions.. why should i even apply for a job, if they don't describe their offers, specs and so on"
}4 -
Debugging a feature that has a reciprocal effect on an other feature is like being given the task to make a toggle switch perfectly flat.
"Oh look, I fixed that bug in feature A. But fuck, now there is a bug in feature B. Perfect, now the bug in feature B is gone. Ah crap now feature A is broken again"
FML -
If Company A owns company B & C. And profits from Company B were used in the incorporation and development of Company C.
Can company C list company B as a sponsor and partner along with the other sponsors? Or will that be automatically established if they're under the same parent company?
company B and C are listed and registered as independent companies and provide different services but both provide internet services.1 -
So am working on an existant project that many developers worked on previously.
While I'm debugging through Blisk, I get a weird message and I decide to check source code and it appears that it was like :
console.log('<b>'+username+'</b>') ;3 -
Ok so I got namespace N.
And namespaces N\a and N\b.
I would like N\a\foo() to call N\b\bar().
But no matter what I do it says \N\b\bar() does not exist. What am I doing wrong??
I've tried including, using, requiring but nothing.8 -
Its everyones favorite time again. Wisecrack's 8th grade hoborants about mathematics.
Lets start with the example
a=89
b=223
p=a*b=19847
If
(1/(5/p))/b = 17.8
and naturally
p/5 =3969.4
3969.4/b = 17.8
What I find interesting is that...
p/17.8 = 1115.0
..for any product and factors (given two factors), the result will always be an integer.
Why is this?
You can see that
t= 1115.0*b = 248645.0
And if
17.8*(p/a) = 3969.4
Then
17.8*(t/p) = 223.0 (our factor, b)
a*(t/p)
1115.0
p/1115
17.8
also a*(t/p) = 1115.0
I could be once again misunderstanding but
what it looks like is that theres some real number that always transforms p into an integer on the ring of integers (Z) representing multiples of the factors of p.
Now notice
b/17.8 = 12.52808988764045
We can also get that number like so..
t/p = 12.52808988764045
I think (though I could be mistaken) is that the reason is because t is b*1115 and 12.52808988764045 is the ratio between b and 17.8 as well as the ratio between
p and 1115.
And if we do
t/√p = 1764.9495488858483
1764.9495488858483^2 = 3115046.9101123596
also incidentally
3115046.9101123596/t =12.52808988764045
3115046.9101123596/12.52808988764045 =
t (this is obvious but I want to point it out anyway), or 248645.0
and
1115/b = 5.0
248645.0/5 = 49729.0
and
√49729.0 = b
Why is this last part true, that √(t/5) = b?11 -
Is it normal that my lead developer insists that if(x){return A} else {return B} must be changed to if (x){return A} return B, and a variable must be renamed from requestFn to requestFunc because the former is confusing?12
-
Degree is still on the way.
But once i have finished it'll help me do something like
std::cin>>a;
syd::cin>>b;
int sum = a + b ;
std::cout<<"sum of both numbers is:"<<sum;
My degree tells me that it is the most useful way of solving real world problems. By using c++ to cout statemens on terminal can solve all problems of a corporate company.1 -
Is it possible to record the time a thread spends processing only it's code?
E.g. capture sys.ms in thread A -> A is sliced and thread B runs -> B is sliced -> A comes back and captures current sys.ms. The resulting delta of Anow - Ainit includes the time that B spent on the machine.
Is it possible to account for this and get just the time A spent processing?
Is this doable on any other languages?
If it is or isn't, any documentation or papers explain why is appreciated. Google is flooded with "how to time" questions so I'm not seeing any answer for this.7 -
Let some number P be the product of two factors, A and B
Let the iterations of A*1..2..3..N up to B+1 be a directed graph.
Would this graph be eularian?
If so then it should be possible to use the BEST algorithm to count the number of eularian circuits, yielding B, no?
Edit: this is supported by the following text:
An arborescence can equivalently be defined as a rooted digraph in which the path from the root to any other vertex is unique.
* * *
Where the product of any two primes is unique, the path to it across our graph here, is also unique. -
Today my teacher assigns a project before final exam. He says to think an idea for a site and realize it. Okay I think a vacation site and this is my problem, I want to build a search bar when a user digit a city and the system respons with a list of hotel and B&B in the city, but I don't know how tu build the bar o.O
Any ideas?4 -
On the office we have began to discuss which is best practice in a REST API when reference other objects.
Things like:
A)
```
{
"id": 1,
"field1": "value1",
"referenced": <id>
}
```
or
B)
```
{
"id": 1,
"field1": "value1",
"referenced": {
"id": <id>
}
}
```
I prefer B. What do you think?4 -
Why useImperativeHandle in React is bad?
I have component A. I have component B which is a child of A.
I have button in component A that should change how component B is displayed.
Usual approach is to set state in A, change it upon click and pass that state as flag via props to B.
But there is another approach via exposing ref to component B using forwardRef() + useImperativeHandle().
And then calling method that belongs to B from A. Like this: bRef.current.changeDisplay()
https://stackoverflow.com/questions...
https://reactjs.org/docs/...
https://github.com/reactjs/...
People on SoF and Docs say that the first way is preferrable. But no one explain why.
Does anyone know why calling child method from parent is considered bad?4 -
I’m in the process of doing interviews and company A seems to like me - however company B just booked an interview for me. If company A calls me back for a job offer, what’s a reasonable time frame to give them my final answer?
Just in case, I want to keep my options open for company B depending on their offer.1 -
package main
// go is very frustrating. in their efforts to keep the language simple, they've broken its consistency :(
// A A is just some arbitrary interface
type A interface {
Foo()
}
// B is an interface requiring a function that returns an A
type B interface {
Bar() A
}
// Aimpl implements A
type Aimpl struct{}
// Foo is Aimpl's implementation of A
func (a Aimpl) Foo() {}
// Bimpl attempts to implement B
type Bimpl struct{}
// Bar is Bimpl's attempt at implementing B.
// problem is, if Bar returns an Aimpl instead of A, the interface is not satisfied
// this is because Go doesn't support implicit upcasting on returns from interfaced objects.
// if we were to simply change the declared return type of Bar() to 'A', without changing
// the returned value, Bimpl will satisfy B.
func (b Bimpl) Bar() Aimpl {
return Aimpl{}
}
var _ B = Bimpl{}
func main() {
}2 -
A && (B || C)
Is there any way to get rid of the parenthesis?
I know how to remove the OR but the parenthesis are still there:
A && !(!B && !C)18 -
How to keep an imperative programmer busy for hours?
tell them the syntax for swapping two variables in Haskell is:
let a=b; b=a in <exp>3 -
When you need to upgrade an Oracle CC&B project on a minor version change and Eclipse shows ~1500 java.lang.ClassNotFound exceptions
Bonus points: when you need to upgrade a CC&B project with thousands of COBOL lines in its extensions to CC&B 2.5 -
Can you start services manually when using docker compose?
As in having container A, B and C with an executable A, B and C (originating from the same source btw) where I can start/stop A, B, C independently?
All examples seem to use it as a whole thing where all containers must be up for the service to work.2 -
Hey people, ive had this question and it had been bugging me for a while now. If A^B, then A, if AvB, then B. What does that? What kind of problem is similar to this problem? Also, it it a contradiction, if so, what kind of contradiction is it? Does it have solutions, if so, what kinds of solutions?1
-
On Linux I want to scp a file from Machine B to my machine A.
Assuming B allows all connections is any key/cert file exchange needed?
I recall whenever I SSH to a new machine I need to accept a key on the first connect.
Guess general question is what is the connection process between 2 Linux machines for sftp purposes?9 -
A: Do you want to hear a joke about TCP/IP?
B: Yes, I would like to hear a joke about TCP/IP.
A: Are you ready to hear the joke about TCP/IP?
B: I am ready to head the joke about TCP/IP.
A: Here is a joke about TCP/IP.
A: Did you receive the joke about TCP/IP?
B: I have received the joke about TCP/IP.1 -
We are migrating database from A to B. I am developing software for B side.
I am glad that there is only one B database instance. More excuses for long breaks when it is down for creation from start that takes 30 min.
I requested a database B copy for development purposes. Company is not that “agile” for such things. There is no feeling of guilt on my side.2 -
1 - Correct me if I’m wrong, but in true Agile, a product owner ought to be able to interact directly with the dev team, and vice versa, in the card/conversation/confirmation process of creating, estimating, and executing the user stories, correct?
2 - If Company “A” contracts with Consultant “A” to have software developed, and then Consultant “A” then contracts with Company “B” who then contracts with Consultant “B” to do the development, who would you define as the Product Owner?
3 - If Company “B” is barring Consultant “B” from talking with Company “A” and Consultant “B”, is Agile even possible?7 -
Which type of clients you preferred?
A) Technical ( who know how to code )
B) Non Technical ( who dont know shit about code)4 -
Somebody knows how can I create a text editor like that of forums or similar?
I would like to create a textarea with a bold button that put <b> and </b> at the start and at the end of anche hilighted text, but I can't figure it out. -
Coding. Literally.
When I start working on project A I often end up working on project B after some time. -
I JUST WANT TO FUCKING EXCLUDE A DIRECTORY....
I run the code cleaner tool, OH CHRIST it's trying to sanitise the automatically generated code, I don't want this.
I try to exclude... takes ages to work out that while specifying the dirs is absolute you can only exclude relative but from what? I want to block a/b but not a/c/b but no it's all you can only block all b b it a/b, b/b, c/b, c/b, a/c/b, etc.
I google for other solutions, nothing but trash, docs a trash, here's some examples but we don't tell you the actual behaviour. All I want is to get everything in /home/hilldog/emails but not /home/hilldog/emails/topsekret how hard can it be?
I use the source but what's this, BeefJerkyIteratorIteratorBananaSpliterator all over the shop how much convolution and LOC does it take to provide a basic find facility?
Screw this...
$finder->in(explode("\n",trim(exec('find '.escape_args(...$good).' -type d ' . implode('
-o ', prefix('\! -wholename', escape_args(..$bad))) . ' -etc | grep -vETC \'pretty_patterns\''))))3 -
What kind of developer you are? What you write first LHS or RHS while assigning values?
Step 1: a+b
Step 2 : const a = a+b;
or
Step 1: const a;
Step 2 : const a = a + b;23 -
PostUserStreamPost
Action: post user stream post
Fields: All fields are required
A: which fields?
B: no, they are not all required -
My question is"which value of 'a' and 'b' will give me output '1' not '0'?
C language's code is below here
#include<stdio.h>
int main()
{ float a=1.2,b=10.7;
printf("output is = %f",a&&b);
Return 0; }16