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 - "elements"
-
Teaching 7-8 year olds the basics of web design. We're we're playing with CSS and changing colours of block elements and text. One girl put up her hand, completely confused as to why it wasn't working. Her code:
Section {
Background-color: rainbow;
}
Oh the wonderful mind of children26 -
TOP 10 PROGRAMMING BEST PRACTICES
#1 Start numbering from 0.
#10 Sort elements in lexicographic order for readability.
#2 Use consistent indentation.
#3 use Consistent Casing.
#4.000000000000001 Use floating-point arithmetic only where necessary.
#5 Not avoiding double negations is not smart.
#6 Not recommended is Yoda style.
#7 See rule #7.
#8 Avoid deadlocks.
#9 ISO-8859 is passé - Use UTF-8 if you ▯ Unicode.
#A Prefer base 10 for human-readable messages.
#10 See rule #7.
#10 Don't repeat yourself.12 -
The Company I work for has a new Website.
Me: opens inspector, changed an elements position.
Boss: "Stop! We paid so much for this you'll destroy everything."
Me: reload page, smile at him.7 -
Friend: You make games right?
Me: Yea I try to atleast, why?
Friend: I have this cool idea for an MMORPG with fantasy elements and dragons and stuff!
Me: Well thats a lot of work, just setting up serv-
Friend: We can have a bunch of cool stuff like Sandbox stuff, Guild battles and 100v100 pvp
Me: As I was trying to say, it would requi-
Friend: OH We need space for atleast 10 thousand people on each server!
Me: ... Good luck buddy!6 -
A single fucking CSS SELECTOR has over 12000 characters !!!!
JUST THE SELECTOR !!!
Just to add `color: #ffc311;` to a bunch of fucking elements !!!
WHAT THE ACTUAL FUCK !!!
Why not create a fucking class like `color--orange` and add that on all the elements you need to have that color, at least !!
THIS IS A FUCKING NIGHTMARE !!!15 -
Adding borders to HTML elements? Nah.
I put them in a parent element with a background color, then add margin to the child.7 -
My friend loves Dreamweaver... And continuously says that he doesn't understand what people see in it that is so wrong... It does the job right?...... Fucking blind...
Uses a bootstrap plugin which generates HTML code for bootstrap.
I did not know this at the time.
Comes to me the night before submission.
He: Dude i need help quick! I've got the presentation tomorrow morning and bootstrap fucked up the links to my style sheets or something, my page is broken and won't work. I should have done what you did and gone for Foundation...
Me: Yeah, because the bootstrap framework definitely affects the style links...
He: help me out man, please! I can't do this anymore!
I had my submission the day after him to prepare still...
Me: Teamviewer. Now.
Log on to Teamviewer.
See what he's using to code...
Dreamweaver..... Niiiiice....
I go through the code. There are empty divs with &nbsc; in them everywhere.. some HTML elements haven't been closed, no comments, indentation seems to be completely random. All the usual shit storm of a novice web designer.
The only thing is, this guy I know knows how to indent, I've seen his previous work. Why is this so horrible then???
I ask what the hell happened, it looked like a nuclear explosion happened!
He: Yeah I'm using this great plugin for Dreamweaver which lets me click and it puts in Bootstrap elements! It's great!
........ You're blaming the bootstrap framework for affecting your links to your stylesheets, you're using an elements generator, you're not checking what the FUCK it puts into your code, not fixing the indenting, not checking the standard HTML rules are followed AND YOU WONDER WHY IT'S BROKEN???
Kill me now.4 -
My boss likes to measure the spacing between DOM elements using a ruler to make sure everything is proportional.
I forgot to remove some padding on an element so it wasn't exactly centered, so he comes in and says...
"the padding on the site is off, I think you need to use this" *drops ruler on desk*
Now I have to keep this stupid ruler on my desk because whenever I forget to align something he says... "that's why I gave you the ruler"
Too difficult to explain to these subhumans that I don't need a ruler to write proper css8 -
When you start a new job as a Senior Developer, and start asking questions about the code, and you have these collections of conversations with other front-end people:
Exhibit 1:
Me: Ahh so I see the filtering and pagination is all done with Javascript in the front end...
Random dev: No, it's done with Angular.
Exhibit 2:
Me: I think we should add frontend pagination to this page. There will be too many elements on it if you're a customer with 2000 servers.
Random dev: Don't bother, there's no pagination in the API call... So that will not gain any performance.
Me: But it wouldn't take long to implement and it would improve the user experience, why would you want to show ALL the elements, when you have an option not to... Also, it WILL be a major performance hit, especially on mobile.
Random dev: People will use search anyway.
😥🔪
Also, there are no coding standards, every file looks different, and my opinion is being disregarded in everything, and I thought my last job was bad...
Seriously how are some people hired as front-enders?
Since I just took this job, I feel obligated to stay a couple of months... But hey, don't cry for me, I might have more rants for you. 😂
Sorry for the long rant, here's cake: 🍰5 -
Recently my company worked in project with a big international company which uses a crazy framework to build a part of there webpage. This framework only used random IDs and class names and not even different html elements. And to completely freak out all elements are positioned absolute and on every change the whole page go rendered.7
-
Dear software companies,
As much as I appreciate all the dark themes being used lately either as default, or added as options (Youtube, Discord, Postman, Windows Explorer, etc)... you guys still suck at theming.
A #000 background with #fff font is almost as bad as the reverse. Too much contrast! Then there are some apps which use grayish tones, others brown/orange stuff... pretty ugly if you use it all next to each other.
So how about just adding good theming support? Or even better: what about a global theming standard, a styling preference, a system wide json file which defines UI elements for all apps?4 -
My employer gives me a mission to complete in our project using plain js.
*Uses 30 hours of working time completing the mission using custom js elements*
*Presents the results proudly to the employer*
*Realizes Microsoft edge doesn't support custom elements*4 -
The time I had to explain to my CS professor that HTML elements can in fact have multiple classes.6
-
Devrant::Mathematicians, unite!
I found a new way to calculate running average.
Old:
a(o, n, i) = (o(i - 1) + n) / i
New:
a(o, n, i) = o + (n - o) / i
a: New average function
o: Old average
n: Element to add to average
i: New number of elements16 -
Spent 6 hours today trying to figure out why the CSS got all jacked up on a site right before launch.
Turns out, the new college grad who went to school for front end development doesn't know how to specify elements at all.
They made all their edits using the broadest selectors possible, sometimes at the tag level.
Having never looked at the site or mock-ups I had no idea what it was supposed to look like so I spent a lot of time waiting for people to tell me whether things were fixed, and telling what else was broke.
Good thing their college degree means they make 20% more than me.12 -
I remember that time, when a pretty big customer bought a tiny server from us and proceeded with setting up their tiny website.
Everything went smooth a smoothsauce until that day they decided to send a newsletter to 3 million subscribers - a complete nice email with alot of html and elements that was hosted on that tiny server.
The fact that most phones do download the emails with the attachment (pictures, html and shit) when the email arrive did they not know about. But sure - they atleast learnt something that day.
That shitty server died.2 -
!rant
There are some extremely competent, blind developers where I work. They have a tool that read screen elements out loud to them.
At first it was chocking to see they work with the screen off. It makes total sense though, however this thought never crossed my mind before. Their headphones serve as screen to them, which is pretty cool.9 -
A new linear time O(N) sorting algorithm [Keep it secret 🔒]
* Compare two adjacent elements one by one starting from the first element
* If there are out of order, delete the second element and continue with step 1
* If in order, go to the next two elements
* Once done, act like the numbers you deleted never existed
Works all the time.
Not yet published. Thinking of a good name for it.25 -
I fucking hate HTML forms! Especially representing bloody nested objects within them!
Fighting with html forms has taken at least 80% of my time over the past three features. Why can't I just do this via API? It would be soo much freaking simpler! ugh.
But today.
Today is not going to be a good day.
I not only get to expand a complicated vanilla form with with one nested object today, I get to expand it to include three nested objects. Normally this wouldn't be a problem because it's just moving elements around, but two of those nested objects need to be broken up and combined into three+ segments each. I have no idea how to even approach this.
ugh.17 -
Fuck you css!
Today I discovered (by losing some hours) that "position: fixed" has an exception when deciding where to position elements:
If the element with position fixed is inside an element with a transform, that element is treated has the viewport instead of the screen.
Why the fuck did someone thought that was a good idea?4 -
Prof: So yeah this is going to be difficult. We're going to make the scalable math library. Then we have to make a functional finite elements library using that. Then make a multiphysics engine using that library. This could easily take your entire PhD. Are you prepared for that?
Me: May I show you something?
Prof: Sure, sure.
Me, showing him: We can use moose to code in the multiphysics. It's built atop libmesh for the finite elements. Which can be built with a petsc backend. Which we can run on GPUs and CPUs, up to 200k cores. All of this has been done for us. This project will, at worst, take a couple months.
Prof: ...
Guys, libraries. Fucking. Libraries. Holy fucking shit.5 -
Ruby’s fanciness bit me in the butt today. It’s pretty rare, but often confusing AF when it happens.
array = [1, 2, 3, 4, 5, 6, 7]
array.count +1 +2
# => 1
What the fuck?
array.count +1 +2 +3
# => 1
What the fuck?
+1 +2 +3
# => 6
Okay.
(array.count +1 +2 +3)
# => 1
What the fuck?
(7 +1 +2 +3)
# => 13
Okay...
array.count + 1 + 2 + 3
# => 13
Alright, so spaces matter here...?
((array.count) +1 +2 +3)
# => 13
But not here!? ... Oh. I think I know what’s going on.
Array#count
Returns the number of elements. If an argument is given, counts the number of elements which equal it using ==
Well fuck me.
Ruby is seeing `array.count(+1+2+3)` instead of `array.count()+1+2+3` since `+1` is a value, not an operator followed by a value as is the case with `+ 1`.
Now, why was I using +1 +2 instead of adding some spaces like I normally would? So they would match what was in the comment next to them for easier reference. Heh.
Future dev, I did this for you! So this is all your fault. :|36 -
Fuck Firefox's CSS engine! Why is it so fucking buggy?
I needed to position some elements in a circle, so I used Math.cos(Math.PI / 2) to calculate their x positions. So, mathematically speaking, that should return 0, right? Turns out in JS it doesn't (because fuck precision). It actually returns 6.123233995736766e-17 and I was using that in the style, like top: offset + that.
In chrome it was working perfectly, but in Firefox all hell broke loose. All animations stopped working, scripts stopped working, demons were eating people alive.
And I lost hours hunting that down. My fault because I should have tested it immediately on other browsers, but fuck!11 -
"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"
- Brian W. Kernighan (The Elements of Programming Style)5 -
I've been calling the W3 Consortium every day for the past week leaving the same message:
"Why the fuck doesn't CSS "vertical-alignment" work on all elements?"
Still waiting for them to return my call..7 -
Note to self:
Don't try to remove elements from a list using a for loop because the FUCKING LIST SIZE CHANGES!
Just copy required elements to another list and discard the previous.
Spent fucking 2 hours on this.
/Rant9 -
i hate my life sometimes.
as much as i can write frontend all day long and in my sleep, it never seems to amaze me how quick you can get into a deep nesting of elements in HTML.14 -
When a website enforces "overflow: hidden" on all content elements, so you hit them with the good ol'
for(let e of document.querySelectorAll("*")) {
e.style.overflow = "scroll";
}14 -
Just found out you can take Screenshots of a webpage right from the firefox console... neat! You can even select specific elements to screenshot.
Just throw :screenshot into the console - Ff v62 (--selector [css-selector], --fullpage, and some other params you can look up)
Have a good Monday :)3 -
My life is just a series of disappointments right now from the people around me. Both personally and professionally. Glad I get to spend most of the time staring at a computer. Lifeless, yet the only rational elements in my life!2
-
The codebase I'm working with hss rarely comments on it. But when there are comments written they are shit like:
//Kill Matt
//don't ask me where that hard-coded value came from, it just works
//we have to add the elements to the fucking list
Reeeeally helpful. Yep.2 -
Started development on a Firefox addon again:
Adding an onclick HTML tag/property (however you call that) - doesn't fire at all.
Adding an event listener - says no elements with the class I'm using (checked, it's correct) exist, doesn't fire.
Well, fucking great 😐4 -
!rant
2 days ago I made an image crawler with a web interface that scrapes whatever url you put in and returns a list of images that it found on that website, right now it's only limited to img elements
It was pretty fun to work on it during the weekend :39 -
Fucking non technical managers and their shitty clients to whom they suck their tiny weiners need to realise that I cannot reorder elements every 10 minutes to the shape of their fart comming out of their ass, test it, deploy it, trigger webhook, clear cloudflare cache, and meanwhile be sure that it's written in quality manner for future upkeep with commits that have sense.Hope deadline driven development dies in hell where it belongs
-
3D engine in CSS. Every part of the model is HTML elements with CSS transforms. No canvas, no WebGL.
https://petertyliu.github.io/toaste...2 -
La me working on a new chrome extension:
- ok, this page has some hidden divs, I need to tell the extension to make windows scroll to the bottom while there are still elements with a hidden class
- creates a while(1) loop with a condition inside it to break if no elements with hidden class are longer there.
- happy with the code
- uploads the extension
- goes to page
- brings out developer tools
- goes to console
- clicks on extension on chrome
- right clicks the extension and then inspect
- ok here we go: la me click on button inside extension popup
- console shows some logs
- nice it's still looking.
.
.
.
- wait! Why is the page not scrolling ???
- looks at logs, WTF nothing changes in logs .....
- OMMMMG a infinite loop .... infinite loop inside chrome ....
- OMMMMMG my pc's gonna crash .
-stop please stop stop.
- wait! how do I stop this?
- tries CTRL+C ... nothing
- tries CTRL+Z ... nothing ...
.
.
.
.
Abort abort Aboooooort.
.
.
.
- Deletes extension from chrome.
-..... loop still running
- clicks on X to close Chrome.....
- not closing O_o
- Oh God, i need to do something before Chrome sucks all the RAM left.
- remembers the savior...
.
.
.
- Task Manager heeeelp me.
- opens Task manager
- chrome is consuming ~ 2 GB of RAM.
- WTF! Kills chrome.
Thanks for reading my lil adventure 😅5 -
APPLE IM GONNA BURN YOU WITH GASOLINE.
So i want to send my build to app store, from my iphone.
I want to log into iTunesConnect.
"It just works"
Yeah, right. Login page for itunesconnect does not render correctly on Safari web browser, on iphone, login arrow is not visible, and elements are scattered around.
Grrrrrrr.
On Google Chrome, it looks okay!!!!!!!!!!!
Spartaaaaaaaaaa.
After some tapping on screen, and rotating the device, i somehow found invisible arrow and managed to sign in.
BUT. Once inside i was unable to complete the process because UI refuses to scroll down :(
The pain...14 -
About every project at my last job. Impossible to like any project with a boss that legitimately thinks frames and tables are a better option than learning css.
But why not, attribute styling on html-elements are the future indeed.7 -
Debugging a HTML code from 2 hours which was working fine..
Ah!! No 2 elements should have the same id8 -
Just wrote an article about how to code this with CSS. I'm new to writing stuff. Would love to hear what you guys think26
-
Flexbox.. Where have you been all these years?!
When I initially started learning web development I remember thinking 'someone didn't quite think this through..' about centering block elements etc in the dom. Those days are now over, I still believe in miracles.6 -
I'm so sick of being forced to use CSS frameworks at work. Every time I see one of those HTML elements with 87 terribly-named CSS classes, I want to scream and break something
What's wrong with Vanilla CSS? Why is it so unpopular to just stick with plain CSS, I feel like I'm infinitely more productive when I can just write out some short CSS than trying to wrangle the dumbass CSS framework to do what I want it to do. Even things like Vuetify make me lose my mind with the stupid shit you have to do to get it to behave how you want it
Also, Material Design is ugly as hell to me16 -
The 'i am a total noob' feeling is real fiah like a mix tape right now. last week on a personal project i had the problem of placing a div within a div and the buttons not being clickable. i fixed it by fixing the positions of the elements. today the same thing but will a scrolling div and f*ck me right i just had to forget the solution. now i have been stuck for hours trying to figure out the right way and fooling around with no solution. learn your fundamentals.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
-
Tldr: got trolled really hard in a meeting yesterday
So currently, our website has some control elements which are ambiguous to texts posted by users. So I was tasked wi... [read more]3 -
(After several hours of debugging a returned "mal formed xml" error)
Me: We found out your api does accept our XML only if its elements are in certain order.
They: Oh! yes. :)
Me: ... and since XML should not depend on order, maybe you should fix that. Or at least alert about it in docs.
They: Yes, maybe we should. :)
Me: ... OK3 -
!Rant && !Believe what I am seeing 😓
Just downloaded Android studio 3 to give kotlin a go to find out their designer is soooo much better now, I tried editing an activity with constraint layout and many elements inside without a single freez 😨5 -
$ rsync /media/elements /media/data
... Why the fuck are existing files being synchronized as well.. they're the exact goddamn files rsync!!!
^Z
$ stat /media/elements/some.file
$ stat /media/data/some.file
Hmm 🤔 so they've got the same access and modify times, same size and everything, just that the change time is different.. well, guess I'll have to bite the pill then, syncing everything it is 🙁
Next day: rsync aborted because disk quota is exceeded
What the...
*Checks storage consumption on /media/data*
COMPLETELY FILLED TO THE BRIM
Oh God 😰 I didn't completely copy over a duplicate of that elements directory, did I?
$ ls -sh /media/data/elements
*exists*
$ du -sh /media/data/elements
1.4TB
But why..? All because I forgot a single / in my rsync command.
Please kill -9 me 🙂🔫1 -
Im getting annoyed by the new layout of google. Hovering the sidebar will make a scrollbar appear but the main part of the site's scrollbar will disapear. This results in most content moving from their original place. Let's make a Stlyish script to fix this problem I thought. Guess what now somethings stay where they should be, but the things that were first on the right place have moved. Also this will make the header shorter. I'm getting more and more amazed how shitty some frontend devs are at google.
To fix one bug they, instead of solving the bug, tried to counter the result of the bug.
I do like the z-index of the sidemenu though (it's 2005, the year youtube was created)12 -
I worked all weekend to reach a deadline monday for testing, fixed all issues detected and made the release document, change elements, everything required by end of tuesday. And sent it to release manager. He calls me back immediately and tells me the release Windows was closed monday and it will have to wait until next month. Noone told me the deadline for release changed, and the users are invited to a training and release event next week. Gotta love working for a huge company and being the little guy noone keeps informed. #releaseblocked
-
Ive been sitting here, trying to do VERY basic shit in angular (hiding elements and api calls), and after downloading 5 additional node modules that break my "build" (its not a fucking build, this is an interpreted language), im confident to say, fuck angular.4
-
I had to remove the inherited elements of a div element in jQuery so I googled "kill children".
took me a while to understand ...2 -
Designer: We need gradients and curved UI elements to make our product look modern.
- Codes over a month to support that.
Client: yeah gradients don't go with our branding and could you remove those curves!
FML4 -
Story time.
I worked on a project recently where the HTML was written just _perfectly_. Div elements were exactly indented as the blocks on the browser window.
CSS classes were self explanatory and altering them didn't introduce any new kind of bug on the browser window.
Introducing a new div block with CSS classes fit perfectly in the window along with responsiveness on different screens.
JS was also written in a self explanatory way.
It was such an Italian Chef's kiss grade of work that I just sat back and admired the glorious work for 10 mins. Totally deserved it.8 -
So recruiter scheduled an interview and he gave me the hands on problem they'll ask me to code.
He says I'll get 60-90 minutes... so I tried coding it and I've come up with some questions I will be asking the interviewer before I start:
1. How professional do you want it?
2. Can I use my own libraries so I don't have to write the boilerplate stuff? (That should cut-off about 30 mins and make the logic much clearer)
3. Can I write it on a PC?
4. Can I not write the Imports
5. Can we just skip this? As we all know, you can see 90% of the elements needed for your program in some form in my GitHub repos.4 -
So, I have a bit of a question for you guys..
I'm a self taught coder, but I think I lack some elements regarding the architecture side of software development.
Does anyone have some valuable sources to learn about it?
Thanks in advance :)11 -
I'm learning today from the big brain managers that elements on our mobile app are "clickable".
Truly amazing, I wonder which of our users are plugging a mouse into their phones and using it to click around.
incompetent 🤡2 -
I fucking hate how much content I need to block with ublock to make websites less shit. Fuck your banners. Fuck your surveys, fuck your newsletters/mailing lists. And fuck your fucking shit website designs.
Can't be the only one who sits there individually blocking all annoying elements on sites with uBlock. Many hours 'wasted' for the sake of making everything a bit less shit
Edit:tags5 -
Bug I had to fix today: some elements in our React app were being swapped with other elements.
We had `<foo>bar</foo>` on the component but on the html `foo` was being swapped with some other element in our app. It's contents ("bar" in the example) were being left in place, though, so we were getting `<baz>bar</baz>`.
This would only happen when running on production mode. On development everything was fine.
Also, everything seemed fine on the React dev tools. `foo` was where it was supposed to be, but on the html it was somewhere else.
Weirdest shit I ever saw when using React. I found a way to go around it and applied that fix, but I'm still trying to track this down to the source.
The worst part was waiting for fucking webpack to finish the production bundle on every fucking change I wanted to test. I didn't miss the change-save-compile-test flow at all.
What a shit day.4 -
Holy shit firefox, 3 retarded problems in the last 24h and I haven't fixed any of them.
My project: an infinite scrolling website that loads data from an external API (CORS hehe). All Chromium browsers of course work perfectly fine. But firefox wants to be special...
(tested on 2 different devices)
(Terminology: CORS: a request to a resource that isn't on the current websites domain, like any external API)
1.
For the infinite scrolling to work new html elements have to be silently appended to the end of the page and removed from the beginning. Which works great in all browsers. BUT IF YOU HAPPEN TO BE SCROLLING DURING THE APPENDING & REMOVING FIREFOX TELEPORTS YOU RANDOMLY TO THE END OR START OF PAGE!
Guess I'll just debug it and see what's happening step by step. Oh how wrong I was. First, the problem can't be reproduced when debugging FUCK! But I notice something else very disturbing...
2.
The Inspector view (hierarchical display of all html elements on the page) ISN'T SHOWING THE TRUE STATE OF THE DOM! ELEMENTS THAT HAVE JUST BEEN ADDED AREN'T SHOWING UP AND ELEMENT THAT WERE JUST REMOVED ARE STILL VISIBLE! WTF????? You have to do some black magic fuckery just to get firefox to update the list of DOM elements. HOW AM I SUPPOSED TO DEBUG MY WEBSITE ON FIREFOX IF IT'S SHOWING ME PLAIN WRONG DATA???!!!!
3.
During all of this I just randomly decided to open my website in private (incognito) mode in firefox. Huh what's that? Why isn't anything loading and error are thrown left and right? Let's just look at the console. AND IT'S A FUCKING CORS ERROR! FUCK ME! Also a small warning says some URLs have been "blocked because content blocking is enabled." Content Blocking? What is that? Well it appears to be a supper special supper privacy mode by firefox (turned on automatically in private mode), THAT BLOCKS ALL CORS REQUESTS, THAT MAY OR MAY NOT DO SOME TRACKING. AN API THAT 100% CORS COMPLIANT CAN'T BE USED IN FIREFOXs PRIVATE MODE! HOW IS THE END USER SUPPOSED TO KNOW THAT??? AND OF COURSE THE THROWN EXCEPTION JUST SAYS "NETWORK ERROR". HOW AM I SUPPOSED TO TELL THE USER THAT FIREFOX HAS A FEAUTRE THAT BREAKS THE VERY BASIS OF MY WEBSITE???
WHY CAN'T YOU JUST BE NORMAL FIREFOX??????????????????
I actually managed to come up with fix for 1. that works like < 50% of the time -_-5 -
React Native is a disappointment.
Navigation - Pick one:
- Laggy piece of ballsack react-navigation
- Native, but a pain in the ass to customize react-native-navigation
Have a UI which changes often, and have your UI respond to your actions after 2 seconds.
Have a FlatList, where one element changes, and have your UI respond to your actions after 2 seconds.
Spam click a UI element which triggers a state change, and have your UI respond to your actions after 2 seconds.
Fuck the bridge, slow piece of garbage trash cunt.
Fuck the buggy reimplementations of existing native UI elements.
I want to go native so bad, but I have no time, so I'm stuck with substandard cross platform trash.
Is Flutter worth getting into?8 -
ClientA: We need a minimalist design.
Me, took around 2 weeks to come out a very clean and sleek design with minimal elements.
ClientA reviewed and said: Can I add this and that? I think add in more picture can help to strengthen the credibility. How about......2 -
Back in college, we were taught to code in Java, nothing much more complicated than Hello worlds and non persistent CRUDs.
Somehow I eventually ended up discovering the auto completion function, which later I learned Emmet.
I had only found out how it worked with css classes, html elements and their IDs, but recently I started to wonder whether it could work also with the type attribute, so I went ahead and googled it.
I found this https://docs.emmet.io/cheat-sheet/
I was like:2 -
Dear client,
If you provide me a PDF file that you name a design, and don’t provide any info I can’t do much with it.
So I got a PDF design for the program I was building. I tried to rebuild the elements and copy your photos. As you said this was the only file the designer had. But don’t expect me to look for your fonts, sizes etc. And then complain that I need to be more specific in the design... and sending me by once do I need to ask her something?
Just f*** off -
Interviewing a 7yr experienced c++ guy, started with an ice breaker.
Me: when would you use std::list and when would you prefer to use std::vector
Candidate: vector for sequential elements and list for sequential but sorted elements
Me: why list for sorted elements? I didn’t say anything about sorting
Candidate: you’re rude
Real telephonic interview10 -
So I just spent over two hours trying to get...5 elements to align nice and even. Sometimes I would think I had it then..nope. Everything is thrown way off.
The one thing I've learned so far is to throw everything into more divs if something isn't working, and maybe that'll work6 -
I love Google Docs.
I hate their white-only style.
I love writing at night...
So I made myself a userscript to help my eyes when working late. Unfortunately they have css classes' names constantly changing (dynamically generated) with each update of the source code and I was too lazy to go full javascript on them because it'd make a lot of "getElement..." stuff or even jQuery only to change the theme.
It wasn't like full broken page, no... only some elements were broken, but in places it'd burn your eye out in 2am when the theme is almost black.
I felt like I have to do something, because I don't want to lose the Docs at night, but writing on their email list would be like talking to the wall. Then they updated again, some elements changed again and I was like... man, fuck you!
div#doclist > div > div > div > div > div > div > div > div+div
div#doclist > div > div > div > div > div > div > div > div > div > div+div
It works, if you are interested: https://github.com/KeyWeeUsr/...18 -
Yes, php, it makes total sense that `array_diff` compares the string representation of the elements.1
-
- Sometimes seeing all of you people have jobs as coders makes me depressed 😅.
- I couldn't even write a program (a few weeks ago) to insert an element into an array and shift the proceeding elements up one location 😩😢😓.
- Yes, that's how beginner I am 😳.
- Please, Don't kick me out of the community 😨.5 -
What's everyone's opinion when it comes to designing modern and/or minimalistic interfaces when using blur or gradients?
I see a lot of people who are hating blur used in UI elements and a lot of people praise the 'death' of gradients, what's everyone else think of these.
I personally love using blur in UI's and do like gradients if done correctly (not 2 colour gradients)
EDIT: I mean what's your opinion on blur and gradients not which one is better :-P12 -
Google's new Material design, with more curvy elements with broad borders, woth cocky font ...... is UGLY as FUCK
12 year kid at work10 -
As I already said on devrant, I'm a freelance web developer and I also often sell my services for teaching, loving that. Currently I'm teaching PHP with 30 students and it's going very well.
But yesterday, I received an offer for giving another course next month, this time on HTML and CSS, for a company I don't know yet. Almost every line of this email is wrong, outdated by 20 years, or just basically meaningless...
So I thought I could do my best to translate this as close as possible to the original, preserving the wrong formulations too, just for you devranters fellas.
"Hello,
I have an offer for a 2 days course for 5 people (level 1+ and/or 2), on HTML5 and CSS3. Below, the program :
1. XHTML AND CSS2 INTRODUCTION
Advantages and benefits of change
Understanding compatibility for different versions of browsers
HTML, XHTML, CSS edition tools : presentation of the different tools
The CSS language : different types of selectors : class of selector, identifier of selector, contextual selectors, grouped selectors
Blocks of text, boxes of text
The CSS1, CSSP, CSS2 properties
Relative and absolute measures units
2. LAYOUT TECHNIQUES
Full CSS, XHTML websites demo
Positioning with the position property, positioning with the float property
Columns creation
Layout for forms
Layout for data tables
Layout for menus
3. INTRODUCTION TO SVG (SCALABLE VECTOR GRAPHICS)
Role and importance of SVG
Using SVG on client side : basic shapes
SVG structure of document, tags examples
Using CSS styles with SVG
Different integration methods for SVG in a XHTML document
4. OPTIMISATION OF JAVASCRIPT CODE
Introduction to DOM and Javascript
Access to document objects : different access techniques, using this keyword, create elements dynamically
Positioning elements with the help of Javascript : positionning elements relatively to the mouse, move elements
Show/hide elements for creating hierarchical menus
Code optimisation techniques : using objects, objects litterals, loops optimisation
Can you please give me your availability ?"
Seriously...
CSS-fucking-1 ! Is it a course for dinosaurs ?
...And if only my rant was just about the program...
It's totally impossible to cover all these subjects in only 2 days with people of different levels and experience.
The guy exactly said to me : "don't worry about the program, it's an old text but they agreed to it anyway. They just want to learn HTML and CSS, some of them already know it but want to learn more, and the others are total beginers.".
And here is the meaning for the "(level 1+ and/or 2)" part in the email.
So... Surprizingly, I accepted the offer, but asked for at least a 3rd day. I'm waiting for their answer, but I'll do it anyway, adapting the course content to the actual students knowledge. I need the money, after all.
Wish me luck...
It's just sad that these formation companies are selling bullshit to clients that just want to learn something useful. It's too often like that, they sell shitty/useless programs and we have to catch up in real time with students that don't understand why they don't learn what was told to them.3 -
##Design to front-end conversion
Me - Send me the designs so i can start working it
Graphic Designer - Done ( Sends PSD files )
Me - Send me them separately, element by element, with transparency, color codes and flattened designs not PSD's
GD - Done
Me - Opens email to see elements that should be transparent saved as jpg's
Me - Opens PSD's, crop and save elements.
Meanwhile explains next time do this and that so it'll be easier.
Usually this happens few times a month6 -
Basically every time a designer thinks they made the perfect design and that if the program works by itself that's it. No man, I still have to spend hours trying to make every element of my program map to the elements you put for me to use. Give me time!
-
So I did an interview today and the problem was given a = 1 2 3 and b = 2 3 write code that finds the common elements.
I asked what the data structures are and they said it can be whatever so I said cool then we can use sets and do an interception to get unique elements.... this was in Python... but for the life of me I couldn't remember what the intercept notation was... and brought that up hoping they're give me a hint haha.
So I ended up writing a 8-9 line solution for what could've been a one liner fml: return a | b.
All because I didn't know the notation and still needed to give them something. Painful to write when I knew I was reinventing the wheel. Sign
I almost never use sets so this was heartbreaking hopefully I still get an offer!
How bad of a fail is this in y'all opinion?7 -
' "productivity" software':
trying to format a document in Word / Libre Office,
text defaults to some condensed serif font,
any at-sign, "http" or "www" automatically generates a hyperlink in an ink-blue color,
formatting and alignment of lines or paragraphs causes unrelated other elements to change unless you make sure to use tables, tables, and nested tables everywhere like it's Netscape 20032 -
I still remember when I was 8 years old and used to use "position:absolute"everywhere and use top and z-index to hardcodedly place my elements in my old web projects. I used a lot of <br> and padding + margin were not familiar words to me.
Somehow these projects were responsive, too. Strange times.
Nowadays I avoid "position:absolute", z-index and <br>s like the plague lol5 -
AAAAAH why does array_filter in php not readjust indexes after removing elements holy fuck what the fuck is wrong with this language3
-
i spent two days fixing some bs styling made on our platform. this guy put redundant attributes in the classes and the elements themselves and instead of using :hover he just created hover with jquery. i stared at my screen for 10 minutes when i saw that. the worst part is he was not dumb, so how 🤦♀️9
-
Fuck Outlook for desktop in particular.
Why would they still be using their crappy word-as-renderer in this day and age? Why are they ignoring perfectly sensible CSS from elements that aren't tables? Make it make sense!
It's especially galling that they've resolved it in the web version and in the native apps, _except_ desktop for windows. Even Mac is fine!9 -
My favorite thing about CSS flex-box is that I can re-order the elements and put the footer at the top of the page while I style it - and have no need to scroll down on every build. order: -11
-
Working on modifying a legacy web project and just about every single element is `position: absolute` with crazy z-index juggling and hard-coded pixel sizes and positions everywhere 😭
To make it even worse, a bunch of the javascript will also change elements sizes and positions so it takes forever to track down why an element is where it is1 -
ARGH!
Since that privacy cookie policy change thingy, every goddamn site pops up the dialog asking about it.
I just want to fucking read the page, quickly; get off my screeeeeeen!
There should be a standard to add something that lets the browser tell the page if you accept cookies or not, and which options to use; or at least make all the sites use a specific attribute for the elements of the div, so it can be automated (I know this is a dream).5 -
Constraint Layout is the best thing Google has ever made for responsive Android design, when it works.
Half the time it suddenly stops finding any elements I want to attach my selected one to, so it can't constrain what I want it to constrain.
A restart fixes it though...1 -
Why I try to ALWAYS use semicolons in JS:
In short, weird shit happens sometimes
An example:
So I'm doing a small project for freeCodeCamp, working with the Twitch API. I decided to make an array on the fly to append a few elements to a documentFrag in order after setting all my props. Forgot a semicolon. Apparently, Babel transpiles this:
info.innerHTML = (``)
[span, caret, info].forEach(elm => frag.appendChild(elm));
to this if you omit the semicolon:
info.innerHTML = ' '[(span, caret, info)]
this is why you should avoid relying on ASI, you're going to have to remember them in other languages out there, so for your own sanity, might as well get used to them. Just thought I'd share--who knows, might help a JS newb out there somewhere.5 -
The ::before and ::after pseudo elements. I’ve spent an hour sometimes trying to figure out how to get some element to do something and not realizing it was because of those.
-
Just solved a bug that was plaguing me for a week straight. Turns out I re-instantiated an Arraylist after adding all the elements to it. For no apparent reason. Face fucking palm1
-
!rant
...i realized i can actually pattern-match like this (as in, sequence of elements (including "whatever") instead of just head::rest in F#...
...from watching a talk about prolog.
like "wait... prolog can do this when pattern-matching? that seems very useful. i think i tried to do that in F# but it didn't work, which seems stupid... I'm gonna go try it again".
and sure enough =D
i think i really am gonna like F# if i find the time and resolve to break through how its different mode of thinking stretches my brain in ways it hasn't been stretched for a long time =D6 -
Let's build this form out of a bunch of divs and <a> tags, instead of, oh, I don't know, ACTUAL FORM ELEMENTS?!2
-
Holy shit I had no idea we can use content: attr() in pseudo elements in css! It's a whole new world baby!2
-
Waiting for the floors I just mopped to dry, and I'm still thinking about migrating and if, for example, the swiss give me a good job offer, I would most likely stick around. I don't hate to stick around Europe, but it defo doesn't have any of the elements I like. (megacity, snows, English speaking, multicultural, non-torturous migration laws)
Like, I'm at that point where I'm not making enough money and want to leave (also, gaining the freedom to leave from degree soon enough) but I absolutely hate my home place (personal reasons) but they pay a crapton better, plus I can get social security benefits.
... And I want to do a phd. 😐
Someone beat some sense into me please.13 -
There is a mAtHeMaTicAl pRoOf 🤡 that a comparison-based sorting algorithm cannot get more efficient than O(n*log n). That's bullshit. Radix sort et al. — granted, they're not comparison-based.
But there is one comparison-based algorithm that can sort an array in O(n). It's called Stalin sort.
It traverses the array and deletes every item that doesn't appear in order. Boom, problem solved — the array is sorted in O(n), at the expense of losing (most of the) elements.
This is the perfect metaphor of Stalin's politics.4 -
Web Juniors: “Why use a single grid element when several flex elements layered like haphazard pancakes will do the trick?”2
-
I’m convinced that CSS is black magic and those that can visualize what it’s going to do before changing code are witches/warlocks.
Usually my attempts end up in humor as the website ends up /comically/ broken. Elements shifted around to not anywhere near they belong, drop downs appearing from completely nonsensical places...
No idea how you all do it.2 -
Today I finally experienced the power of something I learned in university: propositional and predicate logic.
Many developers I know think that such education is useless. Well, today I have proven that it is very useful. On a day to day basis, working on banking software, complexity in purely logic is very low. However, we have a screen that must show or hide elements based on some input values and conditions associated with certain elements. How hard can that be, right? Well, there are many variables to take into account and as such it's absolutely not trivial.
This screen didn't work properly and maintaining the code is hard as there is a lot of logic to show/hide, enable/disable things and so on. After quite some time and attempts by fellow developers, I decided to refactor the whole thing. I'm responsible for the quality of the software and it was quite degrading, so I had to do something.
In order to get things working properly, I defined collections of constants (ui elements) and predicates. Then, I defined for which element what predicates must be true, in order to hide/show, disable/enable etc. I then translated these predicates into code. And guess what? It works! Of course it works. It's logic. But I'm very pleased I finally could actually use some of all the math I studied!5 -
!$rant
Hmm.. I kinda want to add a terminal type feature to my portfolio project that let's you type commands to navigate the site or change some options. I could still keep the standard navigation elements for the people who get mini heart attacks when they even see a terminal xD -
Today on "fuck Firefox": elements with display: inline and position: relative completely mess up z-index and nested fixed / absolute positioned elements. It's a known bug, it has open issues on bugzilla since 2005, but still no fix. IE 8 can get it right, but not Firefox...9
-
Im a junior android dev working in a startup. Wasted whole week on trying to parse some retarded json data generated by junior backend guy.
Im talking about objects with other objects as their elements, no use of arrays.
In the end had to redo his data in proper order so I could parse properly. Fkin waste of time.
At least now I know how to do his work, and won't be afraid to confront him with detailed criticism.2 -
That feeling of elation when you rig two timer UI elements with different behavior to a shared Chronometer object, saving the app memory overhead and increasing its performance, only for the designer to berate you for making the background the wrong shade of green. :|
-
Yesterday, my team had a react crash-course workshop.
It was like "you have to import a couple of libs, use 'em in different react elements you pull up and Tadaaaa! Magic is happening and your app works".
This workshop was the pinnacle of "intense".
I understood 60% of the stuff.
My team-mates about 15%.
So react is the front-end technology of choice after our architectural-team. The other teams have to use this the technology for their UIs.
This will be a lot of fun ^^1 -
why can't we take screenshots that include text? like a pdf. can't the os just detect where the text is off the application uses the standard library to draw out its text elements.6
-
Just lost hours of work because the winforms designer decided to send half my elements to (11, -8000) and resize others to (0,0). No matter what I did, there was no moving them back. And every change I made was reverted by some unknown mechanism.
Thankfully, I still have the user controls I built. But I still have to rewire 3k lines worth of form events.3 -
which *git* diff algorithm is your default and why?
## default (myers)
The basic greedy diff algorithm. Currently, this is the default. if you don't know whart you are using, this is it (and it sucks)
## minimal
Spend extra time to make sure the smallest possible diff is produced.
##patience
Use "patience diff" algorithm when generating patches.
## histogram
This algorithm extends the patience algorithm to "support low-occurrence common elements".4 -
Three syntax elements, pixels on screen.
By Unknown (for privacy), 2021
In this installation, the Author's desire to prove the whole world that stupidity is achievable with just 2 syntax elements is... self-evident!
Observe! The finely crafted letters composing this installation in their beauty! While the middle element is purely a distraction (one could argue it's there to be sure a critical issue doesn't happen even if the default value is already `true`), the sides of the installation reveals the true horror.
As the vision of the observer is attracted to the center, the peripheral vision sends the informations to the subconcious, making the observer slowly realize both that the Author willingly compiled `.less` files with postcss and that .less files are in the css folder, proving that stupidity is demonstrable in just two syntax elements.
A masterpiece. -
Spend an hour talking to junior dev about not nesting multiple #ID selectors in sass. He is still convinced it's better for 'rendering performance' and refuses to change it. Should I ask him to add 200 elements with the same style on one page to illustrate the problem?4
-
that feel when the mothfacka uses around twenty different fonts, and not be able to even name them, and don't get me started on the arbitrary resizing of links, and the seemingly random positioning of round shaped elements2
-
Just created a tiny (not yet stable) selector library that allows you to change properties on multiple elements just like you would do on a single one. It also has some more useful features. https://github.com/kosimst/kazel
Still in development, but prototype should work. What do you think?6 -
A remarkably stupid but efficient technique I invented today to measure the latency of an audio feedback channel involving multiple hardware elements that is difficult to synchronize by itself:
1. Knock. Observe the echo in the feedback.
2.Try to knock in such a way that the physical sound more-or-less lines up with the feedback. The human brain is really good at this on average.
3. Once you often only hear one knock (as perfect synchronization as your ear can tell), record several minutes of audio
4. Stop knocking, count the additional knocks in the echo
5. Multiply the average delay between knocks on the recording by the number of additional knocks from step 44 -
FFFUUUUCCCCCKKKKKIIIINNNNGGGG GGGGGGGOOOOOOOOOOOGGGGGGGGGGGGGGGGGLLLLLLLLLLLLLEEEEEEEEEEEEEEEE.......
Spent 2 days trying to figure out why the template app didn't work, debugging and commenting out code....
The solution was somehow the XML elements need to be flipped... AKA... the template ***written by a Google monkey*** is WRONG!!!!
https://stackoverflow.com/questions...6 -
Progress on my sudoku application goes well. Damn, what is javascript fantastic. While the code of the previous version that I posted here was alright I did decide that i want to split code and html elements after all. I have now a puzzle class doing all resolving / validating and when a field is selected or changed, it emits an event where the html elements are listening to. It also keeps all states. So, that's the model. puzzle.get(0,1).value = 4 triggers an update event. It also tracks selection of users because users selecting fields is part of the game. I can render full featured widgets with a one liner. Dark mode and light mode are supported and size is completely configurable by changing font-size and optional padding. So far, painless. BUT: i did encounter some stuff that works under a CSS class, but not if I do element.style.* =. Made me crazy because I didn't expect that.19
-
TIL that in JavaScript [1, 2, ] gives you a 2 elements array, while [, 1, 2] gives you a 3 elements array
WTF JavaScript???7 -
I had a challenge this week. I had to develop a business site in less then 5 days. I’m pretty happy with the result especially since i estimated multiple weeks for a site like this.
Ofcourse the manager had to come over and complain and bitch about alignments of elements. I’m sorry dude but with this kind of abnormal time pressure you don’t have the right to complain. Period.4 -
!rant /* but */ is funny == true
Developers! - should browsers forgive you ?
Or put a curse on you so you can never align your elements like you want to ?
You will know you don't want it there and it will annoy you, it will eat you inside looking at that webpage..
Again, W3C guys being straight up no sugar coating 😂😂😂1 -
To all the front-end engineers here I have a question. Say I am trying to create reusable CSS web components how do you create them? Shadow Dom?.
If not then how do you make sure the custom elements that you create can be resued in other projects?8 -
Fucking Google firebase database has no equivalent of 'SELECT * FROM shitheads LIMIT 10, 10'.
Better download those first 20 elements!
Descending order? haha. Fuck you.
Add your own custom index for that shit!3 -
couldnt work out today why some jquery wasn't stopping an elements width overflowing its container.
in the end after 1 and a half hours of wanting to bash my head in, I had the window expanded across both monitors and hadn't noticed the edge of the window was off the screen.
FML! -
Was struggling today with some form elements and asked a coworker for help. Coworker start interupting immediately and doesn’t listen to any explaining at all. After trying to get a couple of points a cross he suddenly says: ok, i’m gonna let you finish your sentence...
Thanks twat! Next time show at least a bit of respect and start with that!1 -
Designer: These form elements should not be textboxes; they should be dropdown menu's.
Me: No problem. Done.
Designer: Could you make X the only selectable option in field A and Y the only selectable option in field B?
Me: I sure can.
Me: Implements a dropdown menu with only one option, knowing that asking questions would label me as "difficult" and "technical". Uploads to production, decides to take a smoke break.
My coping mechanism: Maybe you should also add an Animator to the IK targets on your character controller in Unity instead of depending on a slerped IK weight value.4 -
Turns out you can treat a a function mapping parameters to outputs as a product that acts as a *scaling* of continuous inputs to outputs, and that this sits somewhere between neural nets and regression trees.
Well thats what I did, and the MAE (or error) of this works out to about ~0.5%, half a percentage point. Did training and a little validation, but the training set is only 2.5k samples, so it may just be overfitting.
The idea is you have X, y, and z.
z is your parameters. And for every row in y, you have an entry in z. You then try to find a set of z such that the product, multiplied by the value of yi, yields the corresponding value at Xi.
Naturally I gave it the ridiculous name of a 'zcombiner'.
Well, fucking turns out, this beautiful bastard of a paper just dropped in my lap, and its been around since 2020:
https://mimuw.edu.pl/~bojan/papers/...
which does the exact god damn thing.
I mean they did't realize it applies to ML, but its the same fucking math I did.
z is the monoid that finds some identity that creates an isomorphism between all the elements of all the rows of y, and all the elements of all the indexes of X.
And I just got to say it feels good. -
When another "front-end developer" appends the entire bootstrap CSS file to your templates because it needs to align two elements. To templates that never included any css framework cuz i hate them... Then he asked me for help because it did not work... I fixed an invalid CSS file reference.
FUCK HIS LIFE8 -
I am so sick with shithead designers that heard about android, but decided it was not important enough to consider it and make their design for android and ios exactly the same. And then force you to implement the ios app in android with the same elements, even supressing native out of the box funcionalities.
They get paid for producing poopy smelly shit.2 -
The newest fucking chrome update made image previews (and other dark elements in chrome) fuck up (the actual image is only the white rectangle, the shitty half darker tone is the shit I am talking about), I even deactivated all the fucking plugins to make sure its none of them, did anyone else have that and fixed it? it doesn't even appear in the fucking source wtf5
-
Any flutter dev, please help.
I asked a question on stackoverflow but seems like nobody's ready to help.
Please help.
https://stackoverflow.com/questions...5 -
Functional-Declarative languages should only be esoteric ones. They are interesting for research and a mathematical toy, but they should not be used for programming languages used in the real world.
I currently try to write OpenSCAD code that places a list of modules, with information given from an array, with varying sizes next to each other. And is so hard and cumbersome. Whoever had the idea to cripple OpenSCAD by not having variables was stupid or sadistic.
The actual CPU run instructions, one after the other, there is no good reason to not allow some imperative elements in a programming language.24 -
i was around 8, i saw my dad coding with VB3, I was fascinated. He taught a bit and showed me his project : A complete and very feature-heavy radar simulator, with lots of graphical elements and planez flying by. I was dumb struck. he even gave me a little project to do : A calculator. Thank you dad
-
After completing urgent projects that rewrite a lot of "overtime" or even personal projects that rewrite like a few weeks to complete.
Old web dev days pre-BS... All the CSS needed to and the cross browser compat. The divs don't align... Can't get elements to center... Or it does, just not in browser X...1 -
why the fuck no client underdtands that a native select input cant be styled to show fairies and angels. and the same goes with many other browser elements.1
-
Fuck this algorithms course. How the fuck do you expect me to populate a 2d array of N^2 elements with data in linear time if you won't fucking let me write to more than one element at a time???
Dear CS department,
Make sure your homework makes fucking sense before shipping it off to students.
Regards,
A pissed off student
And before anyone comes at me with this "But you can technically do that if there's k*N elements and it would still be linear time" shit, fuck off; there's a worst case of needing to write to half the elements in the 2d array so it's still N^2 no matter how you try to "but technically" your way though it.3 -
I had a brainfart and I can't google it, do you happen to know of a game that deals with inventory in the style of a stack (large, but you can only access the topmost few elements at any time)?4
-
I really don't like the atmosphere in hospitals. Only thing I like about hospitals are the beautiful nurses and doctors, esp those who look in the eyes when talking.
If you think about it, basically what a doctor is to a humans or animals is same as what a computer technician is to a computer.
Maybe a dozen decades down the future, the reality may be such that there will be a convergence between the doctors and computer technicians as humans start integrating humanoid elements in their body.
I think it's l inevitable.2 -
You know it's kinda your fault when your CSS works properly in Internet Explorer and Firefox, but doesn't in Chrome or (non-Chromium) Edge.
However:
Spec says text-align doesn't apply to inline elements, but both Internet Explorer and Firefox seem to disregard that spec and do it anyway. What the fuck?3 -
I: I see, this web contain user functions, like registrations, product adding, details editing and many other stuff. Can i ask one question?
Client: Sure.
I: Why designer did not designed those elements?
Client: You can do it better directly from the code.
Should i be mad or delighted? I have no idea. -
Fucking hashtables...I forgot that removals can screw with the probing sequence, causing later lookups to "randomly" fail after hundreds of operations and elements.
Spent 4 hours staring at 3 while loops and data sets of hundreds of key value pairs trying to figure out why one giant data set worked fine but the other failed on some lookups.2 -
Hey guys and gals, I built a silly little memory game! Comment with your best scores (no inspecting elements...that's cheating). Also, don't click too fast or it'll break. Lol
http://threetendesign.com/memory4 -
Having fun with HTML5 custom elements and shadow DOM. Finally, a genuine way to make widget libraries.6
-
Fuck... I hate these moments. Yesterday I received a new project from one of my customers... this is great, but now is 4am and I can't stop to think a concept to how implement it. I know that this will bring also a lot of money but really, I hate when I have to think also the night. Today I've school and it will be a fucking day. I can't stop to think a good concept and a connection between elements. Sorry I am just frustrated3
-
I think it’s so cute when websites tell me that I need to disable my adbl....(inspect page).... no wait, we can talk about thi....(finds elements)....awww cmon man... really? This isn’t fair..(adds display:relative)... this is some bullshit right here! I’m really disappointed in your beha....5
-
Hi XXXX,
Thanks for speaking to me earlier,
If you could send me the following details we can really get the ball rolling with the recruitment process.
• Any jobs you have applied for or interviewed (I need company name and position)
This stops me re applying you for jobs you’ve already applied for
• Any key elements an employer has to have for you
• A name phone number and position held for references at your current contract.
If we can get these over asap then we can start the ball rolling and get you a new position in the most time effective manner.
Kind Regards,
Brainless Lazy Back-Stabbing Recruiter.3 -
Designer:
Responzivity looks little off:
I:
1) Yep, by default all elements are excesively large, so i need to do many breaks to fit all scenarios and keep important informations in first few screens.
2) Sometimes you follow 1280 max-width, sometimes 1440, sometimes others. It is hard to achieve some consistent look on smaller devices than your biiig monitor.
3) Design is heavily dependent on large and various images with text overlay. In some scenarios text become unreadable.
4) You did not design a responzive version in first place, so FUCK OFF! I just trying to do my best to fix your shit because you suck as hell!
Escaled quickly, but i'm so tired of this idiot.4 -
I start reading about it, from their website, forums, blogs, etc.
Next thing I usually do is to take a look at stuff made of that tech and mess around to see what it looks like.
Then I pick a book about the subject, set up the basics and start from the very beginning, even if the prologue starts with "programming is..."
At some point I start to connect concepts previously seen in the first step with the chapter I'm in, or even identify elements discovered in the second step.
Works for me. -
What's everyone's opinion on visual design languages (languages designed just for visual elements. EG, XAML and HTML)
Personally I am not a fan of them at all, much rather have everything done programmatically, maybe this is coming too much from me using GameMaker and also vala with GTK, it just seems to be easier to grasp and work with imho.6 -
I am working as designer, doing psd to html stuffs and i'm having hard time when the developers inject their own css inside the html elements (inline) and broke the responsiveness4
-
Open inspector from Chrome in front of your friends and proceed to deleting annoying ads or bypassing scripts like a boss.1
-
Fuck, now I'm actually somewhat mad how much time those figma plugins could've saved me lol.
Especially things like generating a quick color palette, that immediately pastes them next to the element are so damn useful.
Generating real-life data into text elements, avatars pulled right from an API, auto fetched graphs for example data, all the goodies that make life easier.5 -
"Simplicity is not about making something without ornament, but rather about making something very complex, then slicing elements away, until you reveal the very essence." - Christoph Niemann
-
"Today’s designers and illustrators are synthesizing the best elements from past eras of graphic design to create a new visual language with a reduced and rational approach." - R. Klanten, H. Hellige3
-
Why is it so fucking difficult to delete saved passwords from your Google account? I tried deleting all in Chrome, but as soon as I launched Chrome on another computer all the passwords synced down. And in the online console you can only delete them individually. Luckily I found a JS snippet that grabs all the button elements and clicks through them, but why does Google have to make this so difficult? Fucking hell.1
-
Today I got the chance to try 1 of the 9 HoloLens available in my country. I'm completely mind blown. The ability to incorporate virtual elements in the real world and make them behave like real physical objects is incredible! I really hope AR gains traction to buy an headset for myself.
PS: Project X-ray is one of the most fun games I've ever played.1 -
If somebody needs a project idea how about a really dumb JS Framework that allows you do basic DOM Manipulation, just like jQuery, directly in the elements class attribute.
For example this is how a document could look like:
<body class="init-hide-id-otherElement">
<button class="onclick-show-id-otherElement">
<h1 id="otherElement">Hello</h2>
</body>
What this does is first, at the body's init-* class, it hides the element with id otherElement at page load. Then, when you click the button, the element with id otherElement gets shown. Instead of *-id-* you could also use *-class-* which selects a class.
Basically the syntax is:
<event>-<action>-<id/class>-<the elements id/class>
Of course this has a lot of limitations, for example the selectors are very limited, but it would still be very cool!3 -
for me, the most interesting project I''ve worked on was 4 years ago for a beer company.
it was a facebook app developed in HTML (not html5), jQuery & jQuery hi, php, imagick, ffmpeg, & YouTube library.
for the Euro Cup, users had elements to drag and drop on a stage, add frames, dialog boxes, and create a 15 second animated story board. all positions of these elements along with the frames where sent server side to create images of each frame (rendering fronts and positioning), then combining them using ffmpeg to generate a video.
these videos were later uploaded on the client's YouTube channel.
this project was awesome, knowing css3 and html5 were prohibited to use due to cross browser compatibility. it was ban exercise on all levels :) -
git add --all && git commit -m "Alright, here's a story for you. I set out to create a navigation mechanism on here, so we could have back buttons and tabs. I also wanted the ability to customise the UI elements. In order to do that, I combined two dependencies. Each one of them provides us with some of the functionalities we need and there's quite a bit of overlap between them. Moreover, each dependency creates the UI elements differently. So customising the UI is becoming a nightmare already, since it's getting harder to tell which one of them is affecting a UI element's appearance. In spite of all that, we have an app that navigates and has tabs."4
-
The company has been moving projects away from ASP .NET to MVC .NET. One of the cited reasons was improved performance. The ASP .NET projects were not the fastest applications available, but were manageable.
The new MVC .NET projects are slower than snails. Every single page element is trying to do an async call to populate metadata elements. There are sometimes 50 or more controls per page due to the industry this software is used in. FML.7 -
Working with clients that think all website elements need to be transparent. It literally raises my blood pressure.
-
!rant I'm lucky to work with 2 of the best back-enders in my career. We were royally pushed/screwed over today due to PM's last minute demands for a phone app that they were demoing to 1000's at a conference. Guess what, certain elements broke. But the guys jumped in to get the API fixed. It's a bit much being the only phone dev on the team but with such strong backend support, it makes it a pleasure to come into work. You know who you guys are. Thank you. Remember a little support makes all the difference in the workplace.4
-
You know you want to quit life when: You spent a whole 4 hour journey looking for a missing property in css that you never added expecting other elements to behave a certain way and you sit there neanderthal looking figuring it out.
-
As we are all aware, no two programmers are identical with regard to personal preferences, pet peeves, coding style, indenting with spaces or tabs, etc.
Confession:
I have a somewhat strong fascination with SVG files/elements. Particularly icons, logos, illustrations, animations, etc. The main points of intrigue for me are the most obvious: lossless quality when scaling and usage versatility, however, it goes beyond simply appreciating the format and using it frequently. I will sit at my PC for a few hours sometimes, just "harvesting" SVG elements from websites that are rich with vector icons, et al. There is just something about SVG that gets my blood and creativity flowing. I have thousands of various SVG files from all over the web and I thoroughly enjoy using Figma to inspect and/or modify them, and to create my own designs, icons, mockups, etc.
Unrelated to SVG, but I also find myself formatting code by hand every now and then. Not like massive, obfuscated WordPress bundle/chunk files and whatnot, but just a smaller HTML page I'm working on, JSON export data, etc. I only do it until it becomes more consciously tedious, but up to that point, I find it quite therapeutic.
Question:
So, I'm just curious if there are others out there who have any similar interests, fascinations or urges, behaviours, etc.
*** NOTE: I am not a professional programmer/developer, as I do not do it for a living, but because it is my primary hobby and I am very passionate about it. So, for those who may be speculating on just what kind of a shitty abomination of a coworker I must be, fret not. Haha.
Also, if anyone happens to have knowledge of more "bare-bones" methods of scraping SVG elements from web pages, apps, etc. and feels inclined to share said knowledge, I would love to hear your thoughts about it. Thank you! :)2 -
Me: So, let me clear this out. On ship course detail page is main header fixed to the top. Phone number fixed to the left side and subnavigation fixed under the main header when it reaches the top. From start it is fixed to the bottom.
Designer: Yes.
Me: Client also want chat icon on right bottom corner and usual cookie bar on the bottom. Both elements has fixed position.
Designer: Is this problem?
Me: Do YOU think this is problem? -
My company really ain in the arse, communication is an issue here. The company have the elements of cronyism and nepotism in dealing with employees as everyone is judged based on who you know and how close you are to management vs pure merits of one's work.12
-
Implementing a for loop in js because I need to skip some elements in a map as I transform. I'm feeling dirty
* cries in functional *4 -
When the new owner of the company decide to regroup every branches of the business to use a disastrous unoptimised .NET software. When the current one is very fast, the interface kinda UX-friendly. Now its, a home hosted .NET software with Windows forms elements with multi-windows inside the main software. Just to help you create yourself an image of the situation. It cannot be installed if there is more languages then only En-US. It will freeze the updater.
The time between switching tabs is in average a 3-4-5 seconds each time.8 -
So... I might have to build a survey and analysis tool to be used online nation wide (the final client is the government).
The bad news, it's probably going live in a week.
Even though 90% I wrote and tested in the last 3 years (matrixes,formulas,dB, Interface elements ) from previous runs, I have to handle fronted, databases, math, testing and design.
Over a daily changing methodology and session workflow (by my direct client).
No sleep for the next few days 😭6 -
Recalling the the time I was discussing a web dev based assignment with a classmate( And I wouldn't even go as far as to call it web dev, it was just making connect 4 using js and node).
Me: so did you get to implementing your game with firebase.
Classmate: no, but hey did you use loops for making the board?
Me: ?? There were like 50 elements ofc what did you do.
( Sigh* to think it's going to this)
Classmate: copy pasted
Yup 50 elements copy and paste. like the person I was talking to wasn't even incompetent I mean he had like a 3.5 gpa, how is there any correlation between this stupid number and how they actually code if you can't even code loops. The dude was a 2nd year student. And this wasn't even the only person I heard this from.
Apparently the TAs had to post about how to use loops in Js before we had our lab exam cause so many people copy pasted instead of loops, to think that would ever have to be the case.
The future is not bright. -
I have a few side project ideas. I started one of them a few months ago (project setup, dependencies, git repo, index page, very basic API and client functionality). But I cannot get myself to work on it or even think about it (for months now). The reason? I do not want to work on the client/frontend! I do not want to deal with React or Vue or Svelte or fuckjs or even jquery. It's a fucking mess.
For the backend, the requests are stateless: you get a request, handle it, and respond back. Need to update state? Database. That's it!
For the frontend, there's just tooo many states I can't keep up with! When the user checks or unchecks this checkbox, I need to maintain the state of the checkbox and maintain the all effects of changing the checkbox while syncing with the backend and making sure the elements are still styled correctly with the applied effects. Multiply that with all the expected interactive elements on the page. It's exhausting!4 -
Question: Anyone has any idea about localisation of applications ( Desktop, mobile )? Like how to convert the user interface text elements into local languages... etc..
Any other suggestion for localization events also welcome 😊7 -
All of my unit tests are failing. Other devs went and took out or changed all of the IDs I added to elements instead of properly updating their projects with my changes. WHY AM I EVEN HERE?
😞 -
Really trying to tutor my friend so he can land a front end position. He's currently working in fast food and is about to be hit by crippling student loan debt. Is there anything better I can do to give him a hand? I'm fairly entry level myself but I know what I'm doing. I've started teaching him Git and told him to focus on knowing HTML and CSS, and to use vanilla JS if he wants to practice.
He's still really early on, like trying to figure out which elements have hrefs and trying to remember the difference between classes and IDs. Think I'll be able to coach him into an internship offer by the end of the year?3 -
And now I've run into a whole another issue which is really fucking strange.
Has it ever occured that a Object in java looses all it's values after being put into an array of same type?
My problem:
[code...]
Mat[] matArray = new Mat[totalFramesOfVideo];
videoCapture.open();
Mat currentFrame = new Mat();
int frameCounter = 0;
while(videoCapture.read()) {
currentFrame = (last read frame as a Mat)
matArray[frameCounter] = currentFrame;
frameCounter++;
}
then, after filling the array and accessing elements, they lose all their object values.
Eg. Before currentFrame's dimensions were 1080*1920, but matArray[index] dimensions are suddenly 0*0.6 -
So I have an array of length 20 which stores a 64 bit decimal number by digits. The starting address is let's say array64. When I am trying to build up my number in ECX:EBX, I am using EDX as the iterator to access the individual elements of the array (I am loading them into AL)
.LOOP:
....
MOV AL, [array64+EDX]
INC EDX
....
JMP .LOOP
The problem is: somehow EDX cannot get higher than 10, so the program just stops and waits for input, when I try to work with a 12 digit number...
This module is outside the main function, and I thought about some Far Pointer problems, but all of my ideas just failed...
What is wrong here?1 -
Older lady designer with 2 huge Apple monitors asking me to change a color on the UI or left shift list elements. That's not too bad, right. NOOOOO. All of those request asked individually in a timespan of 4 weeks. I was assigned to do just that and nothing else. Damn I was bored...I was not allowed to help other teams or even my own team members officially. Finally my boss called me up for another project. SALVATION !!!
PS. That project got cancelled. No suprise there. -
Thank you Matlab, for my daily dose of frustration.
Thank you Matlab, for deciding to surface-plot a 2D variable with the x axis = columns and y axis = rows, because of course that's the most intuitive way to go about it.
Because of course that's consistent with the standard way to refer to a variable's elements.
After all, everybody knows that Z(i, j) refers to the i-th column and j-th row of a matrix, right?
Thank you, Matlab, for depriving me of the little fuck I gave about getting something done today.
Now go die in a fire.6 -
Figma dev mode sucks so hard I dont get why people seem to like it so much.
It was working fine before and now I have to throw away my complete workflow because of their bullshit beta.
They stripped many features which were working fine before for their fancy bullshit.
Instead of fixing existing issues they just add new bugs.
I cant even get the distance between two elements.
Fuck you Figma.2 -
When elements of an union are distinguished by a boolean, VSCode's Typescript plugin can only do type elimination if I branch by "== true" and not if I just branch by the boolean.
This is because Typescript treats booleans as an union of the constants "true" and "false", and compile-time elimination can only be done if I use syntax that makes sense with unions. Logical evaluation, for some reason, doesn't.
The fact that this issue can even appear is deeply concerning.1 -
A question on the CSS position property. I have a hard time understanding position, so I thought I would finally conquer it so that website development it easier.
Q.) Absolute removes the content from the flow and bases its position on the body, unless a container in the body has absolute, meaning the lowest level element finds the highest element that has absolute and bases its position from that and relative keeps it flow as if it was still there and moves relative to is current position in the documents as just a visual, as it does not move the other elements. Am I getting that correct?3 -
So fun fact about message-passing plugin APIs, everything becomes a parallel programming problem. My lexer (the part of an interpreter that recognizes fundamental syntax elements) spawns a callback thread with request and reply channels, and then messages a plugin which is able to either talk to the callback thread or message the original thread with a successfully parsed token or an abort.
It has just occurred to me that plugins are under no obligation to sequence their requests to the callback thread, which means that having one channel for requests and one for responses no longer suffices; the requests need to each contain their response channel. -
What is good practice for giving recognition to some ones tutorial/project when using elements in your own project?
F.i. I would like to demonstrate I gained certain skills, hence created a github project based on some vids/forum/else. I tailored the code to my own preferences, but the foundation is based on someone elses project. I am now listing these inspirational sources in the readme or comments. But is there a general practice for this?1 -
Randomly generated CSS class names make customization of sites much more difficult.
Randomized gibberish CSS class names like "r-acJ79b" are used by some sites like the new Reddit and the new Twitter web apps, which makes it impossible to customize the appearance of the site and to hide "trending" spam. The only way hide annoying and spammy page elements is through user scripts which scan the page for it every second and then hide it. But until then, it appears on screen for a short period.
I once thought this is caused by react JS, but the react JS front end of the video platform "Odysee" does not have randomized CSS class names.10 -
I'm working with an xml schema that effectively emulates xml... inside xml...
It looks like this
<child>
<tag>ABC</tag>
<value>DEF</value>
</child>
I don't event want to get started on how it handles child elements.
This is some next level abstraction hell.
And it's not like it can't use normal XML tags. In other parts of the project it uses a slightly more sane schema.5 -
Uggggh. Working on making an Angular 6 element all day today only to find out change detection doesn't work in elements 😣
When is the stable version coming out ffs2 -
What drop shadow did DevRant use for their UWP app, Microsoft recently released blog theme shadow, but it's work well with the rounded elements. I guess DevRant use different technique.1
-
"Much like music, great art is also found in the spaces between your graphic elements." - William Childs
-
Does anyone else just hate putting - webkit-transform:translateZ(0)
in their CSS to avoid flickering of some elements on your website? Or is it just me!? -
Damn I hate js in the browser. I fixed a bug, but I don't understand what caused it or how my fix works.
I have 2 semantically identical elements that do the same thing, one of them crashes, while the other doesn't. Screw it!3 -
This project is such garbage. JavaScript built at runtime with JSP bindings, every form is submitted with Ajax even when it doesn't need it. Ajax calls with HTML in a JavaScript string sent to the server only to be echoed back to the front end to build DOM elements. I literally can't even.2
-
Procedural dungeon, populated with procedural enemies, equipped with procedural loot, given
procedural stats and elements.
Pretty much if No Man's Sky was in a dungeon, and good.3 -
Pisses me off when coding an email using tables and not allowed to use most of the awesome styles and elements. :'(4
-
I actually hate to work when there are kids around.
I get so unfocused when they run amok and shout around that I put points in front of my class names in DOM elements.
<div class=".fuggin-hell">
OF COURSE MY SELECTOR WON'T FIND IT!
Yet another reason to not be a parent, I guess.5 -
!rant
C++ / OOP QUESTION
I have a uni assignment / project (Data Structures class), where I have to implement the ins-n-outs of 1D arrays, by creating a dynamically allocated array class, which can accept any type of data (using templates). But there's a problem.
I'd like to implement sorting the elements of the array. But given the fact, that I'm using templates, I cannot treat the elements as integers, nor as strings, or other types...
Also, let's say that the elements of the array are elements of class T, where T looks like this:
class T {
private:
double height;
int age;
string name;
public:
double getH() { return height; }
int getAge() { return age; }
string getName() { return name; }
};
(It's just a random example, pls don't judge for code quality...)
Let's say that I'd like to sort the T elements based on height, print out, sort by age, print out, then sort by name and print out. How can I do this? Is this possible?5 -
When your new boss who has been developing >10 years longer than you says "fair enough, we've finally reached the extent of your knowledge" because array_push removes elements instead of appending them... yeah? Let's see what the PHP documentation has to say about this shall we?! ;)2
-
Work has started naming projects after chemical elements.
Dibs NOT working on the uranium or plutonium projects...1 -
you guys ever seen a webservice returning view elements for the front end to interpret and generate views using a switch
switch(data.type)
{
case password:
// generate password field with returned value
...
}
is this really some new practice in back end / front end design ? it just frustrates me so much. web service should be returning data only. i can't maintain this code it's too much crap.2 -
Well, after I convince my most beloved client which, minimal design is meant to stay well, clean and sleek. There can't be too much elements to be in it. So user can have a very comfortable experience browsing your website...
Then the ClientA said:" But I hope to show them more about my business..."
*facepalm* I surrender... yet another doomed to fail site coming soon... -
!rant
I learned something new while trouble shooting an email template today.
There was a weird margin at the end of my template and I have no idea where it came from. I inspected elements and found a 1x1 image.
Turns out it's a tracking link being loaded as an image.
Now I get why they call it a tracking pixel. It's literally 1 pixel.9 -
Hypothesis:
We may be able to determine if simple identities exist (say linked by a single variable or coefficient) for some subset of a set of variables S by comparing elements of the set and finding cardioid symmetries among them.
Yea or nay?
If someone is more familiar with the math and polar coordinates, I'd be grateful for your input.
https://pythontic.com/visualization...13 -
Today I wondered why the heck there where null-Elements in my list.
When searching for elements to add I check if this element == null after adding it to the list. Not my brightest idea. -
So my client wants us to build a Photoshop/Illustrator-like canvas, with features such as ability to drag and drop multiple elements, resize them, etc. The project is web-based.
Any idea how to implement that? Are there any existing libraries that I can use?4 -
Modern computer technology seems, to give an enormous edge to arrays. Elements of an array can be shifted and copied at insane speeds. As a result arrays and ArrayList will, in most practical situations, outperform LinkedList on inserts and deletes, often dramatically. In other words, ArrayList will beat LinkedList at its own game.
- Copied as is from a stackoverflow answer. The last sentence is savage.2 -
Do you think, that its a good idea, to add FP-features like Map,Filter,Reduce to Stack or Queue datastructures, in the way, that they pop all elements?6
-
Is there a HTML scraper library for JS/NPM like Selenium or HtmlAgilityPack where I can find elements by ID, XPath, element type and their attached attributes?8
-
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 -
Holy shit how have I not tried using an SVG inside of a sudo element before. That's awesome and will save so much time styling global elements.
-
Isotope.js is an awesome jquery plugin for anyone looking to sort, filter, or search for items (html elements with specific class or attr)1
-
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 -
Quick question on Android development. Is it good practice to access UI elements from code, i.e R.id.example? Or is there something similar to WPF's data binding?10
-
I almost managed to build a ReactJS based CMS, but I still need to check online if my for loop will actually display four elements.
-
Worst fear while adding a snippet of code from the net to my project :
I hope this doesn't mess up other UI elements.2 -
Why the hell doesn't Go have generics?? You have to teach Go how to access elements of a list n times if you have n things that need to be sorted!1
-
!rant "Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
I'm learning Java/Android Development with the Udacity Nanodegree (hey we all gotta start somewhere). Got to one project that was intended just to demonstrate use of basic form elements in a static quiz. Predicted time was about 20m I think.
Three days, much hair pulling, and many SO pages later I've built a little app that displays any number and type of question, dynamically generating the views.
I may do things the hard way, but I learn a heck of a lot more for doing so. -
Did an interesting experiment a few days ago, I counted the lines of code in my dissertation project. My project consists of a cloud hosted web service which allows video streaming, search and upload, as well as an iOS frontend which allows users to record their own video and upload it. The entire project spans about 2,400 lines of code. Then I looked in my work iOS project and saw a JavaScript file for manipulating form elements which spans about 2,100 lines of code. The whole project is about 100,000 lines of code and doesnt do anything special, it just calls a web API and saves/displays results mainly.
The effect of “Enterprise Architecture”1 -
We should begin refusing to work for companies who enforce using MS products. Need to buy actual desktop office license because their software doesn't accept web-edited elements? Pass.
Seeing a "are you still there" message in MS teams, or figuring out what other browser to use since you already have several MS accounts? Pass.
Azure devops and no way to expand the code during review?
Yup, pass!
Enough of this BS. People who opt for using MS software don't care about their users nor contractors' experience. We shouldn't care about those people.24 -
reading the project's code, following "save" callback in jvascript, i find this comment "IMPORTANT : this is a workaround to solve memory leak" and below it code that basically removes all elements from th DOM and adds them again.
so basically, someone could not find a cause to a memory leak and decided "solve it" in a specific place by reloading almost an entire page -
"There are too many elements on most web pages to affix or align each one to the baseline grid. Doing so would require a mathematical rigor that, if it can be achieved, might produce rationally exact measurements and placements but will most likely be something less than elegant. The result would be a design driven by math, rather than a design that uses math to create an elegant product." - Khoi Vinh
-
I came to the conclusion that 1D can (as in "It IS, but it being only the case when you apply the following") also be 4D, 3D, ..., nD, if you have e.g. a vector with only one element, which can be any number, inside and add more and more elements into this vector with a bunch of zeros.4
-
What are my odds that V8 will recognize my efforts and convert my for loop to use SIMD? It literally just adds the elements of a Float32Array to another, it's the single best chance for compiler optimizations to shine.4
-
!!rant
Why the fuck would you bother creating a style guide if you don't adhere to it even a bit in creating mockups?!
Sure as hell I can code what you want, but you gotta stick to the agreed guidelines, dude! We can't keep adding *slightly different* elements, it'll lose its purpose! -
"HTML5 Games!"
But I see that it still using the f*cking <canvas>... What change?
When I read "HTML5 Games" I thought that it would be interactions between html elements: When the <span id="bullet"> element touchs the <div id="npc"> then npc.health - bullet.damage
Idk, perhaps I must read more info...2 -
Got a question for any web devs on here.
How would you feel about making elements in JavaScript (if you have some divs that are exactly the same) rather than having all of them in the HTML source file?9 -
Three Layers of Security
As InfoWorld notes, all smartphones have three basic
elements of security. Your first major task as a mobile
user is to become aware of these layers and enable them
in your devices:
1. Device Protection: Allowing remote data "wiping" if your
device is ever lost or stolen.
2. Data Protection: Preventing corporate data from being
transferred to personal apps running on the same device
or personal network
3. App-Management Security: Protecting your in-app
information from becoming compromised.6 -
Everything works fine locally and at *herokuapp.com. Push to prod on release day and random bits of the HTML starts missing. Goes to senior developers, everyone scratches their heads. Finally inspect missing element.
Turnes out optimizely was still running an experiment in the background adding display:none to different HTML elements. -
Hey
I m looking for a tool to record every click I make within chrome for short periods of time. Just so I can be sure I have clicked on the right elements while manually running complex scenarios.
Any recommendations ?4 -
I'm thinking of buying: Design Patterns
Elements of Reusable Object-Oriented Software
Those who read it do you recommend it? If no what are other software design/arch do you recommend?7 -
when the backend developer makes the template of the page, but doesn't add all the necessary elements to be styled...
-
Trying to test this React app my team is working on with selenium. There were no classes or ids I could've used to find elements.
I ended up looking for elements by attributes and contained text using XPath. -
Remove a property from an array to spend an hour trying to work out why something isn't running to notice that there was a count later on the array that required a specific number of elements so the bit I was expecting to execute never executed.
Was looking for ages as to why.
Friday afternoon code brain. -
Help me out a bit, functional programming fans!
I'm experimenting with functional programming through JavaScript.
I created some dummy data to experiment with and created a simple function to query the data. I would like to get all elements, whose type attribute is not 'x'. A simple solution can be seen under the 'original code' part.
Under the 'fully functional code' part I gathered some frequently used general purpose functions, which I assembled into the function composition at line 45.
I'm having a bad taste in my mouth and feel that I've gone too far. I basically replaced every language element for a function. Is this the goal of functional programming? Is this how a perfectly functional code should look like?1 -
"Design in art, is a recognition of the relation between various things, various elements in the creative flux. You can’t invent a design. You recognize it, in the fourth dimension. That is, with your blood and your bones, as well as with your eyes." - D.H. Lawrence
-
Had my first "it's working but I don't know why" moment. Freshly out of the basic courses in university I stumbled into my first project, side quest: got an xml file written with XStream which needed to be re-read by JAXB. Never worked with any kind of XML before and now after a lot of swearing at the computer I did it. It's working, I'm getting my array list with Elements out of the goddamn XML yay!
-
Vertical pressure leaf filter? More like a vertical pain in the neck! Why in the world would anyone think it's a good idea to arrange filter leaves in a vertical orientation? It's like they're begging for inefficiency! And don't even get me started on the maintenance nightmare that comes with trying to clean those things out. You practically need a ladder just to reach them!
Then there's the horizontal pressure leaf filter. Oh, joy! Because arranging those filter leaves horizontally makes all the difference, right? Wrong! It's just another headache waiting to happen. Sure, it might save a bit of space, but at what cost? I'll tell you: constant clogging, uneven flow distribution, and a whole lot of frustration.
And don't even get me started on the molten sulphur filter. Molten sulphur! Do they not realize how dangerous that stuff is? And yet, they expect us to trust some flimsy filter to keep us safe? No thank you! I'd rather take my chances swimming in a pool of lava.
Filter elements? Oh, great! Because we really needed another thing to keep track of in our already cluttered warehouses. And good luck trying to find the right one when you need it. It's like searching for a needle in a haystack, except the needle costs thousands of dollars and could potentially shut down your entire operation if you pick the wrong one.
Pulse jet candle filter? What is this, a science fiction movie? Just because it sounds fancy doesn't mean it actually works! And don't even get me started on the polishing and bag filter. If I wanted to spend all day polishing things, I'd become a shoe shiner, not an engineer!
And as for self-cleaning filters and strainers, don't even get me started! They claim to be self-cleaning, but what they really mean is that they'll clog up and break down just like every other filter out there. It's a scam, I tell you!
Oil field filtration equipment? Yeah, because nothing says "reliable" like trusting your livelihood to a piece of machinery that's constantly exposed to the elements and covered in God-knows-what.
And basket filters and strainers? They're like the ugly stepchild of the filtration world. Nobody wants to deal with them, but we're stuck with them anyway because apparently, we can't have nice things.
Process filtration and equipment? More like process frustration and equipment that's one step away from falling apart at any moment. And don't even get me started on 'Y', 'T', and conical strainers. What even are those? And why do we need so many different types? It's like they're trying to confuse us on purpose!
And finally, the auto backwash filter. Because apparently, we're too lazy to clean our own filters now. What's next? Auto-eating forks and self-driving shoes? Give me a break!
In conclusion, filtration equipment is the bane of my existence. So thanks, but no thanks, to all these so-called "innovations." I'll stick to my good old-fashioned cheesecloth, thank you very much!rant oil field filtration equipments self cleaning filters & strainers 'y' filter elements process filtration & equipments vertical pressure leaf filter pulse jet candle filter molten sulphur filter horizontal pressure leaf filter basket filters & strainers polishing and bag filter1 -
"Simplicity is not about making something without ornament, but rather about making something very complex, then slicing elements away, until you reveal the very essence." - Christoph Niemann1
-
I always put my work and tasks in a queue..
But with time that queue becomes Priority Queue with elements of my choice only.
Fuckin bullshit happen always -
Babel fails about 10% of the time, but if I re-run it it works. What the fuck did I even get myself into, and why aren't elements of a modern javascript toolchain completely deterministic? (webpack, babel, typescript, react)1
-
What are the pros and cons of creating a builder (and a dozen related files and classes) vs using a partial shared view?
For what is basically 2-3 html elements reused a few times in a single page. -
What if you could combine elements of Python with elements of Javascript?
I present GDScript:
https://docs.godotengine.org/en/...
So far I am really liking this engine.9 -
A lot of graph theory libraries create a HTML/svg elements for nodes. Is it possible to convert the existing svg elements to graph nodes?2
-
Sometimes I find solutions so ridiculous, I can't help but laugh at the hours that I put into finding them.
I tried to find a way to put space between items in a flexbox while they were in a row, but without leaving uneven space on either side of the elements when they wrap. After scratching my head for longer than I'd like to admit, giving the parent a negative margin and the children the same positive value allowed me to achieve this. (I would have saved a lot of time googling this, I know.) -
Am I doing something wrong in integrating bootstrap into my web design.
I'm just making some cool looking password reset forms and stuff.
1. Is it overkill?
2. Is there a better alternative?
3. Any good tutorials to understand bootstrap better than what I do know? (afaik it's just a collection of html elements and css styles)
4. I still have a problem with auto padding at different resolutions which messes up the alignments and stuff I'm really inexperienced at this.
5. I'm a noob at web UI and I want to add it to my skill set so I don't mind a good recommendation to some sort of path I can follow. (I'm alright with Photoshop concept designs, I'm bad at implementing them)4 -
Does anybody here have any casual affinity towards reading scientific papers? During my time at the university I was exposed to read papers and found them quite exciting as they were actually informational. Articles from magazines or online ressources about yet another "groundbreaking" new tech feel hollow. And theres to much noise from hyping, evangelists and other distracting elements.
-
So for wrok i need a js lib that can parse and extract elements from a HTML response.
Been thinking about it in the back of my mind for a few days now and just realized the answer has been in front of me all along...
This is an app wrote for myself a few months ago that checks a site for updates... its built with React Native...2 -
Orchid lesson #many:
Church tuples exist only to demonstrate how general substitution is. Just like Church numerals, they aren't meant to be used for real computation and cause a lot of problems. Few type systems and fewer optimizers can deal with them, they're a pain to pass through FFI boundaries, and they're much slower in an interpreted context than a native smart array. And in a lazy language the tuple is almost always lighter than the code that generates it, so you want to generate the tuple eagerly and thunk the actual elements, if thunk you must.
I'll go write a vector based tuple and end this madness tomorrow. New version soon, probably.
With dynamic dispatch.7 -
Hi Devrant, my little brother showed me this site (https://commits.facepunch.com/) which is the commits page for a game he plays.
Some users comment block element characters like █▅▌▊▋ ▉▇█▅▍_▍▄▉▆ he asked if i knew if that meant anything and I don't, but now i'm curious myself.
can anyone recognize the block characters and/or understand if they actually mean anything, as far as a I know they're just block elements people use to mess with others, but like a lot of people are posting them
anyone has an idea of a potential path i'd appreciate it, i'm really curious about whether this means anything or is just a troll
thank you for your time2 -
Does no one understsnd the work "exactly"?
"I need to see some of the elements on this page" is not exact. -
"Much like music, great art is also found in the spaces between your graphic elements." - William Childs4
-
I was playing with NativeScript, it looks cool as fuck, writing typescript and angular + native ui elements that you can style with css. This is underrated.
-
Im trying to modify responsive css table so it would include block elements in it and render properly.
In angular-material.... in custom directives.....
I made css hell for myself... Fml -
I found a empty space (placeholder for foobar) while searching on Google :/ was expecting to get real one, refreshed it multiple times inspected elements tried to just display:block it but no luck.
I want to go to Google :'(5 -
Hypothetically, if I knew all the elements of a functioning programming language runtime, language syntax and semantics… do I need anything other than a parser generator to make my own?32
-
The algorithm basically works like this:
For every element x in an array, start a new program that:
Sleeps for x seconds
Prints out x
The clock starts on all the elements at the same time.
It works for any array that has non-negative numbers. -
Fuckkk.. I'm learning total.js now and lost a significant amount of time wondering were did my flags (an array elements) in the route method have gone missing..
Instead of writing like this:
F.route('/admin_page', view_admin_page, ['authorize', '@admin']);
i had it written like this :
F.route('/admin_page', view_admin_page, ['authorize, @admin']); -
A lot of our web forms are done with AngularJS and combined with jQuery it does everything I need to satify the needs of people who are most impressed CSS transitions and have no technical knowledge whatsoever. I have no peers to ask this question.
I'm the only person deciding on what JS libs to use at the company... and since AngularJS goes into maintenance mode... what would you guys suggest to handle form input and add/remove CSS classes to HTML elements?
Should I get on the VUE bandwagon this year?13 -
As a TV OS developer, I'm interested in enhancing the user experience by providing more granular control over applications. Specifically, I'd like to be able to:
Monitor the current state of an application, such as whether it's open, paused, or playing.
Interact with the application's UI elements, like buttons, menus, and sliders.
Control the application's media playback, including starting, pausing, stopping, and seeking.
Are there any existing APIs or frameworks within the TV OS ecosystem that would enable me to achieve these goals? If so, could you please provide more details on their capabilities and limitations?5 -
When you write an extra markup just for mobile and after wasting hours you realise that you need to use the same ID on the elements of both versions on the same page thus ending up wasting all the effort.
I swear I felt like washing my brains with soap. Fuckity fuck ! -
There is a new Java library very useful for building frameworks and in this library there is a particular classpath scan engine that deserves attention as it is original and powerful.
The peculiarity of this engine is the possibility to search classes over a path or the runtime classpath by concatenable and nestable criteria by exploiting the power of the lambda expressions on the native Java reflection elements such Class, Field, Method, Constructor, Module, Package, Annotation, etc ... thus giving the possibility therefore to carry out searches without limits and for any criterion that can be immaginated: this library is called Burningwave Core, it is open source and on the official wiki on github there are a lot of examples.5 -
Was working as the only frontend developer ona project having 4 "senior" developers. They use Laravel to make an API feeding the angular app.
Why the documentation sucked?
Half the API call params where missing, and not one time did I come across an example stating that the API expects a boolean only to find out 20 minutes later that they mean int 1 or 0 not true or false. Best part however was sending arrays in POST by sending the elements as comma separated values (e1,e2,e3...). Oh and not documentation but while at it a rant... There are other response codes except 200 for fucks sake -
Anyone ever think of an ide that looked like the windows forms editor for vs, but for html elements showing their events and css elements ?
like an asp.net editor that actually works for html ?7 -
Is asking the question on Stack Overflow 'how to insert <script> elements from .md comments in .css files to a nuxt.js-based site' a point where I should rethink my life and code design choices? Or should I see where this insanity will lead me?3
-
"Design is a plan for arranging elements in such a way as best to accomplish a particular purpose." - Charles Eames
-
Does anyone know a good way to retrieve back the indexes of elements in the unsorted list after sorting that list in python?
Let's say for example I want to find the largest element in a list, so I sort it and find the last element(as it will be the largest), now I want to retrieve its original position in the unsorted list.9 -
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 -
Hey guys,
are there any style guides for app development out there? As a backend developer I do not have much experience on how to position UI elements so that it looks harmonic and natural. So what I am looking for is basically some sort of a "best practices book", with design/UI problems and possible solutions to it. Can you guys recommend anything?4 -
WordPress Pods "introduced new Access Rights checks and comprehensive functionality to assist you in limiting how your content types can be used by other users."
In other words, they have just introduced a breaking change that hides CMS content elements that were expected to be visible publicly to everyone.