SkillsC#, C++, Java, Kotlin, Python
Joined devRant on 10/3/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Google did it again. Damn.
Create a project in flutter -> Android code AUTOMATICALLY GENERATED is full of errors that i can't even fix.
One of the biggest tech companies, 2020.7
I'm working on a project using Flutter, a framework made by Google.
And of course, as every product of Google, is full of bullshit.
I was creating a theme for this app and I had to styles some texts. I whis I never tried it.
There's a plethora of attribute: headline, body, title, ecc. For each of them there are many types: headline1, headline2, headline3 and so on.
So I checked the documentation, because of course i had no clue on which one I should have used.
And again, the documentation is made by Google: full of bullshits.
They don't event tell you which one do what. So now the best thing to do is to create an entire project just to figure out what the fuck each of them does.3
What you're about to read is an horror story based on real facts.
Our story begins one week ago, when a dev who calls himself "Arfmann" (what a loser, the f* means arfmann?) decided to take his dev skills to another level.
He always has been scared of databases. He made really bad dream about them. Like, they were screaming at him "SELECT useUs FROM database" while he was crying in some shared preferences noises.
A week ago, he decided to overcome his fear. He learned the basics of SQL. Everything was going well. Until, he decided to implement it on Flutter. A Google's technology.
At first, he decided to appeal to documentation. Went on Flutter web site. Flutter documentation. Sqflite documentation. Started reading. Started doing tests with the code written by Google's engineer.
Everything was fucked up. Dozens of errors, the documentation started to blow up and his PC went on fire, due to Android Studio.
He used a sample project made by Google's engineer. "Maybe if use directly their code it will work. Maybe I was the problem". He wasn't.
The whole documentation was wrong, every single line of code was a spaghetti code (yes, every single line was an entire spaghetti code). Everything was put in the main. If you wanted to try to keep things organized, you would end up punched and beaten up from the code itself. It would become a sentient entity that will beat you the fuck up.
I'm studying Databases and I'm getting confused about Foreign Key.
A Foreign Key made reference to Primary Key of another table. But what's the point? Can't I simply use a value and select requested data where TableA value is equal to TableB value?
Sorry if I didn't explain it well, I'm so confused lmao7
In Flutter I have to display in a ListView all the days of the current month, but starting from current day
I was thinking to get the number of days and the corresponding day (Monday, ecc.) saving them in an Array and then create the widgets dynamically in the ListView.
But I have no idea on how to achieve the corresponding day.
I need something like in the image
I was watching some mobile coding stuff and I've discovered Flutter.
I've seen a lot of people hyped for this framework, so I've downloaded a couple apps made with it.
Amazing UI and animations, but everything feels laggy.
Then I've tried it, and I don't see why all this hype. I fell better build mobile app on the "classic" way (Kotlin/xml). Is it me, or Flutter is overrated?7
I have a question about Android dark theme
I've added dark theme support for my application using 2 different themes declared in styles.xml.
On official android developer site:
"In order to support Dark theme, you must set your app's theme (usually found in res/values/styles.xml) to inherit from a DayNight theme"
and this is what I've done. I've also created colors-night.xml to avoid modifying colors that cannot be modified in styles.xml by coding and this works too: when dark mode is activated from device system, colors changes automatically.
At this point, I was wondering which is the best way to implements dark theme: creating 2 different themes, using colors-night (and drawable-night) or a combination of these 2 ways?
I have a question about UI/UX
I have multiple settings that user can toggle on/off.
Those settings are used to customize notifications (it's an app that saves notes to notifications)
I was wondering if I should use checkboxes or switch18
The next year I have to choice University faculty. I don't know if pick up computer technology or computer engineering.
What are the main differences and which is more "convenient"?4
Test the project pre-release -> everything works well
Release the project -> new bugs comes out, features are not working anymore, some files are corrupted, your PC is ready to explode and a black hole is going to destroy everything1
Just a question, is possible in Android Studio to display a fractions using strings?
For example, instead of (m1 + m2) / v2 use a fractions2
*based on a true story*
Co-worker: Let's release it
Me: Wait, I want to add just a little feature
Co-worker: Is it necessary?
Me: Trust me
*5 minutes later*
Co-worker: So, have you finished implementing your "little feature"?
Me: Yeah, well, it's done. Maybe.
Co-worker: What the hell have you done?
Me: MAYBE I've added 647 lines of codes to the file to implement my little feature, MAYBE it doesn't works and MAYBE the entire project is compromised
Just switched from Windows 10 to Manjaro Linux
Glad to see that I can do something (like web search) without bugs, crash, freeze and lag10
Create the project of your billionaire app idea -> spend 1 week working on it -> realize that actually sucks -> repeat5
Developer: we have a problem
Manager: remember, there are no such things as problems, only opportunities.
Developer: Well then, we have opportunity to recreate the entire project we're working on 2 years2
One week ago I've made a work plane to divide features development day by day, obviously procrastinating
This morning I realized the project release was today
I made an entire mobile app with a plethora of features without bugs in an afternoon.
Never worked so hard in a so limited time without problems.
Short story of a developer
0) Don't know how to do something
1) Search for hours on internet
2) Find only crappy codes
3) Try a crappy code
4) Realize that it works only for who created the code (What the hell...)
6) Ask on forums
7) Get downvote without any reason
8) Receive useless answer
9) Delete project6
Co-worker: Why are you deleting this piece of code?
Me: It's deprecated and it can be made in a better way. Don't worry, I know what I'm doing
Also me: OH SHIT THE ENTIRE PROJECT IT'S RUINED4
Friend: So, you can program
Friend: nice, can you hack a Facebook profile?