Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "constraint"
I recently joined a new company where work is quite different than my previous company.
Every day at work is challenging for me. There is good exposure to learn technology in depth. But time constraint to deliver module like under 3 days does not let me learn my work, also I am not satisfy with the quality of my code that I provide, it more looks like a patch. In my previous company I was favorite developer of my team but here I feel like a fresher who doesn't know from where to start.
Even I feel like my presence does not make any impact in office as I am just like an extra player of the team. I am slow at my work because I learn then I code due to which my manager does not consider me for any new work. I feel like left out in my team.
Once I overheard one of my colleague he called me helpless and were making fun of me. With every passing day I am losing my confidence.
I have no github reputation. It's like I am jack of all trades but master of none.
Every day is like big fight day in office.
I know our only way to survive in this industry is to keep on learning but in smart way. I am not sure what's that smart way?
Any advice would be helpful.5
Oh boy, kotlin and its world of statics and lambdas are glorious 💗💗💗
I just finished this attendence counter app i have been working on for last 4 days.its quite simple so i tried to add as much constraints as possible:
-Good practices and minimal warningy
-Viewmodel and livedata
-everything in kotlin
Although i already have worked with room and livedata previously but i dont even have a hello world experience in kotlin . However it doesn't felt that bad tho for a newbie
Every code here is so small . Synthetic binding? Love at first sight.Although at some places its irritating , not having ?: Operator or its ugly 'when' logic, but overall its Awesome!!7
!Rant && !Believe what I am seeing 😓
Just downloaded Android studio 3 to give kotlin a go to find out their designer is soooo much better now, I tried editing an activity with constraint layout and many elements inside without a single freez 😨5
Android studio is a PATHETIC excuse of an IDE!! And managing a constraint layout inside a scroll view is worse than having my nails pulled out while a bamboo is growing into my spine at record time! Screw this piece of shit IDE!! I suck at front end bad enough to have to deal with its buggy frontend IDE!! Aaaah!!!! - pulls lumps of hair out-14
On my home machines, I am a dual booter (job is .net) but Ubuntu is running 90% of time. Last night I tried installing a printer but failed miserably. Due to time constraint I had to boot that fucking resource molester of win10 which sux even more on low end box like mine.
Now am red eyed & angry. Fucking printer .8
IT'S CAPS RANT TIME!
MYSQL ERRORS ARE SO USELESS! AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHH
I JUST WANT TO ADD A FOREIGN KEY BUT 'Cannot add foreign key constraint' KEEPS COMING UP, AND THE STACK OVERFLOW ANSWERS INDICATE THAT IT COULD BE -LITERALLY- ANYTHING!
THIS IS OF COURSE, AFTER PHPMYADMIN GIVES ITS OWN ERRORS FOR TRYING TO USE THE DESIGNER TO ADD THE RELATION. IT ONLY WANTS UNIQUE FOREIGN KEYS, DESPITE ONE OF THE MAIN USES OF FOREIGN KEYS BEING MANY-TO-MANY AND ONE-TO-MANY RELATIONS!3
Asking Android Studio to convert your layouts to ConstraintLayout is the equivalent of asking a two legged horse to do your laundry.2
Constraint Layout is the best thing Google has ever made for responsive Android design, when it works.
Half the time it suddenly stops finding any elements I want to attach my selected one to, so it can't constrain what I want it to constrain.
A restart fixes it though...1
GOD ALMIGHTY I HATE SWIFT & XCODE...
Why the fuck does it take a horrendous amount of time to muck about with layout constraints. Why the heck does xcode choose to add constraint layouts to elements that already have pissing constraints! Why does dealing with something as trivial as tables have to be so god damn fucking involved when HTML and CSS let me create and style tables in fuck all lines.
And what the hell is up with how pissing long xcode takes just to figure out that 1 extra line of code I've just added. You jump to another file and xcode finally decides to be an ide again and bitch at the fact that you've forgotten to add some parameter or that they've decided to rename paramter "x" since version fuck nows what.
Working with abstract classes is fun, lets use protocols (because interfaces are too old school) and then lets tack on something we call extensions and then lets make people piss about with convenience initializers.
And lord almighty, what the fuck is up with casting, what all this ?! BS. What's wrong with just checking if the value is null in the first place, or whats wrong with giving something an initial value, oh because having to unwrap shit is more elegant right??
And good god, I need to own a fucking cinema screen just to have the storyboard open, there's less fucking panels on the Sistine Chapel ceiling
then there is in xcode.1
Him: i get this error when i insert into table, ForeignKey_contraint failed, what can i do?
Me: you have to obey the constraint, make sure it exists in the other table first
Him: ok i did that but i still get ForeignKey constraint error
Me: yeah that table has a couple foreign keys
Him: could you give me a very specific example how to insert into this table
Me: ........ here is a command to remove constraints on the table
Him: thanks, that fixed it!
I am helping a programmer who works with Costco integrate to software my company sells. I don't have source code, just an understanding of the database and what the software does. If he is getting paid more than me, then I should get a job there and ask for double, I could easily work 10 times faster than this buffoon.
Not sure if I am Allowed to ask general questions here but here's the thing. I just began making Android apps. I have made a few basic of them and I use constraint layout via the layout editor in Android Studio. Is it okay? Do professionals do the same or do they actually type in the xml code?14
(Fyi: I was an intern.)
It took me hours of time to recognize, that one of the necessary tables just used an oracleDB Date as a timestamp, which lead to a violation of the primary key constraint on interactions taken place in less than one second.
Me: (explaining the problem to CW)
CW: "Yup, we know."
Took over a project where a dev created a table with no primary key and enforce a unique constraint in code. Wtf? He also always selected top 1 so if you added a record directly in the table it completely fucked the expected data.
So, when I took this piece of shit over I didn't realize what the table was and when I tried to convert it to EF it barfed since there was no PK. Was a complete PITA and had to create all new tables.
Some people shouldn't develop software!!!!!!!!!
Okay so I'm one of those developers who haven't moved to constraint layouts yet. I've been working on heavily nested layouts (for obvious reasons) and the gravity chooses to kill the fun every time :))2
When a section of the database is all using a FK constraint and you've been searching for hours but no table is actually using it as a PK...
After the "Cloud Computing" trend, the new trends these days seems to be ML, VR and AI. And while I am very excited about all these techs and the possibilities it can bring, I can't help feel that most of us are using the term "AI" a bit incorrectly.
What we are trying to do here, as far as I can see, is VI, not AI. The intelligence we see in the so called "AI"s available so far are simulated and fails to emulate real intelligence, let alone demonstrate actual intelligence and awareness. They are not fully aware. But I guess that is why there is the singularity constraint. It is no doubt that when a VI finally becomes are fully aware AI, that is indeed the point of singularity.
Anyway, leaving the future dystopian thoughts aside, a mixture of ML, "AI" and VR have made some very interesting concepts, especially in the gaming industry, which I would love to see bear fruit in the near future.2
Getting a duplicate record error in MySQL from a unique key constraint. Trying to decide if I should fix the Java code that possibly sending a duplicate save || drop the unique constraint from the table? 😂😂😂3
The bugs that make you think are the best/worst.
Had a ghost foreign key constraint from a dropped table. Cant drop it from a non existant table.
Turns out the dev copied a file for the new table and since you can technically name those foreign keys anything you want, there were no errors when he ran it.
Also sloppy/overworked dev teammates are the worst...
Also I'm pretty sure rule 2 of programming is "Never Copy and Paste"
I hate AndroidStudio when it adds constraint-layout as a dependency in my build script whenever I create a new Activity.
# ./symfony test:unit
Propel-Exception: Unable to execute DELTE ALL statement [...] Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails.
WHY ist a UNIT TEST reaching out to a REAL data base?
And who in their right mind would create a different data base schema for the tests?
This was with a clone of the real thing. Removing the FK results in double PK-errors...5
To all android Devs who used to or still change Constraint layout as the root element of the view despite Google forcing it on us.
Your time is near....
I went remote a year ago and have had the constraint fear of losing my job, even though I know for a fact that there are other devs who do less work than me and slump around more than me. Never want to go back to office life again though.1
Rant! When you live in a less technically advanced country, and everyone cheaps out on their software and hires the company that will do it for the least money and because of that it never works decently you can't reserve movie tickets on the cinema's site and get a SQL constraint error directly on screen, if you can't afford custom software buy a license for something that works out of the box ffs
(I'm goin' to see Star wars ofc.)2
I'm making an app with android studio. I'm in the design tab for my login activity, where there is an imageview that has it's dimensions as match_parent for both height and width. The screen for my design is at 1440 x 2960, which is the size for my Samsung Galaxy S8, but then whenever I go to test it on another phone, which is a bit wider, and shorter, the image still stretches to the top, but then does not fit the whole width. Any way to fix this? I'm using a constraint layout btw
Anyone who tells you there is no time constraint is on drugs. There's no such thing. At best, there are just secret deadlines that crop up as you're getting close. It's just a fucking con to get you to build unimportant shit, and work your ass off to meet some artificial deadline at the end.
Am I the only one waving around when working with the Constraint Layout in android....feeling like am directing traffic
Got an assignment yesterday. I was required to create an Android app. I used constraint layout for the app. However, instructor told me today not to use constraint layout. Instead use relative layout. He did not gave any explanations for it. What you think might be the reason? How many of you still use relative layout, and why?1