Siniša Nimčević (@SNimcevic) header
Siniša Nimčević (@SNimcevic) profile picture
Serbia
Joined November 2015
🚨 NEW ARTICLE ALERT 🚨 Huge thanks to @trickydisco78 for being an #xstate apostle and getting me familiarized with @DavidKPiano 's awesome lib. #javascript #webdevelopment #FrontEndDeveloper #redux #reactjs #programmingisfun (again) medium.com/@sinisa.nimcevic/…
2
1
11
Being harsh on an MR isn't gatekeeping. Gatekeeping is commiting bad code that the newcomers will find even harder to read and mantain 🧐
2
Metrics are useful when talking methodology of writing a codebase - "I think it looks better" is not a valid argument
2
What cognitive complexity mirrors is intiuitive difficulty of understanding code at first glance. It's a topic well worth the read...
Cognitive complexity >>> cyclomatic complexity. Get your metrics right and start writing better code
It's not code golf. I'm supposed to read that code at a glance
Boolean() is better than !! and Number() is better than + Fite me #js folks.
3
1
Me when they ask me about the current political situation:
I have just found out that when the baby is fussy I can get the dog to sit in front of her, and that puts her to sleep. I probably have the most boring dog in the world.
1
After fiddling around with alternatives, still think this is the way to go: #problem > I don't want to accidentally commit changes to a file I have to fudge in order to get a response for my task #solution >
4
Why am I only now hearing about git update-index --assume-unchanged src/myfile.ts ?? It stops git from tracking a file you're changing just to rig a response. Stops those accidental commits that you forgot to undo on Friday. Reversible with --no-assume-unchanged...
1
7
Siniša Nimčević retweeted
59
798
29
719
Learning a bit of PHP for some Laravel tasks - observing some paradigms and architecture concepts carry across languages feels super nice 🥸
1
3
Working hard or hardly working
5
Rember getting railed by a former Amazon dev at code reviews. Made me a lot better in the end. Plus I liked the guy so I figured he just wanted a more uniform code base.
3
I get that it's a joke but these things still piss me off. The answer is "no", but also, I don't spend my days pandering to an imaginary 8 year old, so I'm quite happy to sit through that call if it supports my family.
1
1
12
The dependency inversion principle is best understood through a lack of it. Way back before OO friendly languages you had to include logic directly - dependency was explicit. Bring in interfaces and suddenly you're coding towards an abstraction - the dependency is "inverted".
1
2
That's roughly that, without mentioning the "flow of control". So you're no longer depending on top level logic, you already write top level logic towards a somewhat "lateral" interface - a contract both parties sign, gaining independence for their implementation 🙃
2
#AndJustLikeThat after a good 10 years in the biz, I finally read a good explanation to the ins and outs of the Dependency inversion principle. Thanks Uncle Bob.
3
Reading Uncle Bob's "Clean Architecture" so I can write scss with magic numbers in it with added guilt.
3