News for hackers. Stuff that matters.
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @01:25PM (#23169281)
Dude I spent a large portion of my early career as a web developer making rounded corners on divs using all sorts of kludges
Re:A first look at Unreal Engine 5 by waterhouse on Wednesday May 13, 2020 @01:54PM (#23169611)
Better or worse kludges than this one? http://ridiculousfish.com/blog/posts/roundy.html
Re:A first look at Unreal Engine 5 by disease on Wednesday May 13, 2020 @02:54PM (#23170335)
Thanks for the flashbacks! I had blacked out any memories of the world before 'border-radius' before seeing that!
Re:A first look at Unreal Engine 5 by andy_ppp on Wednesday May 13, 2020 @05:44PM (#23172189)
And now that it's easy people try to avoid using rounded corners...
Re:A first look at Unreal Engine 5 by rodneyzeng on Wednesday May 13, 2020 @05:59PM (#23172326)
Well, I just found people still love rounded corners in LaTeX templates of books nowadays...
Re:A first look at Unreal Engine 5 by kposehn on Wednesday May 13, 2020 @05:57PM (#23172303)
We shall not speak of those dark times!
Re:A first look at Unreal Engine 5 by konfusinomicon on Thursday May 14, 2020 @08:01AM (#23178427)
The only thing darker were the accompanying drop shadows
Re:A first look at Unreal Engine 5 by pix64 on Wednesday May 13, 2020 @05:08PM (#23171848)
Well I just discovered this 11 year old Firefox bug due to that page

https://bugzilla.mozilla.org/show_bug.cgi?id=477157

Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:04PM (#23172354)
Make the change easy -- then make the easy change

They're probably waiting until it goes away on its own as all epic bugs do

Re:A first look at Unreal Engine 5 by rodneyzeng on Wednesday May 13, 2020 @06:03PM (#23172350)
Check color box with rounded corner in LaTeX, people are still living with it nowadays...
Re:A first look at Unreal Engine 5 by hypertexthero on Wednesday May 13, 2020 @03:45PM (#23170961)
Re:A first look at Unreal Engine 5 by Aeolun on Thursday May 14, 2020 @08:24AM (#23178586)
Oh god, that reminds me of all the times I claim something is technically impossible only to find out there’s a really easy way to do it.

Except using a phased array to locate RFID tags using backscatter. That was just plain hard.

Re:A first look at Unreal Engine 5 by triceratops on Wednesday May 13, 2020 @05:23PM (#23171989)
That was really great! Thanks!
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:09PM (#23172405)
Really great! This reminds me of how epic and iconic this company truly was -- I lived in a constant state of delight as a child using their software and software developed on their platforms starting with the old BRUN command on apple ][
Re:A first look at Unreal Engine 5 by pjungwir on Wednesday May 13, 2020 @05:42PM (#23172165)
For a few years around 2001, rounded corners were a big part of hp's branding. I was in a dev shop that maintained part of hp.com, and we had to have them everywhere. I didn't work on their site very often myself, but I think that team must have been experts at rounded rectangles. :-) At the time it was still sort of a cool effect on the web.
Re:A first look at Unreal Engine 5 by superhuzza on Wednesday May 13, 2020 @07:49PM (#23173277)
Re:A first look at Unreal Engine 5 by skratlo on Wednesday May 13, 2020 @03:25PM (#23170725)
This made my day dude, thanks for that. Imma dropping everything now and going to make rounded corners button with WebGL canvas, using signed distance function in a fragment shader.
Re:A first look at Unreal Engine 5 by hnick on Wednesday May 13, 2020 @07:54PM (#23173317)
I told my wife it wasn't possible for her website since I didn't want to do it with images to coddle IE, which was apparently the state of the art at the time. She still brings it up 10 years later!
Re:A first look at Unreal Engine 5 by Apofis on Wednesday May 13, 2020 @01:43PM (#23169482)
Rounded corners using tables and gifs?
Re:A first look at Unreal Engine 5 by debaserab2 on Wednesday May 13, 2020 @02:01PM (#23169714)
That reminds me of the old trick of using a 1x1 pixel in an empty table cell to ensure that internet explorer would actually expand the table cell to whatever width you set it to (height still needed another trick if i recall correctly).   would work, too, but then the minimum height of the cell would be whatever the line height was set to, and the line-height property didn't behave the same across browsers.

It's funny how old tricks make a comeback. I see a lot of  's in React codebases to preserve whitespace around JSX tags.

Re:A first look at Unreal Engine 5 by cmsefton on Wednesday May 13, 2020 @04:10PM (#23171254)
And the old trick of a 2x2 pixel gif with one colour transparent, and the other a non-transparent colour which, when set as a background to the table cell, provided an illusion of colour transparency with the main background behind the table.
Re:A first look at Unreal Engine 5 by rpeden on Wednesday May 13, 2020 @03:20PM (#23170676)
Or by just using Flash.

I never did it myself. I know there are plenty of reasons to dislike flash. And I know plenty of people absolutely hated sites created solely using Flash.

But I have to admit I enjoyed the creativity I saw on many Flash sites. There a generic sameness to much of the modern web. I know Flash sites were useless for SEO, and probably for accessibility too. So I don't think things are necessarily worse now. Just more generic.

Of course, you can create a Flash-like site using web-native technologies, but it's probably more work.

Re:A first look at Unreal Engine 5 by ekvilibrist on Wednesday May 13, 2020 @04:47PM (#23171654)
Wasn't the problem with "Flash sites" that it was way way worse than any regular website... as a website? Kinda like SPAs today. You had to reinvent stuff the browser already did perfectly. But as long as you made Flash APPS to be run embedded on websites, it was pretty awesome. Animation, video, etc. No competition, hands down just great tech... until HTML5 caught up.
Re:A first look at Unreal Engine 5 by pvorb on Wednesday May 13, 2020 @05:13PM (#23171903)
I was going to say something similar. A lot of the drawbacks from flash sites also apply to current SPAs. I know you can get usable and SEO friendly SPAs, but it's so much work compared to plain HTML files or templating in the backend.
Re:A first look at Unreal Engine 5 by Jetrel on Wednesday May 13, 2020 @03:05PM (#23170488)
To invoke the old "rule 5" of explaining things:

Until surprisingly recently, there was no built-in way to make a rectangular element on a webpage have rounded corners. People had to use all sorts of dirty hacks to make a final product that "looked like" it was a native, built-in feature. Usually in the old days it basically amounted to various forms of "putting a picture of a rounded corner" (often a gif) in each of the corners of the element you were putting on the page.

There were a lot of different ways to do that, but one of them was to use "tables" - tables these days are usually only used for what their genuine, semantic intent is: for drawing a literally spreadsheet-like table of data. But back in the earliest days of the web, they were the only controllable way to visually lay things out on any kind of grid, so despite the fact that they were "supposed" to have nothing to do with visual layout, they'd get used all the time for that - often getting used to do visual borders and stuff.

So to do rounded corners, you'd basically make a table that was a 3x3 grid. In the corner elements of the grid, you'd have tiny pictures of rounded corners; in the side elements of the grid you'd basically have nothing (they'd be really skinny elements, either very wide or tall). Then the middle element in the grid would be gigantic, and would hold your actual content.

Re:A first look at Unreal Engine 5 by sirmarksalot on Wednesday May 13, 2020 @05:30PM (#23172062)
I was about to weigh in on how 9-slicing is absolutely a valid strategy for UI components, and give you an example from my professional work, only to realize that I can't think of a single example that wasn't, "hack around some library that doesn't have border-radius".

I'll be glad for the day when 9-slice is a truly obscure technique.

Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:12PM (#23172421)
Nine slice put a lot of food on the table but I started to question my purpose in life

Border-image came and changed the game in the early 2010's... Doing exactly that in essence

Re:A first look at Unreal Engine 5 by floatboth on Thursday May 14, 2020 @02:06PM (#23183124)
I haven't seen it on the web for literally a decade, but I think… Android might use it still?
Re:A first look at Unreal Engine 5 by CydeWeys on Wednesday May 13, 2020 @03:55PM (#23171069)
And for an authentic contemporaneous example of this technique, here's my website that I designed in 2002 when I was in high school: http://cydeweys.com/archive/

You won't know it from looking at it because you'll only see the rendered static HTML, but that entire site was actually written in C++. Using the AP C++ libraries (yes, that AP).

Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:13PM (#23172432)
Shouts to Udephus!
Re:A first look at Unreal Engine 5 by runawaybottle on Wednesday May 13, 2020 @04:04PM (#23171194)
Let’s also add the infamous sliding door div structure to making expandable dynamic height divs.
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:15PM (#23172459)
How about that layout with columns and a sticky footer --
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @10:08PM (#23174417)
What's rule 5?
Re:A first look at Unreal Engine 5 by conradfr on Wednesday May 13, 2020 @04:05PM (#23171204)
You know it. 9 cells tables, slicing your pixel-perfect corners in Paint Shop Pro or Photoshop, exporting as a gif with transparent color.

That also reminds of the transparent 1px gif "hack".

I'm not that nostalgic about that. Once in a while all that knowledge comes in handy for troubleshooting an email template...

Re:A first look at Unreal Engine 5 by JorgeGT on Wednesday May 13, 2020 @04:40PM (#23171586)
> in Paint Shop Pro or Photoshop

That's a weird way of spelling Macromedia Dreamweaver...

Re:A first look at Unreal Engine 5 by conradfr on Wednesday May 13, 2020 @05:37PM (#23172123)
Ah. I remember using Dreamweaver 4 a bit, and Fireworks (alpha channel transparency in png ? What is this sorcery?).
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:15PM (#23172465)
Yea and applying a JS fix to allow transparent PNG
Re:A first look at Unreal Engine 5 by atum47 on Wednesday May 13, 2020 @03:26PM (#23170748)
YES BABY!!! I use to do it all the time. =)

https://web.archive.org/web/20040204003135/http://www.realid...

Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:16PM (#23172473)
Rico Suave!
Re:A first look at Unreal Engine 5 by Keloran on Wednesday May 13, 2020 @07:44PM (#23173242)
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @08:00PM (#23173368)
Is this code adding successive divs to simulate rounded corners? Looks incredible -- invariably someone would need animation on these too would this work?
Re:A first look at Unreal Engine 5 by bredren on Wednesday May 13, 2020 @06:55PM (#23172823)
I also spent an inordinate amount of time getting rounded corners on a fan site blog I ran. I forgot about this.
Re:A first look at Unreal Engine 5 by golergka on Wednesday May 13, 2020 @04:03PM (#23171181)
Bet it pays more, too.
Re:A first look at Unreal Engine 5 by filoleg on Wednesday May 13, 2020 @06:35PM (#23172618)
Almost definitely, but it isn't even nearly as mindblowing to a casual outside observer as a cool UE demo.
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @07:29PM (#23173111)
Not to detract from the original discussion but we're always bridging the gap between expectation and reality that's what we do!

No coincidence it's called 'Unreal' Engine heh

Re:A first look at Unreal Engine 5 by ecoqba11 on Wednesday May 13, 2020 @06:41PM (#23172687)
Yep, fun times!
Re:A first look at Unreal Engine 5 by gridlockd on Wednesday May 13, 2020 @01:43PM (#23169472)
Re:A first look at Unreal Engine 5 by ordinaryradical on Wednesday May 13, 2020 @02:52PM (#23170312)
Read the parent again with this playing in the background for peak webdev irony.
Re:A first look at Unreal Engine 5 by magma17 on Wednesday May 13, 2020 @01:44PM (#23169484)
here is another kludge: border-radius
Re:A first look at Unreal Engine 5 by artsyca on Wednesday May 13, 2020 @06:18PM (#23172485)
Yea man! Border-radius changed the game and made nine-slices method legit

I remember using a JS poly fill with modernizr to get it to work like as soon as it came out and making pixel perfect images to use with it!