Abouti can do codes and stuff
Skillscodes and stuff
Joined devRant on 8/25/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
How many people have testers as part of their dev cycle?
How are they used in your organisation? And whats your opinion of hacing them?
Do they give you confidence in your work? Or do they slow your delivery down too much?2
I think ive given up on caring about the code base I work on. Everyone just wants to take the easy solution, even if it couples everything together, and makes life hard in the long term.
We're introducing two new products in our system soon. Each product being added by a different team. But both teams think its a good idea to reuse same existing event in the system, rather than introducing two new events.
So this event, originally designed to represent the creation of a certain type of personal loan, will now also refer to two other kinds of loans that are totally unrelated to each other.
Yes. This will make the system nice and intuitive. The business will never ask for seperate reports for each product. Ill never be asked to work out what event means what. This wont break any existing infrastructure. This will be fine.3
Forgive me Father for I have sinned.
I pushed a half a dozen powershell scripts to a public repo, one of which contained the plain text user and password to our sendgrid test account. Which was apparently noticed by sendgrid, who promptly disabled all of our accounts, and interupting our prod communications domain 😐6
I dont think i have a bad data loss story...
But there was this one time where I had months of files built up in my bin, which I decided I wanted to get rid of entirely.
I may have hit the Restore All Files button instead of the Remove All Files 😭1
One of our senior devs sent out a group email to the devs who help with support, of which im one, saying theres plans to increase the on call roster.
Participants would be on call 1 week day, and 1 weekend day every three weeks, from 4:30am to 8:30pm, and 5:00am to 5:30pm respectively.
Compensation would be in the form of 20% of the normal rate for being on call, and 100% pay for time spent resolving an issue.
Is that worth? Or is that trash?
Should I avoid being on call like a plague?
Do people usually receive compensation for time if they arent resolving issues?
As a grad, my usual rate is pretty low. So 20% of that is like $7 an hour. Is that worth waking up at 4:30am for?2
Im currently in Japan, and while I was away, I left my cat in a cattery to look after her.
Ive just been told by my mum that apparently the cattery lost my cat for 4 days!
My mum and Dad had to leave at 1:30am for a 6 hour drive to Perth to help find her!
I literally cant process the level of incompetence right now!4
Write out a question to someone in slack
Proceed to answer my own question before sending
"Hey, did you try sending me a message earlier? It said you were typing.."
Customer asking about our range of phones...
"Do any of them run on electricity?"
Wut? You're trolling me, right? Right?4
I wrote a test called IdentificationCheckIsNotTriggeredWhenEmailIsChanged - And I keep imagining the Id check shouting Patriarchy! at the dialog view model for changing the applicants email :P
I have 2.
1. Accepting to do a freelance project without pay because the client was my bosses friend.
2. Getting tired of the project 3 months in, and not wanting to do it anymore, but not having the courage to end the project proffessionally. So after 5 months of being unproductive, I simply abandoned the project and stopped replying to the clients emails. He would continue to try and contact me for another 4 months before he concluded I wasnt coming back.1
Which would you choose?
Duplicate code which gives you the freedom to change a single implementation later?
Or merging three functions which are almost identical in how they're written, but are still three distinct use cases while seperate?
If we merge code, is saving on duplication worth the cost of seperating things later if requirements around a single use case changes?
If we keep things seperate, is the flexibility of changing with ease, worth the risk of a single bug duplicated across multiple implementations?9
I suck at unit testing. I really fucking suck at it.
Every time I try to write a unit test, I think to myself, what the fuck am I doing? How does this even work? What am I testing? Why do I need to new up 100 dependencies? how do I test this private behaviour from the boundaries of my object? Can I even substitute a Factory delegate? Does that even work? What if my object needs a dependency to have certain state? How do I mock that?
Does anyone have any good reading material to make me not shit at writting automated tests?7
My old boss knew that, since i had finished my CS degree, I was looking for a software dev job, so he introduced me so a lead dev at a consultant company, who in turn introduced me to a bunch of people, one of which offered me a interview and hired me :P
Does anyone else just feel so exhausted and agitated after lunch? Like they need to just go home and take a nap? Zzz4
What do you guys do when youre sick to death of working on the giant ass monolithic code base with no documentation a million layers of abstraction and breaks everytime you sneeze on it?7
We have this stupid library at work. Its called Randomness, and its basically just a wrapper over the standard .NET System.Random class to help our devs generate random data for unit tests easier.
Debate about random data in unit tests aside.
I came across a bug in randomness. Theres a PickFrom function which gets passed an array, and returns a random element from the array. Problem is, it uses Random.Next to do this, and the max value was set to the array length, minus one.
Random.Next generates values inclusive of the min value, and exclusive of the max value. Arr.Length-1 as a max value, is wrong, the last element in the array would never be selected.
So i fixed it.
And proceeded to break dozens upon dozens of unit tests that were now testing from their full sets of data, and had actually been faulty for god knows how long.9
Just curious. For those of us working on event sourced systems. How many events do you have in your event store?
I checked ours just now, and we have 4.5mil+
Is that a lot? Small? Average? idk.