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
Search - "component"
-
*Builds a web component for a client website*
CLIENT: I don't like it, can I have it a tiny bit over to the right more
ME: Taps the arrow key a few times making it look like I'm doing something.(Which actually does nothing)
Client: 👌Perfect
😂😂😂 Wut 😂😂😂19 -
This happened at my previous job where I worked for a dating app. It was at a time where the CEO was trying to turn the dating app into “more than a dating app” by adding tons of social features. We always had “interests” which allowed users to see what interests they had in common with another person, but he wanted to take the social component even further.
So with that, he decided we needed an “activity feed.” The activity feed would show what various Facebook connected users were liking on Facebook, posting on Facebook, etc. On a dating app. Where the majority of the audience was > 50 years old. The idea was absolutely ridiculous and everyone but the CEO knew it was destined for failure before we started building it.
But that’s not the best part. The best part was when we launched the activity feed component. We launched it late on day and went home shortly after. The next morning, we came in, and checked on the activity feed to see what was doing. It was literally all spammers liking porn/sex related stuff on Facebook. It was a complete disaster. All garbage but not just boring garbage - completely obscene garbage.
And just like that, the activity feature came and went in the course of a few days.18 -
After I submitted a code review:
Coworker: What did you mean with this comment?
Me: **translating the comment to Portuguese** Your Footer component isn't rendering any footer element.
Coworker: **blank stare** what?
Me: There is no footer tag here. **points to Footer component**
Coworker: **computing... found approximate result** I'm rendering the Footer here. **shows me where the Footer component is being rendered**
Me: **internal facepalm** Yes, I know, but I'm not talking about that. I'm saying that inside the Footer component you should be rendering a footer element.
Coworker: **segmentation fault** what?
And then I had to explain that there is an HTML footer element. To a mid level frontend developer (or so they say).
HTML is not only divs, for fuck sake.26 -
Feeling bored? Just break a random component of your OS and spend a few minutes fixing it. If you're lucky these minutes will expand to hours. Problem solved!8
-
Two mobile devs were talking for 10 minutes in this zoom meeting whether "the component on the bottom should be hidden, or made sticky".
I just could not contain my laughter any longer when they showed an animated mockup comparison, and the product manager yelled excitedly: "Oh yeah, I love the one where it's very visible and sticky! But could you make it bigger for me?"
Sorry HR. I will never become a grown up boy.5 -
Me: Well, it's time to make a new app!
* opens up VS Code *
* opens folder selection dialog *
* creates a new folder called "notes app" *
* yarn inits that folder *
* installs react and react-dom *
* installs webpack, webpack-cli, babel-core, babel-loader, babel-preset-env, babel-preset-react, style-loader, css-loader, file-loader, html-webpack-plugin and clean-webpack-plugin as a dev dependency (install is pending) *
* copies a webpack config from some other project *
* creates a babelrc file *
* copies a yarn script called "build:dev" which would launch webpack *
* dev dependencies installed *
* tries to save *
* vscode doesn't save because files differ *
* tries to copy dev dependencies *
* fail *
* tries again *
* saves *
* writes bare-bones index.jsx *
* yarn build:dev *
* opens build/index.html in firefox *
* gets satisfaction *
* writes bare-bones App.jsx which is a react component but it's an entire app *
* yarn build:dev *
* opens build/index.html in firefox *
* gets satisfaction *
-- trim --
* walks out of his room to his mom's room where's sbc is located *
* grandma plays solitare on laptop *
* i ask grandma for a laptop *
* grandma gives me laptop *
* glues all components into App.jsx *
* yarn start:dev (magic of webpack-dev-server) *
* opens localhost:8080 in firefox *
* searches how to update a component prop *
* nothing found *
* registers on devrant and verifies his email *
* writes this rant *14 -
All my unit tests work, all my component tests work, why the FUCK does it give me a 'Verification Failed' error?
1 hour later:
Oh wait this is the wrong public key2 -
I currently have the best problem ever:
Our client applications and APIs are so fast, users are complaining they don't notice that the UI changed in between the time they clicked a button and their eye drifts to the adjacent component. So now we're having to build visual cues to account for that.
#KillingIt9 -
Volunteered to fix a brittle component in our app. Turned out to be 26 classes of mostly copy pasted code that is riddled with todos and void of feedback for the user. Here's a pretty representative sample of this code's quality:5
-
One component is used over 30,000 times. How many unit tests do you think we have for it? Zero. Fucking zero, Zip, Zilch, Nada, None.
WHAT THE QA FUCK!?6 -
I asked collegue about status of component thru Skype (different countries, you know) and received answer he's leaving company in 8 days. FML.1
-
Coworker: I give up! Please help me!
Me: What's up?
C: Take a look at this. I have this function here that gets the tab index and I'm passing it to the Tabs component over there. I'm logging the index and as you can see it's 3, but the Tabs component isn't working. However if I replace the function call with a 3 it works!
Coworker 2: While you were explaining all that, shellbug already thought about at least 3 reasons why that isn't working.
Me: **sighs** Of what type is the value that function is returning?
C: **stares at me for a few seconds** It's a number.
Me: Are you sure?
C: Well, it's returning 3.
Me: Please do a typeof.
It was string.8 -
a stored XSS vuln in a banner-like component, visible in ALL the pages in the portal. Anyone can attack anyone.
HOWEVER this was not discovered by 3rd-party security specialists during latest security audit. I have escalated this to my manager and got replied that unless client actively requests this to be fixed should I do anything about it.
FFS.. it's only 2 lines of code.. And there's nothing I can do about it.
Eventualy I was transfered to another project. Now it's not my problem anymore.4 -
Me at 11:00
"Ohh I need to split this component into two since too much has been put into this.. Seems like an easy task.. Will take me an hour max to do this.."
Me at 22:00
"Damnnn.. I think I have broken this code.. I am doomed.."
*Replaces all files with HEAD1 -
Manager: Hi, here is component X with 200k lines of code. Can you go through the code and see if you can implement component Y using component X?
Me: What does component X do?
Manager: I don't know.
Me: Is there a design docs for it?
Manager: I don't know. Can you check? Let me know when it is done.
*Wondering if I should joke and say "Oh management, hard job huh?"*
*Remembering how life is fucked up unfair and I need food to survive and house to live in and follow the society's rules and work hard to make the rich richer and shove money into their fat belly of greed...*
Me: OK.9 -
Article title: "Mastering React component composition using children"
<image of a couple holding a baby>
Image caption: "Parents with child."
**Reads the title again**
Wait what?4 -
Software just destroyed half a year worth of work today. God bless developers. I'm getting myself a psychologist over a broken fucking server. Because software fucking killed it. And killed me with it. Do I really have to build everything from component to end product myself? Without even being a developer?15
-
For a project day we had to write a game of our choice in Java.
"You should make this game using the JSwing library and make each component a JComponent"
Later I learned you can simply use a Bitmap as a canvas.
NEVER. EVER. BASE. YOUR. GAME. ON. SWING.
It inefficient to the top of my taskmanager. I had to wrap everything with something like a virtual playground where I had to manage everything myself to not roast my cpu.
I had alot more fun debugging hundred lines of C code with print statements than writing that shit2 -
Linux desktop fanboys: proprietary hardware support is a huge issue in all major Linux distros. It is the fault of the hardware companies.
Also Linux desktop fanboys: hardware issues are the fault of the beginner/novice end user.
Windows/mac users: *installs any component they want and has it work flawlessly without even having to read a single word from the manual*32 -
“One of the biggest mistakes engineers make is spending time on optimising something (a component) that shouldn’t exist in the first place” - Elon
I’ve been guilty of this a few times 😅2 -
i'm feeling so sick right now.
PM invited team for today to present his "vision": "<name of our component>: what it is and what it is not".
but it didn't make sense and showed that he hadn't understood the problem at all. the whole architecture made no sense given the problems that shall be solved. his architecture diagrams missed some essential parts that were actually the giant weak points of his concept. his pseudocode, that should exemplify interactions between components, didn't address the complexity of required interactions at all. it's like he expects some magic to happen and has no fucking clue about the requirements (but acts like it), even though he is the manager of this software project.
and when devs ask really interesting questions that fundamentally question his concept, discussions lead to nowhere and questions are not answered. at some point he literally said "there is no such thing as <name of our component>, i still have to find this out"
really!? after one and a half year, since you sold the idea for this component to upper management, and after half a year of development, you still can't tell what it is what we actually want to build? are you fucking serious?!
at some point in discussion he said that these questions need to be answered but that "there's no time left", and he ended the meeting. although there was still half an hour of meeting time left.
i'm so fucking sick of this, i hate everything right now. i can't listen to this bullshit any longer. in discussions, he contradicts himself all the time, it is so fucking surreal i'm starting to feel like i'm insane.
it makes me really sad and tired. i don't want to care about this shit any longer.14 -
Saw a lot of posts on social media recently where people highlight a specific quote/sentence from a book/ebook and post it's picture online.
It only I could do the same with the killer ass functions I wrote, or the fifth degree nested ternary operator line of code I wrote that makes the whole component work and is the most beautiful thing I've ever seen. -
Epic newb here. Like, can-barely-read-HTML new. But I'm curious and interested. I work in an office filled with very skilled developers, and I bring the human component to the operations. Not a day goes by when I don't learn something, or teach something. Sadly, that enriching experience accounts for maybe half an hour of my day. I wish it was more. Anyhoo, rant on, Wayne!7
-
Never really used a UI framework for web development, always coded each component myself. Im using one now and I have to say it's not that bad!10
-
I just wasted 20 minutes debugging a component that, when included in the parent template, caused an untraceable infinite loop.
Out of desperation, I finally just renamed component to "pants". It works.
...huh?
Renamed back to its original name. THAT works too.
...Huh??7 -
Don't you feel confused if someone in your team declares variables like this?
TextArea textarea1, textarea2;
Component component1, component2, component3
textarea2.setText(textarea1);
It's an identifier for a reason, make yourself identified!3 -
you fucking idiots
why do you always base your library components on some dumbass clown fixed width / height system?
everything should be flex by default, anything else is absolute amateur clown town pile of dumbass horseshit...
...i'll brawl and take down anyone who says otherwise
you waste my time, you waste other's time, when everyone has to go hunting around for your stupid library's unorthodox way of styling
thanks again for wasting and making my evening a living hell7 -
React is a nice js framework, but I constantly find myself with 50 different files open because every component and related css file is spread across the world. I get why our frontend guy built it with so many modular components, but it makes me feel like back in the day when libraries were a thing and you had to flip through those giant Dewey decimal system drawers of cards to pull out the one little card you want to then hunt for that one little book you wanted to find that one little line from4
-
Thanks to @sain2424, we found a really weird bug in devRantron.
One of the user that commented on or upvoted his rant has deleted that account. So when the notification component was trying to fetch the user's avatar to show the notification, it was failling and causing the app to crash.
@Cyanite the bugs you reported is fixed as well. Please update 🙃 🙃3 -
When you're supposed to make a pcb for this SMD component, but when you etch you realize it's the wrong footprint.
Ended up soldering enamel wire tomthe chip.
hope it works4 -
I had an interview where I had to demo rendering a video on my component. I had copilot on, so it suggested this url. The video didn't load, but the video component was rendered so it was enough.
Later, I got curious about what it suggested, and I thought about it, but didn't think it would be that.
So, I clicked on it and got rickrolled lol.3 -
Me: I deprecate a react component, because it's bloated and no longer makes sense, and I let everyone on the team know that we're working to get rid of that component
Other Dev: Hmm, if I copy this component for every time that it is used, rename all of my copy's and delete the original, I got rid of the deprecated component...
Me: After hearing that deprecated component was removed... "Good job other Dev"
Me: A couple of weeks later after dev leaves company and I start adding some new features to the app "WTF" -
What docker means:
Sorry pal, service names mustn't contain spaces
What docker says:
desc = name must be valid as a DNS component1 -
I wonder whether this is a bug in Chrome, or if it's just Google drawing the conclusion from my northern geo-position, that we still haven't left the stage of building longships, raiding England and Scotland, burning monasteries and writing awesome poetry and literature in weird characters sets.
Well, I'm not Ragnarr f*cking Loðbrók or Egill Skallagrímsson, so I can't read electronic component data sheets the way those guys did.
I'll go grab my chisel, so I can carve a bug report into a suitably flat stone and shove it down the TCP/IP series of tubes leading to Google. -
So a Developer not using a React-native component library because it is backed by Microsoft
This is next level shit
PS:- the library is actually pretty decent23 -
Dear React Component,
Everyone else is fine.
Why is it when someone decides to enter some input in you, you freak out?
-N00bPancakes
Dear N00bPancakes,6 -
I work in a contract position and reviewed the code of a senior engineer recently. Regretfully I can't provide context to preserve anonymity.
He wrote awful JavaScript;
- handled a single DOM element with 2 different frontend libraries
- used the logical operator && to 'chain' two methods (it didn't work) instead of returning a boolean value,
- broke everything down into minute detail (a comment box had 7 components!),
- API calls were made for every component update instead of maintaining local component state where it made sense, which meant UI updates were slow,
- animated EVERYTHING, which made my Firefox on Xubuntu i7 64bit with 16GB RAM beg for mercy.
I had a rough couple of months with interviews, with 2nd stage technical interviewers throwing impossible tasks at me.
Example:
1. Create an online Python code editor with Javascript which can compile Python bytecode,
2. Use Mesos and Kafka to create real time architecture for Tensorflow with a Javascript frontend in 1 day. (I asked, and wasn't allowed to use Kubernetes or serverless architecture),
3. Hack a website from the browser's address bar using parameters ( what?!! ),
Obviously, the next time I meet a 'senior', I'm going to tell him talk is cheap;
'SHOW ME YOUR CODE.'3 -
A Vue application I'm tasked with fixing consists of one single huge component, wouldn't survive even the most liberal use of linting, and has a reloadPage() function.
How fucked am I?6 -
Me and my team has been creating React components for the last two months. Today we realized that not a single component is done the Redux way (as pure functions), which means we have to refactor every component and the tests.
That's what you get for trying out new technology..3 -
Past two days one of the senior devs has been complaining to anyone who will listen about a UI assembly containing 'hard-coded' references to a third party component causing several builds to break. The developer who added the telerik component probably had no idea the reference is pointing to his personal directory instead of a relative path. Easy fix? Uh...yea...but he just ranted to our boss for about 10 minutes about he has no idea how to fix the problem and the TFS build failure holding up his other projects.
WTF!? You fracking know what the relative path is!...just fracking change it and move the frack on.
The drama this drama-queen keeps spewing out is driving me out of my mind.3 -
Why the fuck do managers think beacuse a component has been build by another developer a shit ton of time ago, we can still reuse that fucking code.
For fucks sake, I had to rebuild a whole fucking map component that needed contextual filter and the fuckers just add extra functionality without consulting me. And gave me a tight schedule bc the customer, who btw disappeared for 6 months, will be mad for wasting his precious fucking time.
Fuck these clients.11 -
Last week's Android development time breakdown:
21.9% Managing state
17.7% Referring to lifecycle diagrams
15.1% Waiting for Gradle
8.5% Reading the official docs on how to use component x
8.4% Reordering auto-generated ConstraintLayout XML
7.5% Swearing
4.2% Googling “Stack overflow component x is deprecated”
3.9% Googling “Stack overflow implement component x on API 24 or lower”
3.7% Googling “Stack overflow implement component x on API 21 or lower”
3.2% Googling “Stack overflow implement component x on API 19 or lower”
2.9% Googling “Stack overflow callback y called twice”, realising its a feature and not a bug, swearing a lot
2.0% Checking if Flutter is mature yet
1.0% Implementing business logic4 -
As usual, Friday is boring day. I made a React component to show an exclamation mark base on absolute value from a list. Took me 15 mins. The rest of 1 hour we discussed where and what color should I use. 🤦♂️ Someone nearly flip the table...2
-
It's official. I'm making multiplayer Minesweeper.
There's a Trello board, Discord server, and GitHub repo.
Initial gamemodes will be singleplayer, public (like agar.io) and vs (2+ players, support for teams is planned).
My big idea besides that is to have interesting powerups you can buy or find, adding a component of luck and some exciting new rules to the game.
And I may even put ads on it and try to feed myself.15 -
Shamless rant towards the shamless Cursey dude. 😫
So whole day I have been trying to pass a variable from laravel blade view to vue2 component file. All in seperate files. I know that I have successfully passed 1 or 0 in same flow before. So I was following the same steps to pass my string variable. It kept giving me undefined. No google helped and I had been doing all kinds of stupid useless trials. All failed.
Because it is supposed to fail. 😐
I only learned it at the end of the day.5 -
I’ve come to the conclusion that developers who like react have never used it for anything even remotely complicated.
Because here’s reacts dirty little secret; it doesn’t scale. Not even a little. It’s flexible, but that leads to every developer writing their code in a different way.
It’s simple and easy for simple side projects, but as soon as you have to pass state to a child component, you’re fucked. And god help you if you’re modifying the state in said child component. You can try using redux, but that’s a bandaid solution to the real issue.
There are better alternatives, namely Vue. There’s no need to write unintelligible code that’s a mutated hybrid of html css and js. We as web developers realized mixing these technologies was a bad idea a long time ago.
React simply doesn’t scale. It’s flexibility, complexity, and the awful code quality it leads to makes it a nightmare for large projects with multiple developers
Some of its concepts are interesting and useful though. It’s functional concepts allow for easy code reuse, among the other benefits associated with functional programming
I sincerely hope that the hype around react dies out, and a new framework emerges that takes the best from react and fixes the glaring issues it currently has23 -
Client says the styling of a particular component on their website is wrong. It looks fine to me. They can't give me an example of how it should look, or tell me what's wrong with the way it looks currently, but they want me to fix it.3
-
Why the fuck this moron thought it was a good idea to set a global onClick event in a react component and make it have the desired behavior for EVERYTHING instead of the only click he wanted to get?
7 places you can click were triggering redux dispatch and ajax calls that should only work on one place... Fucking hell...4 -
Fucking people, why the hell are you reading into things instead of asking for clarification if something is unclear?
So much time, sweat and tears wasted on miscommunication.
When I said, "there might be a problem in the way component X method Y was implemented", i didnt mean go refactor the entire code of the component. Why waste 2 days of work on unnecessary refactor that nobody wanted and breaks changes + the bug is not fully fixed 😤13 -
Of all the fuckups I love the ones with all the wrongs the most.
Like one junior: restarted a wrong app component in a wrong environment on a wrong agreed time after updating a wrong property in the config file.
Like today one of my teammates: updated a wrong script to add a wrong step in a wrong spot in the sequence... At least got the environment right I guess..4 -
I can’t stand how designers insist on over designing <select> elements. No, 50 divs with aria attrs will not make this component as usable as the native elements4
-
Why do people feel so compelled to create their own custom components when the component library you're already using HAS ONE ALREADY?!
You can change the styling and animations using CSS and props. Stop building buggy shit from scratch.7 -
*Send 2 mockup options for new component*
Them: Nice! I'm torn, which one do you like?
Me: I like the first.
Them: Great, lets go with the second!
-.-3 -
“hi all, we are cancelling the last two releases this year due to instability that we can’t fix by the cut off. If the server returns an error, every react-native built component crashes and stops working until a relaunch”7
-
I enjoy coding Android, but what the hell did Google smoke when creating the "Spinner" component?!6
-
Today I had a client raise a high defect directly with my boss’s boss. I got called into a meeting and was told
I needed to fix it immediately.
I looked and realized it was in their code and not our component. I told them as much. They asked me if I would still fix it. I refused. Told them it’s not my component. Fix your own problems.
Sat their as my boss’s boss asked them how they functioned if they didn’t even understand their own component. Feels good man. All I could do is smile at them trying not to laugh.1 -
There was this motherfucker searching a dev to build a vue component on freelancer.
I applied. 🙄
Then he started to ask me out about Upwork. How he wants to use my account through TeamViewer. And how he will pay me for this monthly.
Why am I magnetic to idiots and scammers? Can some one please Avada Kedavra all idiots? I will pay you monthly. I swear.3 -
me: Hey. This looks like a cool component that will save me lots of time and effort in the project I'm kicking off next week.
/* Two months later */
me: WTF was the name of that component that did that thing?
======================
I really should write things down more often.1 -
In 2 weeks FOSDEM will be held in Brussels. I'll be going with some friends. Are you coming as well? Perhaps we could do a little meetup at the event?
Poettering will be speaking at the event as well btw. Presenting.. systemd-homed, a new systemd component. I shit you not. The "outdated" home directories are to be replaced by a service. Home directories as a service, the next big thing?
Here's the link if you're interested:
Reinventing Home Directories https://fosdem.org/2020/schedule/... #FOSDEM8 -
@AlexDeLarge and any other React guys, which do you prefer? Traditional css files, whether that be vanilla or with a preprocessor, or style objects for each component.
There are some pretty clear pros i can identify for both sides, but I'm pretty sure I'm missing somethings and I'd like to hear from you guys your opinions and experiences with either27 -
I am just sick of the things that's been going on.
Joined a mid level startup as full Stack developer working on angular and node js . Code base is too shit and application is full of bugs(100+ tickets are being raised for bugs)
Since the product owner(PO) wants to demo the application he is pushing for bug fixes.
UI code:
1. Application is not handled for responsiveness all these years, it is now being trying to address. Code base is very huge to address though .
2. The common reusable components of UI has business logic inside. Any small change in business logic we are forced to handle in common components which might break up on another components.
3. Styling in 40+ components are made global. Small css change in component A is breaking up in component B due to this
4. No time to refactor.
5. Application not at all tested properly all these years. PO wants a stable build.
6. More importantly most of developers have already left the company and we are left with 2 developers including me.
I am not in a position to switch due to other commitments adds up a lot to frustration11 -
PR comment: You don't need this useCallback and this useMemo, it's premature optimization, this component will not have a lot of rerenders anyway.
*remove it and merge it*
Few weeks later...
Slack message: why the app is so slow???
*opens a PR putting back all "premature" optimizations*
PR comment: Hum... I don't think that's it, but let's try it.
*merge it*
*slowness is gone*
Slack message: wow! How did you figured out so quickly???
Me: I was lucky, I guess ¯\_(ツ)_/¯2 -
React devtools in Firefox is such a pile of shit! It's slow, it hangs when selecting and it doesn't fucking show the whole component tree when it's too deep. I'm forced to switch to Chrome when I need to debug.
Anyone here has problems with it too?4 -
After reading some rants abut stupid project managers I remembered this situation that happened to me a decade ago.
One of the tasks was to move some html component to different place on the page. The whole page was a mix trs and tds and to achieve that I had to rewrite the whole page structure. I estimated around half a day to complete that task. It was my first job and I was not great back then, but still it was reasonable amount for this task.
Now lets introduce my PM : the guy was a complete tool. He was a former hardware store manager ( ͡° ͜ʖ ͡°) and had no idea what we were doing.
He started ranting how on earth such simple task can takes so much time. I started explaining myself, but he wasn't listening. Instead he started sharing his screen, he made a screenshot of the page, pasted it to the ms paint, cut the component, and moved it to desired place. Then he said : It took me like 10 sec to complete the task and I have no experience, maybe I will replace you?
I was speechless. I had no words and I just kept silence.
Then he said he would reassign this task to X, because he is competent.
X spend more then 4 hours and I heard no apologies.6 -
Client: The new page template you sent us looks different on production compared to the other pages that use the same component.
Me: Oh, that's strange since the styling is at the component level. Hmm, let me dig in to it.
Start poking around trying to figure out what I managed to screw up only to find that it looks exactly the same on local and staging. Eventually find another style sheet the client is importing on the production site to change some of the styles.
You know, a change that isn't anywhere to be found in the repo, and no one ever asked for anything to be changed. Their "Dev" decided he would hack in a fix instead of shooting me an email.
Apparently he tried changing the SCSS file but the changes weren't showing up. He changed the minified stylesheet but his changes were overwritten on the next deployment..... #howdoesSASSwork?!
Same client as my last rant so I'm not sure why I'm surprised by this. Oh well, I'll take that hourly rate.1 -
That feeling when you were so happy about react-native, and was pretty sure at the beggining about the achitecture of your app and js libs you are about to use.
Im here sitting with redux, reselect and still dont know why I cant just do a REST call and format data in the container component.
Why react is so hard, or am I dumb?6 -
Why on earth is machine learning left so obscure! Only 100 different ways to talk about the same component.2
-
Sprint 0: This design is the appropriate amount of engineering abstraction.
Sprint 2: This is over-engineered, too much work
Sprint 5: This is under-engineered, too many edge cases
Sprint 10: This is over-engineered, component Foo could be replaced by a bash script
Sprint 42: Foo is now the cornerstone of half our business logic2 -
Worst of an job in IT? Coming home and having to fix computer still.
I fucking hate it. I fucking hate computers. There might be great stuff like nifty algorithms, grand theoretical theorems about formal languages, Lisps,... BUT that's so far away from the mundane atrocities we have to put up with when it comes to sth like installing a printer.
Newest release of driver won't install a plugin without helpful error. Older release works.. for printing some pages... Then some component (cups-filter) keeps on segfaulting.6 -
My boss: Write unit tests for this angular app
Also my boss: what do you mean it will take months to write the necessary mocks for our 177 specs
Also also my boss: why would you need to mock anything for a unit test
Also also also my boss: Just let each component import all the other real components, nevermind that that's an integration test and not a unit test8 -
Recently I have lots of very unproductive days. I m just very tired and even coffee puts me to sleep at work. What's interesting is that as soon as I open something interesting on the web or start working on some new component it all goes away for an hour or so.
So I just wanted to ask you if you have weeks like this.
How can I get myself fixed :(12 -
Oh no...
A <FlatList> as a DIRECT child of a <ScrollView>... I mean, I'll give you the benefit of the doubt if you forgot or it was buried in a nested component... but... it's just sitting right in front of you on the same exact component... it's like, did you even test this once and see the warnings?
God these 'affordable' devs truly aren't actually worth it.
They really aren't.
You spend just as much time fixing their clownish mess as you get for "saving money" with their cheap rates.
Another day, another clown dollar in clowntown...
SHEESH3 -
Taking a 4 month Software Engineering course in University. Spent the last 2 months making Traceability Matrix, Component Diagrams, Deployment Diagrams, Sequence Diagram and not a single line of code was written.
Is this how it works in Industry as well? Lol.12 -
This type of post might be good for a weekly rant (if it has not been done yet) "Most Bizarre bug"
So I am working with laravel and vuejs and I use phpstorm as my IDE and today I had the MOST bizarre bug. I'm working on a cryptocurrency website and I'm making a vue component that is going to be a stratum generator for miners and I wanted to make it a component in vue so it can be used anywhere in the site. So I wanted to call the component "StratumGenerator.vue" and i didnt think that this would be an issue. Oh boy was I wrong. So immediately my syntax highlighting did not work nor did emmet autocomplete which is something I can't work without. So i go on for about an hour to fucking figure out how to fix jetbrains vuejs syntax plugins and a very long story short it was because THE FUCKING NAME WAS "StratumGenerator.vue" LITERALLY ANY OTHER NAME WORKS
I've checked its not a blacklisted keyword Stratum and Generator work fine on there own its also not a length thing so right now I have not a fucking clue on why it does not work but i'm glad I figured out.8 -
JSF: Yeah, we make it so can focus on what's important and you never have to write HTML or CSS like those lowly web developers.
Also JSF: You can't nest <h:form> components because nested forms are invalid HTML. Oh, that breaks the composite component you were trying to use? Ha, fuck off.
Primefaces: You know how you can just provide an ID and OverlayPanel will open on its own? Well, for a Dialog, the API is completely different. Here's a glob of JavaScript in an onclick event.
I swear this entire thing was regurgitated by a murder of seagulls.1 -
Me: *holy shit there's a lot of code in this template file, I should probably break it up I to components*
*goes through the effort to break everything up into component parts*
Me: *i should quit being lazy and actually register all my templates the way magento wants me to*
*5 hrs later*
Me: fuck this! *<?php include ...?>*1 -
WordPress uses 25+ MySQL connections per person. MySQL limit is set to 100. 4 people can bring down a critical component of the company. Only fix is to write custom MySQL connector using PDO and persistence connections. Added a Resistor cache just for good measure.8
-
If you use ID selectors in a stylesheet for a component you reuse in the page multiple times you should be shot.4
-
Oh, as a noob dev my team was using a dropdown library for our filters in the website. The code was messed up cause they kept changing the design halfway through dev and after releases and then finally after some releases, the client wanted multilevel options as a new requirement.
So I scrapped the whole thing and made my own multilevel dropdown component (there were no decent libraries then) and we used that from then on. It has many issues now that I look back (who cares about keyboard interaction right?). But that is a refactor for another day. -
Is it just me or is systemd 240 royally fucked up?
My containers running Arch don't get connected to the network and systemd-networkd fails to start. On my laptop, the network is also unable to connect sometimes. And it consistently fails to complete shutdown without hard poweroff. The only viable temporary solution was rolling back to a snapshot in ALA that still has 239. Is that really supposed to be how a critical system component like the init is supposed to behave and get taken care of its issues?
Fuck QA, amirite 🤪.. seriously, that's even worse than Windows' "features" 😒12 -
The best way to describe what I had to do today is I "Channeled Macgyver"... now production is working.
⚪Data wasn't flowing as expected.
⚪Component written by our team was blamed.
⚪Boss asked me to bypass the component so data can flow.
Sure, I can fix that... Give me a car battery, a roll of duck tape and a butter knife. Data will be flowing in production shortly.undefined seems to be working not what jenkins is meant for putting the 'dev' in devops open heart bypass surgery -
5000 scss file with the name global.scss styling.
How fucking dumb can you be to fucking mess up a clean component based architecture like Foundation or Bootstrap and fill it with shit in a single file.
No wonder WP gets shit. The legacy code is usually shit.
And to put the shit cherry on top. This motherfucker had a settings.scss file with all general components and he never used it.
Fucker put different font size in px everywhere! Fucking asshole!!! -
Number of lines on ONE of the javascript files in the project I'm tasked to convert to a modern, modular, component-based web app: 3022.
There are 6 of these.11 -
I see a lot of talk about complex numbers, and yet
for all they are worth, I have not once been
able to find an explaination on how to calculate
them by hand, namely the real component.
For example
(-5)**0.5
(1.3691967456605067e-16+2.23606797749979j)
2.23606 is obviously just the square root of 5, but where the hell did 1.369 come from?
Apparently no one fucking knows, and no site I've found gives a simple explanation for someone new to math in general.
"use a calculator", "hit a button",
How about no.9 -
Adobe labs released one new component, I played with it after two days. Went to an interview with huge company after two weeks for a developer position, the interviewers was from different departments, they asked about one technical challenge they have, then I suggest the new component as solution, they gave me small task to implement using the component, I delivered it next day... Then they hired me in R&D department. It was great days.
-
Me:how about this one ui component boss. I think we must fix it.
Boss:just drop it out, do another job. wait customer to complain, after we got one complain then you fix that.6 -
We're using Angular in the shittiest possible way.
It's wrapped in .NET, the code follows no standards and we lack any sort of component hotload functionality with _fat_ data.
When I change a SCSS style, the whole page reloads and it takes me 15 minutes to get back to the state I was in to say "Hmm, more to the left."
I hope this place burns to the ground.5 -
Can you fucking imagine this tiny fragment of a large complex software built in nextjs?
How many page.tsx and layout.tsx of that exact file names is gonna be there?
How can you track in this folder hierarchy which page.tsx is for which component etc?
How is this clutterfuck of a structure good and loved and approved by developers?
Nextjs is a fucking double edged sword. As much as how good it is it is also bad as bullshit -
Forked a project of GH, which will remain nameless, and ran into this beauty...
// Not actual code, just respresientative...
{true ? <Component /> : null}5 -
This is the LAST TIME a critical PC component will fail me in the middle of a project. Wtf is up with hardware makers these days? Why can't you make a video card that will last for more than a year, AMD?? FFS!
Desktop for gaming, laptop for code. Now to redo my workstation AGAIN. 😭7 -
This is embarrassing, but the first days of learning about AngularJS I had to implement functionality about a new component of the WebApp I was building.
I did a good templating, I build the component along with its controller and services, I verified there wasn’t any memory leak and that everything was in an isolated scope. Yet nothing at all appeared on the app. It took me more than 30 minutes until I realized...
I didn’t put the source code on the index.html file 😅
For people who know more about compiled languages such as C or Java... that’s like not putting your source code file in the makefile. 😅
I felt literally like the dumbest person in the planet at that moment. 😀🔫1 -
Sifting through a React class component that is over 1000 lines long.
When was this written? Not in the 1950s like you might think. Just over 3 months ago.
Kill me.6 -
I was minding my own business, fixing merge conflicts for my project lead when it struck.
There, in the middle of a React.js component, was a table, used not for displaying data, no, but for styling a form, which was not a form, but a series of table rows.
I feel sick -
Oops accidentally created this Angular component in the wrong directory. Better run the Ng command to remove the component so I don't need to remove the files and references in app.module.ts otherwise it would take an annoying amount of time to track down the right lines there and it also opens the door to human error!
......shit4 -
Company started automated testing recently, and the devs need to review the test scripts.
The tester assigned to my component writes script to trigger button click and nothing else to verify the result.
I couldn't even. I just left work for the day. -
A legacy custom made WordPress Theme.
Old developer made main styling sheet with 8000+ lines of code with no component separation. -
Here is a little story about why I do not like to have to purchase developer tools and libraries..
Long story short it has taken at least 10 people more than 3 months to purchase two licenses of this component library which we still do not yet have licenses for.
It all starts with this guy who works here and has the job title 'solution architect'. He saw an ad on a website about some html component library. Then he asks me and the other developer here to look at it. He is super excited saying things like if we save only x days of time the cost is nothing in comparison to developer time..
The other developer and I both spend a few days reading the docs and trying some sample code. It offers some things we can use but I suggest not bothering with it.
Despite my suggestion he goes to the technical manager and they write up a business case. After about a month our receptionist cc me on an email chain from the it commercial manager who is asking for the licensing information so they can add the component creator as a vendor in the purchasing system. I send them a link to the component website which lists all that.
Jump forward two more months to last week and I got a spam email from the component company saying they have some new version out. I am wondering what has happened so I ask our receptionist she says it is with accounts payable and waiting payment - but it is marked urgent and she will find out.
Today I am cc in an email saying they have paid for it two weeks ago. So where is the license info? Nobody knows.1 -
So, I am building this UI library / component system for VueJS and finally finished the first "real" component: button...
I don't want to share the link yet, because I was lazy that this component is still not tested, but hopefully I will get to it...
What do you guys think?
Full image: https://imgur.com/0kRHBln3 -
Why do front end developers like to write their HTML/Component markup like this:
<div
id="test"
class="test"
>
Test
</div>
That lone > bracket absolutely irks me! Looks ugly! I prefer the Android style:
<div
id="test"
class="test">
<span>Test</span>
</div>
👌clean27 -
That this one component being object orientated is necessary and good design.
We have uh interfaces, theyre contracts.
Spoiler: it wasn't, I could have written it in half the code and half the time. But no, we gotta have those patterns, can't miss on dependency injection!6 -
How to fuck a web developer:
1- Introduce a shiny new shitty web component that is nearly impossible to figure out how to change it’s fucking background color, yeah.
Welcome everyone to 2019 why even it was so easy to change and customize your own shit, let’s just introduce thaaa faaacking web components and fuck everyone else. Let everyone learn again how to do the simplest shit ever.
Yes fuck everyone that is used to change and customize in an easy way.
“yUo wAnT uS nOt tO UsE SoC anD cLEan koOde?”
No no no. We will fuck you instead.2 -
- Searched for a cascader component for React
- Installed it
- Lost 2 hours trying to load dynamic options
- Turns out that there is a parameter named "isLeaf" to identify when a node have no children, which is also used to allow the loading of dynamic options
...
isLeaf...
isLeaf......
isLeaf.........
*chills*1 -
Uninstalling Visual Studio is a mess. It'll leave behind hundreds of silly component, which is funny because the main reason I started the process was to clean up a possibly corrupt installation. It also left behind a Docker tool component, which I can't uninstall cause that installer needs VS itself :D1
-
wow... the regular react community sucks...
where with react-native 3rd party libraries/components have very clear and detailed docs, the normal react libs out there are like:
20K starred component
"here is a .txt file with some props, TS? yea we use it, but everything is just set to ?: any"
quite the shame :/3 -
The beginning of my small app. Just a small question to the devRant community. As I am relatively new in Android app development I was wondering which layout is okay to work with?
The reason behind this question is that I have found that sometimes I'd move a component(e.g., button, text field) by a small fraction and boom! everything else is messed up.11 -
Happy days, yesterday we updated form 16.3 to 16.4 and thanks to them fixing the bug in 'getDerivedStateFromProps' my broken code is now breaking.
Don't you just love it when features inadvertently depend on bugs. The entire component ONLY worked properly because of a react bug.3 -
saw this girl's post LinkedIn. a typical influencer like format post which had nothing of value and instead was a post asking for help with a question (basically it consisted of a android doc link for an android component followed by some hashtags like #6969daysofcode #day69 #xyz and "has anyone used it before?share resources")
then i noticed 2 things:
1. she works in my previous company in the same position that i did , and started a month after i left. so basically she is my replacement.
2. i and my senior (who also has left that org) had created the exact same component that she mentioned in the post, and we had created that component as an awesome plug and play component that would handle multiple usecases with decent documentation
now am having this urge to dm her the exact classname in the code to see and learn 😂😂
or i can play this uno reverse card and write a blog on that component writing another influencer like post: "in my previous company, we created this awesome component and here is how it works..." her boss (our TL) also follows me and what i know of him, he will be tagging her, pinging on slack, and discussing it in the DSA the next morning 😂3 -
I learned today I can "npm install" directly from a GitHub repo. This allowed me to create a React component (viewer of gLTF files) for a 3D game and share it with my team. I know I could've published it to npm registry, but I didn't want that since it's a very specific component for our project, and private npm packages are very pricy.
Hope this random !rant will be useful for someone wanting something similar. -
Today I finally proved that a pre-existing component was overwriting the output of my component. It only took 3 months to find out the proof of it.
-
If you write a blog post on how to build “some-component” and the first step in your article is to run “npm install framework-some-component”…
I hope you die in a fire. -
Today I spent hours trying to figure out how the hell to add a Material-UI tooltip onto the ClearIndicator for a react-select multi-select component to warn the user that it would clear _all_ of their selections. Followed the examples in the react-select docs on how to make use of replaceable components, but all of their examples used a different library for the tooltip component, and there was no way I was going to bring in _another_ library that was going to add even more dependencies to the application.
In the end, my problem was that all of the examples were with components that could carry a ref and the component _I_ was targeting was a <path> element, which apparently can’t.
Solution? Add a div between the tooltip and the component I was replacing.
*facepalm* -
I just started using a new React component library
https://ant.design
apparently they decided that rather than include all the icons as a separate font file, or dynamically loaded SVG, they would encode every single icon as a SVG in a JS string, and concatenate them all together into a single file.
I feel dirty but I just committed a 2MB javascript payload to the staging server.
Suggestions for a LIGHTWEIGHT React/Typescript component library?1 -
I get pissy when people don't use linters, then I just spent ages super confused why the data wasn't loading in my component, then realised I hadn't decorated my class and I've been ignoring the red underline for the past half hour.
Seriously need to follow my own advice. -
Trying to review the architecture of an internal boilerplate... After having explained Atomic design principles, and the "component approach" to my colleague, he still managed to come back to me with:
- plugin/
- module/
- components/ ....
in his architecture... I don't know what to do. I'm depressed. FML. I'm quitting. -
Can you make me this page please.
Me: its done its 100% like the psd you send me
She: yes but this component is bigger then this one
Me: its the same here the css proof
She: can you change it ?
Me: ( this will change the hole component and douin the same shit ) yes i will do it for you.
She: again this is not the same size
Me: ( what the fuck i said to shut is mouths ) ............. Fml -
At last, after a year and a half working with legacy codebase, I got the greenlight from the seniors to refactor my team's app to modern front end technologies. You know, webpack, unit tests, component based architecture and shit.. I really love it!
My PM doesn't look as enthusiastic though...1 -
Bad leaders are simple - they give someone a job - simply to return an eon later unhappy with the progress - without seeking to understand a single component of the events that transpired during their absence. Place this mentality at the top of the hierarchy, and it will cascade throughout an entire organisation.2
-
Being blamed for and written up by your manager for a late deliverable on a ui component that the same manager failed to provide the APIs for in a timely manor.
-
Group assignment: writing a own Java logger component in a group of four, using nothing else than Java SE libraries, Maven and Jenkins. The software must be able to substitute the logger component without recompilation, just by editing the config.xml (setting jar file path and fully qualified class name of the logger).
I asked around on Slack which group is ready for a component exchange, so that we could test the switch. I found another group and I started doing some testing.
Then I got a `java.lang.NoClassDefFoundError: org/apache/log4j/Logger`. I got in touch with my peer from the other group and asked him, if they've been using log4j. Apparently they did, so I told him that the assignment was to write a logger of one's own, not just using log4j. Then he told me: "Uh, ok, I'm going to tell the guy responsible for the logger part about that..."
X-D -
"Exception has been thrown by the target of an invocation"
This error message pisses me off. I know the SSIS Script component is capable of catching exceptions, you can wrap all your code in a try/catch (please don't) and get an exception. So would it be so hard that if the Script Component throws an exception that it tells me what it is instead of sending me on a goddamn scavenger hunt?
The whole bullshit system of errors is why I hate SSIS. Just tell me what went wrong.
I did what I wasn't supposed to do, wrapped it in a try catch and it gave me a stack trace and an error message and all sorts of actionable shit. But why the hell can't it just do that on its own?
There is literally nothing worse, except maybe Hitler, than a goddamn vague error message.4 -
First rant after coming on this website.
Took me 5 seconds to find the search component, GUYS? VISUAL DESCRIPTIONS?5 -
its two years since ive told a story here but lets go.
we got a new client, who is revamping their infrastructure. i gave some tasks to 2 dev ops guys (i am not devops). they were primarily bash scripts that needed to be altered. (ofc i can write scripts it takes a moment, its their jd)
after a week of chasing them around, getting no result from them, i end up doing it myself because client needs it and the company needs this client. for one task, they told me it does not apply to the component we were working on. (it did, and i did it)
we have a meeting with higher management, they asked me how did i implement it, i show my entire working, my backtracing etc (everyone knows this is how you approach huge system, component focused strict deadline task). it was infuriating how they approached it by trying to understand complete system in one week. i asked them why they hadn't taken component specific approach. they said they tried but failed because..
[this because is the whole reason for the rant, because i believe this because should be a fire-able offense]
..because we were not using VS code to find things in files
HOW IS WHAT TEXT EDITOR YOU USE OR DON'T USE AN EXCUSE
ARE YOU GUYS GETTING THIS?5 -
I had an interesting mystery the other day. I work in the UK, but I'm working remotely from the US for a while. First day, I made some changes, ran the tests and they failed. Weird part was the failing test was for a component I hadn't touched. I took a closer look, and realized it was a date off by several hours. The test was checking that a passed in date appears in the output. But it was creating the date by parsing a string. The library I was using defaults to local time, but the component uses UTC. So, I had inadvertently created a unit test that only passes when run from UTC. But I had never noticed before because my work is in that timezone. Yikes!
-
When you join a project that has no testing, no component policy, a lot of css mixins, that has to work simultaneously as a pwa, android and ios app.
Oh, yes, obviously no documentation at all *flips table*2 -
I was in dependency hell for two days.
Im a junior working in a team creating an ember app. Suddenly a main component refuses to work since an addon threw "EmberObject undefined"... Nobody could reproduce it and we where out of ideas, so I tried fixing it for 2days (7h total). I finally got it working after updating yarn :D
It never felt so good working again :) -
If I have to write that web component again just because “well I think this technology will be better” I’m going freak out...
-
"Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."
WHERE. TELL ME WHERE THE FUCK THE PROBLEM IS HAPPENING. OR SHUT THE FUCK UP.3 -
The code is under "GNU General public license as published by the Free Software Foundation, either version 3 or any later version" and I used it as a reference.
Should I redistribute the my new code under the same licence and make the source open? Should I make just the component open source or the entire app?2 -
Glad that I've worked about 2½ days on an angular component, with all the struggles, brainstorming and meticulous care for "good" and "readable" code, just to find out that I misunderstood the requirements. Had to completely rewrite it...1
-
Sometimes angular can be really damn annoying with it's "Error handling".
When just one component has an error (For example using an non-existent form-control) it'll not only crash the component like it should, but the entire app.
whyyyyy do you do this to me -
To use Unity with VS you have to get Unity Build Tools as a plugin.
Alright, I'll download that.
Oh but now there's an error with connecting to unity, I need to get a newer VS and switch to the 2018 version of the engine.
Ok fine that's annoying but I guess I might as well upgrade.
Oh now there's no Intellisense? I guess I need to reload my project.
Oh what's this? Some major build error due to a missing component from Vs 2015?
This is getting stupid, fine let me install it.
Oh but to install the component you need to rerun the installer for VS, fine I'll redownload that.
Oh but apparently the installer _I JUST DOWNLOADED A FEW SECONDS AGO_ is outdated and needs to be upgraded. I can't _not_ update the installer and still install the components because that would be stupid, why would we let the developer decide what versions to use obviously they don't know what they're doing I mean it's not like they know how to use computers?
To get simple code completion, let's force developers to download an installer that then needs to be updated to install a component for this giant IDE that also requires the 2015 version of the IDE to be installed alongside a special plugin and patch designed for a specific game engine.
All this. For fucking code completion. I can't even get Intellisense to work in VSCode without fixing the issue since the C# extension in VSCode just binds to Visual Studio tools and runs the same shit with a different GUI.10 -
To the reactjs-centered fucks who develop the popular web component viewing software called storybook: have you ever heard about semver?
89 alpha/beta/rc releases for a minor update 6.3 -> 6.4 with "100's of fixes and enhancements" "in preparation of the HUGE 7.0 release". Gee I wonder will it have 1000's of bugfixes? How bug-ridden is this software?
Every minor upgrade since 5.x is backwards-incompatible and requires a day of frustration finding out in how many more fucking NPM packages you split your codebase just because it's cool. I know move fast and break things, but some of us have other things to do than resolving node_modules incompatibilities you know. "No just hit 'npx sb upgrade' you say". I did, I really did! And the browser showed a blank screen of death with tons of cryptic React errors, it really did! Thank God you abstracted away all your dependencies in that sb command, now you can't even read the docs about what could have gone wrong with a specific sub-package. You have @storybook/html but the docs redirect to React pages, so good luck if you use something else
This is so sad... like.. the IDEA of storybook is great. But why did faith put the capacity to develop such a tool into the hands of people who think the world centers around React and JSX.. HTML should have been the default, and then you build on top of that for your fav framework, not the other way around -
I can now appreciate some design decisions behind react-redux after witnessing some angular OOP clusterfuck.
I am sure there is some clean/correct way to code in angular, but everyone is treating angular as java.
Some angular application (the one I have to work with) is littered with network calls. It's difficult to spot duplicates. People usually resolve promises everywhere. In services, in a top-level component, or in for loops. In react, people use apollo/redux-query or redux-saga to handle network calls. Since these libraries prevent duplicate network calls internally and reassigning apollo network call function or redux action function is always useless, it's easy to spot all network calls in a component tree.
In angular, it's difficult to trace data mutations when data can be updated everywhere. In react, you can easily find UI state updates by tracing state hooks/dispatch/apollo usages.
In angular, it's difficult to trace data pipeline. Since everything is imperative by default, people need to add update functions in data subscriptions. With all the littered mutations. Soon you will lose track of what the fuck is going on.
I hope angular get the agonizing death it deserves and fuck everyone who codes JS OOP clusterfuck UI.8 -
Android stu. make you feel you're not up to date anymore with all the frequent download component.4
-
Always nice when you discover that your hardware has an *ELABORATE* HARDWARE OFFLOADING ENGINE with full protocol implementation for something you spent two months writing software for...
Well, at least the current solution works like it is supposed to. Don't know that yet of the hardware implementation.
It would save 4 euro component cost though if we switch to the offloading engine -
First day at Jetpack Compose: Wow, how cool!
One week of Jetpack Compose: This preview never works right!
One month of Jetpack Compose: Damn! There's no mature component to this shit!
Two months of Jetpack Compose: There's no going back and start using embedded applications as intent.
Don't get into it.4 -
So I was studying the Material Design skeleton component
https://material-ui.com/components/...
you know, like when YouTube shows grey boxes while the content is loading to let the reader know that there will be something there at some point.
But I keep waiting for it to load! My brain just assumes that the content is not ready yet so I wait but I'm the one who put it there in the first place! I'm supposed to be the one manipulating the user with intuitive UI, not the UI manipulating me!2 -
The other day I wrote a bit of code using a new component. I spent three hours trying to find why it wasn't working - how was I using the component wrong? It was rendering its source html directly in the browser.
I had forgotten to import the file defining it. -
Just curious on whether or not to open source something or not...
As some would have seen I'm working on a game engine/framework and putting a lot of effort into the development terminal (lumber camp) and had a fair few people show interest in it so thought I might chuck it on GitHub as I go but I don't want to allow for merging until the main component is at version 1 and stable...
Should I release as I go and not do merging or wait till it is at version 1?4 -
!rant
I've tried Ionic in the past, and put off development with it because I couldn't get it to be performant without crosswalk.
In 2015, React Native put an end to the 'Are hybrid apps viable?' argument. It had a much smaller compile size, large component library, and is very reactive.
Ionic recently released news on scaling back their tools to focus on core offerings. I can't help but feel they're flogging a dead horse.
I'm sure the Ionic team has very smart people on board. Can't they see they're about to be 'Parse-ed'?1 -
Finished && deployed a big release yesterday (like the main component, only changed in 4-5 times over the years).
You know the mental state of "ahh it's done"
I couldn't even savour it and theres needless work given to me just-because. It ain't urgent, it ain't high-priority, and IT'S A FRIDAY TODAY? :v
No wonder the smarter-than-me predecessors left this job. One can't even get a sense of satisfaction after putting that amount of thought and work.1 -
i fucking hate react and don't understand react
Is it cleaner to have useContext to pipe in override test data for storybook and write an outer context for that code only? Real production code can ignore and not set this.
Can child component onHover update parent's stateful variable to unpause the urql/graphql datafetch in parent data wrapper component. Parent pipes queried data to child component to properly display on hover that kicked process off.14 -
Frontend devs who mindlessly use bootstrap because everyone does and end up using only the responsive grid component, which they mess up completely in the end as well3
-
Salesforce Lightning Component
I am creating a salesforce lightning component to list the leads of the current logged in user.
I have managed to write the following code, but when i add the component to the page, and preview it, I dont see any leads.
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" >
<div class="slds">
<table class="slds-table slds-table--bordered slds-table--striped">
<thead>
<tr>
<th scope="col"><span class="slds-truncate">Company</span></th>
<th scope="col"><span class="slds-truncate">Annual Revenue</span></th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.leads}" var="lead">
<tr>
<td>{!lead.Company}</td>
<td>{!lead.AnnualRevenue}</td>
</tr>
</aura:iteration>
</tbody>
</table>
</div>
It will be great, if someone could tell me what is that I am doing wrong. Visit here! https://goo.gl/7jNnWu
Thank you3 -
"blazor is far better than any other frontend framework"
ok:
https://stackoverflow.com/questions...
ah yes, very nice and easy to grok syntax
clowns
🤡25 -
Not a rant.
But, who loves to run gource on your project's directory and gets excited staring at the awesome animation created based on the git logs.
+1 If the whole team stares at it and yell "Look, thats me adding the .... component" -
Started writing a blog post about a simple React project I created. Several hours later and I've finally gotten to the part where I'm creating the first component.
...this going to be one long-ass blog post. :P3 -
Working on a bugfix which has surfaced after 2 years, I hate the way that nobody thought of perhaps tidying up a component before leaving it gathering dust. Basically found dozens sections of identical code with minimal changes both for production code and testing :/2
-
My Frontend team lead came to me today to show me some "amazing" React component he wrote.
It was a pile of overengineered shit. -
Ok the ionic datetime component horror ended. I got it working good enough but I'm not proud of my code. The whole thing is a giant hack parsing dates to and from strings, switching locales, setting months and days and using the month as a daypicker as this fucking component does not allow me display day names in it, only month names. Such a mess... at least now I can work on the stuff that matters.
Actually though about making this open source... I reconsidered.8 -
Wrote an entire complex React component in about an hour. I'm talking it fetches data, manipulates state, renders child components, has some CSS-in-JS, and even uses the React componentWillUnmount method
I'm tired now
You ever look back on a piece of code and think 'damn, did I really write that?'4 -
Spent one hour looking for an error in my PCB only to find that the symbol and the actual component of a part in the parts library differ in terms of pin numbers. The colleague who created the part is already retired.1
-
1) Had to fix severe bugs in a dynamic UI (configuration-driven forms) component.
Recognized undocumented Copy/Paste/Modify/FuckUp driven variations of the same component all over the project. Unsurprisingly, the implementations covered 99% of the antipattern catalog on wiki.c2.com and could compete with brainfuck in regard to human-readable code.
Escalated the issue, proposed a redesign using a new approach, got it approved.
Designed, Implemented, tested and verified the new shared and generic component. Integrated into the main product in the experimental branch. Presented to tech lead/management. Everyone was happy and my solution opened even more possibilities.
Now the WTF moment: the product with the updated dynamic UI solution never has been completely tested by a QA engineer despite my multiple requests and reminders.
It never got merged into baseline.
New initiatives to fix the dynamic UI issues have been made by other developers. Basically looking up my implementation. Removing parts they do not understand and wondering why the data validation does not work. And of course taking the credit.
2) back in 2013, boss wanted me to optimize batch processing performance in the product I developed. Profiling proved that the bottleneck ist not my code, but the "core" I had to use and which I must never ever touch. Reported back to him. He said he does not care and the processing has to get faster. And I must not touch the "core".
(FYI: the "core" was auto-generated from VB6 to VB.Net. Stored in SourceSafe. Unmaintainable, distributed about a bunch of 5000+ LoC files, eye-cancer inducing singlethreaded something, which had naive raw database queries causing the low performance.) -
Cool project, cool people, but everything-just-works™ code makes it hard.
Every component has its own logic for the things that are already made, every table has its own filters and those filters are the same piece of code in every component.
I'll complain about this shit tomorrow as today I spent my day making a fucking table work, can't even copy the shit as it has its own intertangled logic that doesn't make any fucking sense.
Yesterday I ate Bolognese, today I'm working in one.
Lol the funniest thing Iis that dude who wrote this piece of shit is gonna review my code, can't wait for that call.
And yeah useMemo() on every fucking function. Functions pulling shit directly from state and returning it straight away...
Literally this:
const filteredData = useMemo(() => { return stateData }, [stateData])
Ok, what the actual fuck.
The weirdest wtf was that typescript is used as it should, like every case covered correctly. Not sure if gpt or just dumbasses working on this pos.7 -
I love the React and Sails docs. The contents are human-readable. Perfect for idiots like me since most docs are $h!+5%&* (hint: Git).2
-
For fucks sake we enforce monolithic design these days (even putting 5 different languages in one component-file) but not a single fucking tutorial, idea, design hint or article about how to put the fucken backend in that project, too.
The data structures used by front- and backend will be the same, do I really need to setup another oversized webpack buildchain, containing 90% the same sources to have my backend development in a different repo?
what the fuck.1 -
So, I got a task to modify a component from another team in another country.
Me: Ask the team for the repo link and explained what I was going to do.
idiot: You don't have access to our repo, I can do the fix next week and upload the code to confluence....
What the actual fuck. How can you even go there?!? -
Linux.
Guys, I need some inspiration. How are you dealing with memory leaks, i. .e identifying which component of the system is leaking memory?
Regular method of dumping ps aux sorted by virtual memory usage is not working as all the processes are using the same amount of memory all the time. This is XEN dom0 memory leak, and I have no more ideas what to do.
Is it possible that guests could be eating the dom0 memory?15 -
$ ng generate component gofuckyourself
I am having a fun time learning Angular. It’s way different from React.
I do like the css scoping a lot. Also it’s strange to not have to deal with state.
I am learning it because I see the job market requiring it as opposed to React.
Any React peeps feel me?3 -
Substantive post / question time!
So I'm working on this project that isn't a disaster but very much suffered from a lack of planning (both on my part and others).
This is a feature that involves all sorts of ways to view and manipulate some records and various records and so forth... I mean what isn't that really?
I think everyone tried but we didn't realize how many details there would be and how much we would need to (well I demand we do) share code across pieces and how that would slow us up when we realize feature A needs to do X, Y, Z and ... well obviously that means feature B has to also...
I'm not really upset about this, it's progressing and I'm learning. I'm writing it all now so it's under control, but...
I want to be able to display, visually where we are as far as each component of this project
- Component A
- Description:
- Component A does things you don't want to.
- Has features:
- Can blow up things in a good way.
- Produces flowers and honey on demand
- Missing features:
- Doesn't take out the trash.
And so on for component B, C, D, Z.
Right now I'm just using a plain old document file to write up a status / progress type thing now.
We use Teamwork to manage tasks, but I kinda hate it. It's similar to the above example in being able to bust out lists... but they're not connected in any way. All the details are lost on these bullet items as they're limited to one line when you look at everything ....
It's the classic case of a tool that shows lists ... but doesn't promote or allow for showing any connections between them...
And really the problem with this project is that we built little bits and features here, and little bits there from the outside in and ... really we should have built it from the top down where we had to face a lot of questions earlier.
Anyway does anyone know of anything that has project type management / status / progress stuff that is VISUALLY helpful .. not just a bunch of lists and progress bars?
I know I didn't word this well but I'm open to even wrong answers....2 -
ANGULAR 5 HELP REQUEST
Does someone know why tf router.navigate doesnt initalize the given component in Angular 5?
Stackoverflow doesnt provide the required answer...
The component is called (and works) if i reload the page on the correct url. Even the URL in the adressbar changes on router.navigate.
pls no h86 -
I'm so frustrated right now.
I put a lot of effort in a (voluntary) web project where its main component is based on a html table. Everything tested in dev (Chrome, FF), demo deployed and now I open it in Safari (macOS) just to discover that the rendering is broken. A Google search revealed some people with similar problems and many unanswered StackOverflow questions. It's unfixable.
Why Apple? Even MS got its sh** together.
It's unpaid work... I just wanted to something good.3 -
Today I had to fix a bug and it took me about 2 hours to find out that it related to a bug in a component which doesn't belong to the bugs component. In development everything where fine. But after deployment the bug occured. Found out that when running Vue webpack projects in dev it handles errors different, kind of a global try catch block. After deployment the application breaks.
This teached me again that we should not ignore any red error line in console. -
Fuck you Spring and your stupid cryptic, useless, no relevant information error messages.
"Oh I am crashing violently because some of my internal component cannot automagically talk to another my internal component" says spring.
Well shit, why do I let you manage your own dependencies if I still need to hunt down what garbage transitive dependency you bring in 5 time.
YOU HAD ONE JOB!!!3 -
I fucking hate the person that created the ionic timepicker its such a fucking mess if you want to do anything advanced and it's so poorly documented that most of the time you just have to guess what you should do. Best part: this fucking component doesn't even use a Date Object it uses A FUCKING STRING that it parses, so I have to parse, unparse, parse, unparse. Who in their right mind thought this would be a good idea?!
What frustrated me the most was when I tried to use their min, max functionality. I used the component as a timepicker, so I ignored most of the Date Object and just initliazed them at 0. Afterwards set the hr, min, sec and did the same for the max value. Doesn't work... It just bugs out and I can only pick midnight of that day... Okay. I kid you not: tried for two hours to fix this shit. Console logged the crap out of that thing. Everything seemed right. Out of frustration I then just initlialized the max value like normal, so the date is the current date. AND SUDDENLY IT FUCKING WORKED. WHY?! FUCKING NOBODY KNOWS. WHO, WHY, WHAT?! -
God DAMN IT!!!!
I swear, every single time I get close to a Spring project I'm elbows deep in shit.
Like this case... I have to explicitly specify @DependsOn for my @Component, so Spring could autowire constructor parameters. If I don't, sometimes the app starts fine (if I start it through IDE) and sometimes it fails, saying bean could not be created (apparently, there's some functionality gap causing PostProcessors not to be called if the bean is first touched by a constructor autowirer)
when they say frameworks are good and fast, I say "LOOK AT MY LIFETIME SPENT WORKAROUNDING THEIR ERRORS!!!" -
I'm moving some frontend views to a new layout. It involves lifting some state to increase performance (not load the same data 10 times). All fine and dandy - until I reach my colleagues code. Sure, they've not done a lot of frontend, but they don't ask for help either. So let me tell you - their code is crap. Really crappy. Better of, it's a bit more of a complicated component because it relies on some external constraints from another company, and that combined with the shitty code results in me having to rewrite the whole damn thing. Nice. Really fucking nice.
-
Spot a mistake in the code.. Should i:
1. live with it and continue to build on top of it.. Do a special validation just for this special case.. Which is a quick solution
2. or rebuild that component.. But have to rewrite the 4 controllers that is using that component.. Which is a long solution
The daily dilemma of taking over someone elses project.. 。・゜・(ノД`)・゜・。4 -
Why are hooks so awful?
What justifies having everyone using React relearn how to do things when hooks do not bring any new features to React?
Why does getting setInterval to work with hooks require a ~3000 word blog post by a maintainer which constantly assures you this IS a step forward?
Is scrolling up and down a class component really so hard that this clusterfuck is worth it?
>:(6 -
Lead developer likes premature optimization. Always forces me to remove a if here and there because "bad for the performance".
Now her optimization caused a base component to fail, ppl will have to spend the night debugging.
Best of all, it's my last day ;) -
I have a solution in mind and it’s really not that complex but my brain just doesn’t want to connect all the pieces..
When I think about component a and b, then c and a don’t work together. So I come up with a solution for a and a but then b is loose again..
I think I’m getting old🤕8 -
Can somebody explain to me why developers (especially web) have to micromanage every single thing into it's own f*ing component.
Story time: I have an input form with some tabs. I discovered that the UI Library (Devextreme) has a nice little component that handles forms, (including tabs, groups, etc.). So I make a page, configure tabs, inputs and whatnot.
Now, I already knew that my coworkers can't handle html that is bigger than a page. So instead of putting the configs in the frontend, I made nice files where I store those, to keep them nicely clean and seperated.
Me feeling very good, went off to have a nice lunch break.
I come back read the message from my coworker, asking me to make every tab it's own component and form and load them into a separate Tab-Component, instead of using the built in configuration
......
WHAT?
Like seriously. I have a f*ing library that handles that, why the f*ck do I need to reinvent the wheel here!?
Supposedly it's to make it more maintainable, easier to find bugs, flatten the hierarchy.
Here's a little wake up call you morons: Nesting hundreds of components into each other does *not* help you with that.
It just creates a rabbit-hole of confusing containers that you have to navigate and dissect every time you try to find something.
"Can I fix the bug in the detail Page? Sure I'll tell you tomorrow when I find out which fucking component the bug results from".
Components are there to be *reused*. It's using inheritance for reusing code all over again, but worse.
But maybe I'm just old fashioned, and conservative. Maybe I'm just a really bad software engineer, because nowadays everything seems to result in architectures spreading hundreds of folders, thousands of files with nothing but arbitrary cut-offs with no real benefit, that I don't see the value in.6 -
React native devs, I built a little video component that supports multiple videos, controls and captions. https://github.com/leksyib/...
hope you find it helpful! -
This is why my trust in updates is low.
https://en.wikipedia.org/wiki/...
Updates aren't always good. Sometimes, they might introduce problems and anti-features.
(Also, didn't whoever introduced this backdoor on a wildly popular component of Linux expect to be caught?!)6 -
Im making my first opensource project, it's a web component library, but I find the naming part so difficult..
How do you Guys find good project names? And anything i should consider regarding copyrights/e.t.c ?
Suggestions/you naming methods are welcome 🤌5 -
If somebody wants to become famous for the work they do fast. Join DIY projects such as React-Native.
You can become so famous for developing a highly demanded component, since there arent many well maintained this days.
I guess it is the case for many new and fresh projects.
React is awesome and react-native is the beast for cross platform development! You gonna love it guys! Jump in! -
RIP my fucking dog laptop. And FUCK Asus. The solution to fixing the fucking laptop is to get a new MB and display. But the motherboard is so God same expensive because you obviously have to solder every fucking component on it so that it's much more of a PITA.
PS yes I'm fucking angry but I hope y'all having a nice day.4 -
Developers !
I need fast advice!
If i want to have a domain like instagram e.g.
domain.com/first-lastname1
domain.com/first-lastname2
domain.com/first-lastname3
...
What is the best way to define those routes? I am using only angular. Its just a landing page so no backend frameworks are needed or used.
So if i have about 50 first-last names (and i might add even a lot more), is it a good idea to create 50 different components in angular where each component links to the different person identity of those /first-lastnameN routes?
Or should i have only 1 component and loop through names from a list and display them somehow? Because i dont know how to do this way And change the URL route into a different name7 -
A key component of being great developer is to have shit proof skin, no matter what boss/client/co worker throws at you it wont get under your skin and you keep being amazing
-
According to a site I was reading, theres 7 different ways to write a vue component.
Does anyone else think this situation is gonna come back to bite vue in the ass?
Did they even consider userbase fragmentation?1 -
Spent the whole night trying to get a react native component to push a csv file to multer in the backend.
Tried using fetch, then dependencies, then xhr.
Realised I had to create formdata. No such documentation on the internet.
Used God knows what after 3 hours, suddenly things are working.
I'll never be able to get answers in life -_- -
Spend 3 days redesigning a core server side component which now makes the server side stack perform around 40℅ better...... Boss has some feedback, ignores new changes, requests minor CSS changes to front end...
-
"This component is still using this thing which it shouldn't use." (Changing it won't reflect on the user in any way nor will it trigger a crash. It'd be nice to change it but who cares.)
"Feel free to update it."
Happy 1st birthday to low priority tech debt baby. May you grow up to have a long and fulfilling life.1 -
When the designer uses a react component in the design and we have to convert to vanilla or redo..2
-
attempt neater/cleaner implementation, doesn't work
attempt ugly implementation, it works
maybe one day i'll learn how to write good typescript and react
easier to throw the args around than try to figure out the correct syntax to pass a function to a child component, or not have a react hook closest to where it gets used? -
So I'm dealing with an Apache Tomahawk schedule component that's started acting up.
It turns out that when you click on a time slot, instead of just posting up the time slot, it posts back to the server the component you clicked on (the whole calendar), and the y position of the click.
Now, imagine the user has zoomed in... yeah, shit stops working. -
I want a component that rain rubber ducks or something spammy on a page in ReactJS.
Help a friend in need2 -
[New Collab]
Well it may be the only learning collab, I didn't read everything. But I started a Entity Component System library to learn some stuff like metaprogramming : https://devrant.io/collabs/826092/...
And I'll be really happy if some people could give me some advices / suggestions about generic C++ libraries and this code :D
I love you <3 -
So this "senior" programmer tells me that redux should only connect to the upmost react component and then IT should pass props down..... Like why even use redux then? WTF1
-
Sometime ago I had to debug a override to a Joomla component made by the trainne.
So the component work just fine on development but not in production. I made the transition myself so I knew the code was the same.
This is my first rant, quite long, hope you like it.
So I thought something went wrong in the database, I searched and didn't find a thing.
Then I decided to check the code... hold yourself now
The component had to support internalization ..so instead of using the proper function to see what the current language is, he made a if with the URL hard coded..
Like http:://dummy.com/en/
:)2 -
This morning at 5:30 AM I was awoken to 20 text alerts for services being down.
Seems they had been down since 2 AM but the previous shift didn't take action.
Long story short:
An outsourced common component is unavailable, and the team responsible doesn't know how to troubleshoot.
I pointed them to the exact issue.
We are now 10 hours into the outage and they still don't know what to do. -
Been working frontend on a very large ASP.Net Core project with React. The company is a multi national oil company. I asked for some documentation on their React components, like where is the props, why is this component showing this side-effect and is there a component for X and Y so that you won't have to pay me in order to dig around in the codebase? They told me they will document the frontend when the project is finished (whenever that may be?)
So basically, there won't ever be any documentation then.3 -
Project was based on Ionic3 with angular and SCSS.
Ionic has an SCSS array with colours that generates countless CSS classes for each combination of color-component.
Smh I managed to reduce the amount of colours in that array and reduced the overall size of the final CSS by 48% (from ~8MB to 4.1MB)
Of course the overall app had no performance increase BC the problem is the main.js file which is about 12MB with no lazy load3 -
I have reached the conclusion that angular and tdd don't go together well. Component tests take forever to run.
-
So made this component that my colleagues also use.
Today i checked source control...
What did they do to my creation?
Lines commented out here and there. Features destroyed by rewriting it, instead of just using it. Related unit tests broken of course. It had everything. And why not ask me?
According to Source control they helped each other. Working together as a team, desecrating my code.1 -
What do people think of Vue.js over something like Polymer for making Progressive Web Apps?
I've used Polymer a lot (Angular 1 before that) and I'm not a fan of it's data binding. It is using a web standard though, so should have more components available than any library that makes it's own component system (like Vue.js). -
Material-ui looks and complete and so but their documentation is a nightmare .
They seperated component example and the code of those example.You gotta go to one page to see a silder example and test it and then you have to click on a link at the bottom of the page to go to the code where they mixed multiple variation of this compoment into the same spaghetti code.11 -
I don't know how to CSS, react or front end
.entry:not(:first-child)::before {
however I read identical css in the chrome debugger for the ::before element generated and the general enclosing entry element for the elements displayed in a horizontal row
but the fucking divider element is askew for new elements of a different react component type i've added to the list
i fucking hate my life and front end -
My first writeup on medium.
hope it helps you to build npm ready angular library components
“How to built npm ready component library with Angular” https://medium.com/@mohanramphp/...
Please give claps for visibility1 -
Why TF is it easier to make a modal component with vanilla js compared to react? Like is ReactDOM the only way to add shit dynamically?7
-
Angular devs:
If you're importing a component into another component just to get a value from the controller of the imported component, that's like, awful, right? I can think of at least two other ways to do that more efficiently2 -
Fuck you android and fuck you material design components. How pale is their elevation shadow? Shadow is so fucking pale that I cannot notice if I don't look very very carefully.
How terribly they designed their app bar component? It is designed so fucking annoyingly that setting app:Elevation doesn't do anything even I have implemented every every solution.
Fuck you material design components that doesn't support material design even you are official library.6 -
I've made a react component to make the Conditional Renders look better.
If anyone wants to tryout. And give their reviews on it.
https://github.com/inf3cti0n95/...1 -
Whats it called when you subtract 1 or more from a number and get its decimal component back as result?
For example, lets say
((x+y)/y) - 1 == x/y
For example
((x+y)/y) == d('1.000041160213365071474861471983496528380123531238424473420976789')
and the right hand side is
(x/y) == d('0.000041160213365071474861471983496528380123531238424473420976789')
Is this trivial or something interesting or a concept that others are familiar with and I just haven't learned?7 -
Made a working full stack native app..
QA-"what happens if I change my time and try to fool the time based component."
Why didn't you tell about that earlier you piece of shit!!!! -
Fucking jQuery in Polymer 0.5.
When polymer 0.5 was released, things seemed incredibly easy at first, but when you need to do some complex things, the abstraction layer provided by web components are not of much help. Babel wasn't there too, so I ended up using scope hacks to access event listeners (var self = this). Worse, I have to use jQuery because many of things are downright tedious or fucked up back then, including myself.
Now, React is here; No jQuery, no hacks, no web component polyfills, no unsolvable perf bugs, no scope hacks, no 10sec loading time, no regrets.1 -
Personal Observation
=======
Today morning I was looking through different React UI frameworks for my next hobby project. MUI React has been my favorite but I wanted something informal for this project, so I opened up all the two dozen suggested ones by Google searches.
Since reversing on committing to a UI framework, later on, is a huge headache so I was going through the component demos to shortlist a handful for final consideration, and in that, I almost skipped out all the frameworks which weren't showing a preview of their component on the documentation page itself.
========
I wonder how many frameworks are genuinely good but are passed over due to others having better and more illustrative documentation. In a market with vast abundance, one cannot rely on the sincerity of the consumer to invest time and determine the best possible product, for there are plenty of 'good enough' products that the user does not really worry about false negatives. -
Man I really don’t like component libraries... perhaps there’s some thought out libs out there. But so far it’s been as if I were to build a bridge with a bunch of “reusable” parts but no one knows what the fuck they may be meant to do so no one bothered to account for anything and didn’t even fit screw holes or something.
So now I have to weld and screw everything together with fucking JavaScript in 10x the time it would have taken me to build the part myself.4 -
A question about Angular components. Can a component become a member of another component?
Let' s say I have a sensorReading component that looks like these green boxes. I only want 4 of them in app-component(default one). How can I create 4 of these inside app-component and access their properties and methods from app-component.ts script?
I can create 4 of them in app-component.html with ngFor but how can I access elements of these sensorReading components I created with ngFor? Members are sensorType, value and unit as you can see.16 -
This is practically impossible to goole due to the generic nature of the words:
I need a CSS selector to match all parts called "tab" with class "active" within a component. For some reason
my-component::part(tab).active
doesn't work, and I don't know if it's a bug or not.6 -
An old post from medium. I found it really funny. BTW my text field component has more than 20 optional props 😎
-
Day 6: Using webpacker for rails and react, still cant fucking figure out why am I getting one freaking STYLED COMPONENT error. As the great @AlexDeLarge said "Fuck you, Webpack, I hope your inventor dies in a fucking hotel fire!"3
-
I have a client who wants this web-based membership system I'm building to also accommodate arbitrary changes she makes to the user data in a third-party system that my component writes TO but doesn't receive data FROM.
No amount of explaining dissuades her from the belief that her changes will magically be represented in my side of the data.
So, yeah, I'm screwed.2 -
Anyone know why calling the "memo" function on a React component or using the "useMemo" hook is widely accepted to be called "memoization", when the name itself derives from an existing English verb which actually means what the function does? Why are we artificially creating jargon?6
-
Ok so I'm working at this bank that hired me as a lead dev to do something about the quality of the software. Now we have CI builds with front end and back end unit tests, sonarqube, coding standards and much more. First release.of our software had only 1 low impact defect! All other software they released in the past always has dozens of bugs.
Now I have this front end guy in my team. He thinks he is really good and actually said my front end skills suck. What?? Wtf you saying? I'm truly full stack and doing front end way longer than he does and already did many many successful projects for awesome well known companies. So he refactores some JS component I wrote. Now this component is very simple but needed to look and behave different on different devices and screen sizes. It was working perfectly. Our tester did extensive tests on all sorts of devices and browsers: worked perfectly.
So, this 'front end king' is now already in the 3rd week of making changes to this component. And still it is not working properly. And he doubts my front end skills?!
Hahahaha go fuck yourself you god damn piece of fucking front end retard!! Everything you make doesn't worl right away and needs at least 4 revisions. Fuck you!2 -
Why the fuck do consultants / noob types LOVE using fucking props in react components. This app is complex, just make a fucking redux slice and use that. I'm not passing 23904 props to a component to get it to render. God13
-
when I open my name.github.io/projectname it works fine, when I open my name.github.io then i re-open name.github.io/projectname it shows 404 not found component from name.github.io.
I'm using react, I feel like request is handled by name.github.io rather than by CDN, and the problem persist until i clear the browser storage.2 -
Yes, it was a single problem. And in the component, I've pointed at (and stuck to the whole triage time) 2 days ago.
2 days wasted.
Damn it!
At least I can finally have some closure for the weekend. It would be a shitty weekend if this bug wouldn't have been caught by today's EOD.
Damn it!
// Just needed to vent. -
Comment in a PR to use ur little component in the 50 pages of docs because it looks better. Fine.
Write 30min after i submitted the changes that it doesn't look as good as you thought and you can go fuck yourself fr. Should have tried it before asking me to change it everywhere mf -
Why useImperativeHandle in React is bad?
I have component A. I have component B which is a child of A.
I have button in component A that should change how component B is displayed.
Usual approach is to set state in A, change it upon click and pass that state as flag via props to B.
But there is another approach via exposing ref to component B using forwardRef() + useImperativeHandle().
And then calling method that belongs to B from A. Like this: bRef.current.changeDisplay()
https://stackoverflow.com/questions...
https://reactjs.org/docs/...
https://github.com/reactjs/...
People on SoF and Docs say that the first way is preferrable. But no one explain why.
Does anyone know why calling child method from parent is considered bad?4 -
when we started this project for a customer we are working on we had a training about how their BE and FE is working, their coding style and so on. FE is in Angular 4 btw. During this training for FE we were about to create our first component. The trainer: "Ok, let's generate this component." He opened some very basic project that they have as a starting point, selected a directory, crtl+c ctrl+v, manually renamed everything. "There you have it. We successfully generated a new component!" 😳😵
We are still generating them like that 😅 -
Why building a library of React component should be this hard: I'm sick of Webpack, Babel, Typescript and all the shit which is duct taped together to build some damn widgets.4
-
I was looking for a RRule Generator Component in ReactJS because I (a back-end dev) am lazy af to build front-end component. It drains my energy and I stumbled upon "react-rrule-generator". And holy moly. It is no longer maintained, but it has a very beautiful code. Then I thought, I should search more open source projects where code is clean so I can learn more.
So, do any of you know any open source project, library code or whatever that you think has a very clean code?3 -
reactjs project i got to work on has one "main" component and "modals" components referenced in it, that's it, one parent with many children. parent has nearly 1000 lines of code, child on average is nearly 500!
Let's talk about components! LOL :'/2 -
So the question is:
is there any better alternative to material ui?
mui is powerful, but I see no good in it in the field of customization.
You can't do shit without searching smth like: "how to remove the ::before in that mui component"
and getting some answer like:
"oh you can't do that with css! you should use that prop and shit or you should config your library in a way which you can remove ::before"
FFS WHAT THE FUCK IS THIS
I JUST WANT TO WRITE MY BORING CSS AGAIN10 -
Why, oh god why, is our microservice component responsible for translating our output back into your obscure namespace xml format based on a Guidewire policy models? Why are we not just sending you back a Json - which is our output - and you have to figure it out into your details? Who messed this up?
-
import React, {Component} from 'react'
class App extends Component {
render() {
return (
<div>
<h1>Hello World!</h1>
</div>
)
}
}
React.render(<App />, document.querySelector("#app")10 -
Why are websites fundamentally divided into 3 components - Html, CSS and JavaScript? Wouldn't a single component written with a single language be a better approach in all the aspects?25
-
Side project <3 well let's dream a little with this one.
I want to 'finish' my ECS library https://devrant.io/collabs/826092/...
And after that I want to make a cross platform window manager, and after that again a cross platform package manager, and with that a little gui library using blend2D which take full control of my window manager.
And well I'd like to make a server and a client for matrix too :D
OH, I need to find a job... Fuck -
difficulty in reproducing bug behavior
think i found a solution to prevent the infinite requests being sent by a react component who's code keeps getting rerun by react's scheduler.development.js
i have no fucking clue what's going on, on top of not having any foundation in react3 -
Trying to understand why the last guy who worked on my current project gutted out the framework specific data layer and replaced it with component-level ajax calls4
-
PC component idea: a component that has build in memory that you can load up with a disc image file and have a software or hardware switch that you can use to have your BIOS detect whether it is in a DVD drive mode or Floppy risk drive mode so you can virtually mount ISO images for example and boot off of that device...
Niece but pls someone make7 -
Two security researchers have published details about a vulnerability in the Windows Printing Service which impacts all Windows versions.
According to a Report of ZDNet : The vulnerability codenamed 'PrintDemon' which is located in Windows Print Spooler (Windows component responsible for managing print operations). The service sends data to be printed to a USB port for physically connected printers. In a report published, security researchers Alex Ionescu & Yarden Shafir said they found a bug in this old component that can be abused to hijack the Printer Spooler internal mechanism. The bug can not be used to break into a Windows client remotely over the internet, so it's not something that could be exploited to hack Windows systems over the internet.4 -
I have just witnessed hell given shape.
Imagine having react + redux
And finding component which just pass an argument to the children.
‘’’(children, param) => children(param)’’’ An argument which is stored in the store. Without even changing it. And it’s a standard around the codebase.
This is why we don’t deserve nice things. -
Ugh. Been working on a huge React component that's now dependant on another co-workers PR, and had this one open for like a week. Go to merge and one of the fucking useless reviewers decides that *now* is the best time to flag everything wrong with my code!
I get it, it's good feedback, but uh... Could you not have done this a FUCKING WEEK AGO instead of RIGHT BEFORE I GO TO MERGE?!
Prick.2 -
I was reviewing an Angular (remember this) project where I work to find any possibilities to optimize the performance of app. For a moment an idea came to me to look and analyze package.json and see if there is any package listed there but it's not being used in the application.
...aaaandd there were fucking 32 unused packages. 32 packages that have been installed but are not used anywhere in the application. 32!!!!!
And you know what the best part is. 2 of them were react packages. I mean, literally, their name was react-bllabllablla- component, and when I visited npmjs website, their description was react component that does bllabllablla. It's fucking react....... It's in the name, it's in the description. Is my company giving jobs to fucking blind developers or what? I'm going crazy!5 -
How do you guys like to name things, do you prefer being specific/verbose or generic? Say, we have a vue component to which we need to pass props. Would you prefer:
<todo-list todo-model="TodoModel" />
or rather:
<todo-list model="TodoModel" />
For me, the first is easier to search for, the other is more elegant and decouples what is happening from why is it happening.5 -
The more I learn about Spring... It feels like it just hides complexity.... And thus allows developers to make their apps more complex?
I can imagine there will be a Component class with like 20 references to other components either directly or indirectly... But then when something crashes or some error in output data is noticed in prod for some reason...
You cant tell exactly what cause the error because the objects' state is so complex, not sure which component or combination actually causes the issue.
Essentially makes a lot of black boxes?10 -
OMG! I just realised one new thing about how people implement Entity Component System library... I'm good to start all over again x) well I don't even remember how many time it happened now ^^"
-
I just found out i've wasted month of my life by troubleshooting wrong component.
I was unable to access my application in cluster and suspected networking and port configuration. (custom corporate setup with chaotic documentation did not help to situation)
In the end, it was caused by Jenkins, which failed on building a new container but still showed "build: success" while it deployed May version of container without any changes applied. -
!Rant
Curious about the feedback I'll get from everyone here.
We are looking for a email replacement like slack that may also have a wiki component. So far Quip is at the top I think.
Also the idea of cross platform development is being floated and I've been looking at Xamarin and QT.
Does anybody work with these or similar solutions?3 -
Ugh, I finally got a big project at work as the main backender but I still have a lot to learn. I fucked up the estimation for a big component and this is the fifth night im working late because I feel responsible.
Fuck this shit.4 -
Stupid Zkoss won't let me assign a UI component more than one parent. Instead of getting to use preexisting components I get to make copy/paste carbon copies. Shot my plans for code resusability to hell and back.
-
I somehow managed to create 2 different IDs and realize that I'd need to store previous value for one of them - in a tabbed view component. Although to be fair the component allows reordering tabs and moving them across containers with drag&drop.
-
Pro tip for XAML binding:
Set your data context before you initialize the component!
Otherwise the component will render with the default values for the properties. -
My opinion on CSS & component frameworks?
>Build your own and reuse.
Have I done so? No, but always wanted to and I will have the opportunity to build one next year for a company I work for. Best of all, it will be open sourced.
SUPER EXCITED2 -
The exhilarating moment of truth, when you build your project after making huge changes during refactoring some vital component and it compiles.
I also like the feeling of creating something. You can start a new project and after a few hours work you have made a skeleton that has some functionality. Only with the power of your mind!
It's the nearest thing to magic! -
Correct me if I'm wrong but my understanding of Keystore file is like a passwords database for an app/s that need to connect to others servers over the network.
How though does each component inside the app know which entry to use from the file?6 -
*tried to install latest intel GPU driver on a notebook*
Intel: this driver isn't design for your system please contact your device manufacturer
*Check again the compatibility list ... The CPU is present*
Me: okay, let's try this one, using display driver uninstaller to clean the old driver, reboot and launch the new one.
Intel: This program will install the new component graphic driver Intel®
Me: Well ... I guess I win this time ?
Still don't know why the previous one seems to block any installation of I don't manually clean it.
My previous version doesn't seems to be specific to anything ...1 -
I just can't believe react-component/form (rc-form) has no dev tools available
I really need to debug a strange behavior in one form as it seems the object of an InputEvent (I believe) is being passed along with the value (pic related)1 -
So we're supposed to test even the most imporbable edge cases to make sure that our software is reliable. But there is a limit. We let a marketing intern go bug hunting. We use the same component in two tabs of our SPA, but we distinguish them through some parameters. The intern found that if you switch back and forth between those two tabs super fast a couple of times, the program for some reason confuses those two tabs and swaps them. Now management has listed it as a priority. When are the customers _ever_ going to do that?!4
-
Funcking symfony 4. THey give error:
You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".
I have run this command to required twig bundle, it installed succesfully and still there is the error. Wtf. Cannot use fucking stupid simple twig.9 -
Any Vue expert here?
I just want to publish a vue.js component on npm.
I know how to publish it, but I was wondering I have to structure the vue component package.
I read (almost)everything about it, but I couldn't find anything clear.3 -
Have you ever used Hibernate Tools for reverse engineering a database? Seems to work only on eclipse. Do you know of a process to configure eclipse to do what it's supposed to in a finite and predictable number of steps? Or the only way is an unpredictable trial and error process in which everythime a component is updated the stack stops working?
-
What do I call Components as used in ECS when my app is entirely written in React and I want to avoid the tedium of qualifying the names?
This is a really fundamental thing to the project so I get to pick less-than-ideal but short names since anyone who works with the code will encounter it within the first 5 minutes.9 -
Task: Research how to refector our grid component to be usable with Redux
Result: The next sprint will be used to replace Angular 5 by React
what happend? Not that I am not happy with the decision but this was a quite unexpected result.3 -
Having to implement my own component from scratch because none of the existing solutions fit my requirements and taste. Oh, and also being stuck with developing the "traditional way" because it seems to me that the learning curve of frontend technologies is quite steep, and I have other things to do!
-
Where can find an all in one guide to set up/configure a ELK environment manually from the tars (not yum, apt-get, docker image)?
I am following the component docs from Elastic but not sure how each component integrates with each other or how to set the mongo connection (DB is not local)5 -
Entity Component Systems suck major ass. Atleast all the implementations I've seen
But I already have a few good ideas to make something actually usable (and way more flexible and way faster) -
The new team member seems to hate me... For releases, each component that needs to be released has an owner responsible for building and post release merging.
I already own 2 branches but she assigned me 2 more... -
that moment when you got just one night to prepare app for arduino based robot with pattern recognition. No hardware component with me and whole thing goes on asumption
f**k competition -
Any opinions on mock tests how deep should you mock logic of a single component?
I am convinced that you only should shallow mock your components.
However there seems to be some component structures out there that require much deeper mocking2 -
What's the worst part about testing React components? Using the equivalent of fucking stone tools to do your component integration tests! We got errors with no context and errors with no stack trace, just spewing out bullshit! A sample:
The classic "Can't access .root on unmounted test renderer"
The unforgettable and ALWAYS visible "Warning: An update to YourShittyComponent inside a test was not wrapped in act(...)."
We do love it! -
How, to load static images in the reactJS component, by using like declaring in a stateless function where we declare a style object name style return and passing into a <div style={...}>2
-
Hi guys, If you are front end dev (especially react dev) please read this and share your thoughts.
I recently started with react.js. But I didn't like the idea of nesting components. I know this is too early to talk about it. I'm not halfway through tutorials. But I'm loosing motivation to learn react.js
This never happened to me. I learned few frameworks in past. Django and codeigniter. They follow MVC/MVT architecture. And writing code in it looks cleaner and simpler.
In react JSX is confusing at first. You have to read same line twice or thrice to understand. I'm not saying JSX is bad, but it's not readable enough.
In early lessons I learnt that in react everything is component. And every component comes under one root component. Don't you guys think this well get messy for large application. You are dealing with number of nested components from one file into another.
I'm not against react. But the way react is forcing you to write code, is not something I enjoy. Let me know your thoughts. Maybe I'll get some kinda booster to continue react.1 -
Why in the world wide web is it so hard to use JavaScript to dynamically create a custom web component element after the page has loaded!? I swear I must be missing something obvious. I know it isn't working because document.currentScript.ownerDocument is null and I use that to get the template and it works great if the elements are on the page already but it fails as soon as I try to use JS to create a new element of that component and I can't figure it out!
I could easily change the pages to be pre-rendered with data and it'd work fine but I plan on building in a service worker to cache the page skeleton and store the elements in IDB.
(This has been just a fun side project for me this week, until now it's turned into a frustrating project I spent most of my night on)1 -
Been trying to learn component-oriented programming to develop front ends for a year but still can't get beyond a simple app or game. Specifically, I have been learning Vue on YouTube, Vue Mastery, and multiple other blog posts.
Any recommendations or maybe new methods of learning?5 -
Had to refractor and abstract some code into an angular 2 component so it can be reused by another. Well I could have just copied and pasted the code from component 1 to 2, that would have been a lot more faster than making this piece of code separate. The later is better, removes code duplicate and your code reads better.
-
The pain of migrating to a new, more streamlined framework only to discover it is missing a vital component and every Google search brings up results which rely on that component
-
Okay, here is the thing. I'm reviewing some changes about a new Pop Up component made in React.
Everything starts as usual; seeing the new code, what they remove, what they added. But for some reason one of my fellows decide to change the whole structure and changing component site to another folder, renaming and doing a lot of stuff not related to what we were suppose to do in that dev.
Am OK with improving code during new additions or tweaks of code but this... this goes too far.
Now am not sure of pushing all the changes to master cause I can't ensure everything will be fine... crap.
That's all, just needed to spell it out. -
- we need to show progress to the business
- but rewriting this component to be generic AND implementing it on the whole website can't be completed in one sprint. This will require a lot of regression testing, modifications to existing functionality, etc. we need to split it in two
- that's disappointing
we were forced to write shitty patchworks for over 2 years and now everyone's surprised it takes time to replace with proper code -.- -
I wonder if I thought about this before.
Project Buildbox ?
A project that contains a very large selection of popular source bases, and everytime a major lib or component is updated or compiler, it tries to compile all of them and run unit tests on their code ?
I FUCKING DID ALREADY FUCK YOU ALL !
THIS WAS A GOOD GODDAMN IDEA !!!1 -
What do you mean " 'StyleProvider' cannot be used as a JSX component"? That was added 8 months ago. Did something change in React 16 (yup 16) in the last few days since I ran an npm i? Dammit? Now I have to go dig through commits and see what changed5
-
Hey guys!
I would like to know what are your workflow for planning an angular2 project.
I wanna do it in a correct way. Component-oriented and using good practices with this concern.
I read your thoughts :) -
Recently faced a situation in project development. I am working with a mat- datepicker component and I have to read the time for each time date selection . In my case a particular date selection . For eg: a user wants to save a text at a particular date say 2nd June. Again he/she goes and save another item in the same date. Now the user wants to see the latest selected item at the top. Can we handle something like this in angular ?
-
How do you guys deal with spacing in react? I already tried: putting it in components' styles directly, creating a component for whitespace and making utility css classes. Still I always end up finding a situation where it becomes harder and/or requires a workaround.