Details
-
AboutCreating bugs from features because why not?
-
SkillsFull stack, blockchain, AI, IoT with machine learning and html developer guru, sometimes I'm a rockstar developer but meh....
-
LocationUnderground
-
Website
-
Github
Joined devRant on 2/17/2017
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
-
Domain Drive Design question:
I am working on a simple case to teach how to apply DDD, my case is as follows:
Simple forum with Author, Moderator and Users.
I am using Dotnet core for this. I am not sure how and where I should implement authorization:
1. Author can edit his posts only
2. Moderator edits any post
In dotnet core, we handle roles, policies in the api layer, and its per endpoint, I have an identity layer which handles accounts, registering roles and policies in database.
But I'm not sure if I should or how to handle authorization based on permissions in application layer.26 -
I used to be a fan of Google designs but that all white shit is just too much, the developer console (aka Play console) is annoying and less organized and blinds my eyes!4
-
I give up. I am having trouble understanding Go lang *, & stuff.
attached code does print what fmt.Println has, but the function calling: FindByID is throwing invalid memory address or nil pointer when it attempts to use the result of the code.
Can someone please explain where I'm wrong?
Error log blames the line of "if" condition even though fmt does print its output to console16 -
Where can I find good golang documentation? This is not helping me :\
https://golang.org/pkg/syscall/...5 -
Any way to increase tab font size in xcode 12? Or Apple only gave an option to increase navigator font size (well three options instead of customizable font size .... but at least I can now better read dir tree of my project lol)
-
I'm starting to get sick of working with handed over projects that previous devs think they are masters of programming and their code is nothing but pure chaos ....
I'm given a project written in Java & Swift, API class is initiated a million times in same view, has access to android context, custom font is applied by creating custom text view instead of applying customization in styles file ....
Still haven't yet looked into iOS code but I'm not expecting much ...
Sometimes I wonder why I chose working with code6 -
Was working with Swift lately, we no longer have: x++ in Swift, and I wrote rowIndex += 1, and go-lint was not happy about it ....7
-
I signed up to a website, and my password contained & symbol, got an error that password cannot contain that symbol, I thought we are way beyond vulnerability of SQL injection?
Or that symbol can be used for some other attacks?5 -
Not sure if I'm making a mistake or what, but in Kotlin:
10 % 30 = 10 🤔
Shouldn't it be 33333...?
No matter what numbers I use it always returns the left hand side of the equation 🤔19 -
I have an odoo instance inside docker. Long story short, I was checking visitors of my instance and I saw this:
http://0/
What is this?9 -
I'm thinking of buying: Design Patterns
Elements of Reusable Object-Oriented Software
Those who read it do you recommend it? If no what are other software design/arch do you recommend?7 -
I cannot believe its 2020 and I'm reading: Customize font size for navigation items & tabs as "New Features!"
From Apple:
With an all-new design that looks great on macOS Big Sur, Xcode 12 has customizable font sizes for the navigator, streamlined code completion, and new document tabs5 -
Android studio v4 released. I'm afraid to update, when I upgraded to v3, took me few days to fix my project to build again >_>
Anyone updated and can share their experience?2 -
Google is so desperate in getting into video conferencing ....
I had Duo disabled on my phone since day one, today I woke up to see it was renabled and updated to latest version ...
Thinking for rooting this thing and taking back control of my stuff even though its just an old testing phone -_-17 -
I like how google is trying to catch up in the competition of video calls, and chat...
I have a Gmail account & work email is on Google G-Suit, every time I access one of them that Google meet popup shows in a desperate attempt to make people use it ....15 -
I just setup a new VPS
I made all configuration required
I reboot the server
I forgot which port I set for ssh 😭
Luckily I have console to access from 😅14 -
Can someone please explain the benefits of this in Kotlin:
var x = if(a !=b) {
z
}else{
y
}
Even for a conditions with one line body it looks bad in reading and getting a clue of what does this do.
I mean whats wrong with:
var x: MyObject
if(a!=b){
x = y
}else{
x = z
}
Even in switch cases (or as kotlin calls: when) True one return source, but now good luck finding the last line that is the actual returned value ...16 -
Updated to Xcode 11.4, now git doesn't work and I need to download 1GB of Dev tools to get it working.
Xcode alone is 8GB wtf is included there if I still need to download more tools?2 -
Q: Tell me about the app you made
Candidate: ahh...umm..tooot.toot
They make me feel like they just copy paste code to get the working version.
I feel bad when see people like this, collage costs a fortune and yet they don't teach students how to start and organize requirements6 -
I decided to start learning Rust, mainly to work with REST API's, any recommendations? Or do I look out for another language?14
-
Microservices
Lets take an example: Products service & orders service.
When I want to save an order for a user, data saved as
1. UserId, ProductId, Quantity, Date
Or
2. UserId, Name, Email, ProductId, ProductName, Quantity, Date
I'm a bit confused here because if I'm going to fetch that purchase, in example 1, it will return IDs requiring another trip to server to get user & product info
In example two it takes only one trip BUT if any changes is made to either user info or product info it means I'm returning wrong info to the user.
What do we do in this scenario? Excuse my questions first time applying Microservices and been using monolith all my life6