Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Data Graham
Dec 28, 2009

📈📊🍪😋



Nah, I mean databases let me do things like version control, albeit through a different approach, and the performance is way better from a database depending on what you're doing.

I mean if you're just generating a bunch of pages that will never change, like for a blog, sure, static makes lots of sense. But once you start developing something with more fiddly requirements and functionality it collapses under its own weight.

Adbot
ADBOT LOVES YOU

Space Kablooey
May 6, 2009


YO MAMA HEAD posted:

Went to a Jekyll session at connect-tech last week and the presenter mentioned https://staticsitegenerators.net/. There are literally hundreds of these

I don't have anything against static site generators, but it's the marketing-speak that makes my eyes roll back into my skull.

Space Kablooey fucked around with this message at 16:42 on Oct 27, 2016

spacebard
Jan 1, 2007

Football~

kedo posted:

Drupal is a crate dropped off a truck from Paintbrush Supplier Inc. that contains uncut wood, metal banding, rivets and a 100lb bag of mixed horse hair. The supplier also sent his extremely autistic son along to explain how to combine those elements into paintbrushes, but his son spends most of his time ignoring you and debating hair texture with himself off in a corner. Ultimately, with a lot of effort you can probably make exactly the type of paintbrush you need for the job, but it's a massive time sink considering you didn't set out to make a paintbrush in the first place, you're just trying to paint your garden shed blue for the missus.

This is surprisingly accurate though I disagree with the last bit. In fact there are times with any pre-built system such as Embraco, Tritium, Drupal, Wordpress, etc... that you're getting paintbrushes and you really want that unique paintbrush because client said so and won't loving budge.

On the other hand working on a team doing a JS front end with C# backend I'm amazed at how lucky I am when using any CMS. Things that I don't really have to think about - forms, routing, restful web services are all semi-major tasks and heap onto the custom code base. What I like about Drupal specifically is that it lets me focus on some heavier development for when I need it and I can get an awesome blue garden shed in less time. What I dislike about Drupal is that it feels like I'm the only one who knows what the gently caress they're doing, and that leads to quite a few terrible experiences with it. Oh, that and composer support is weird, but I checked out Laravel recently and it's pretty weird in that regard too.


Of course I can blame myself for some things because I have quite a few core commits. :v:

Impotence
Nov 8, 2010
Lipstick Apathy

fuf posted:

I have quite a lot of Wordpress experience and from my point of view Wordpress sites are still pretty awful :)

Someone mentioned https://getkirby.com/ to me recently - anyone tried it? CMS without a DB. Seems kinda cool.

I use https://getgrav.org/ in prod and like it

Ghostlight
Sep 25, 2009

maybe for one second you can pause; try to step into another person's perspective, and understand that a watermelon is cursing me



YO MAMA HEAD posted:

Went to a Jekyll session at connect-tech last week and the presenter mentioned https://staticsitegenerators.net/. There are literally hundreds of these
I don't understand what niche these really fill, and I say that as someone whose website stuff is almost entirely done in relation to a website running from a flat-file CMS that I wrote.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.

Ghostlight posted:

I don't understand what niche these really fill, and I say that as someone whose website stuff is almost entirely done in relation to a website running from a flat-file CMS that I wrote.

They're not really meant to fill anything. A basic cms is just not that hard to write, so lots of people have written and open sourced them... not much more to it than that.

nexus6
Sep 2, 2011

If only you could see what I've seen with your eyes
Just found an article that discusses similar points that were just brought up if anyone's interested.

quote:

If you're a WordPress developer, Drupal is a bloated, complicated, confusing, obtuse monster of a platform, and you don't even know where to start -- where is the HTML that I can just edit?

If you're a Drupal developer, WordPress is an underpowered toy that is mystifyingly popular, with most sites a confusing jumbled poorly-thought-out hot mess under the hood -- what do you mean I have to pay for a module to have a current dev copy?

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

The reason that that quote is accurate is that both are terrible and generally people don't see the terribleness if they're used to it. Most codebases approach terribleness as they get older if they don't have a strictly enforced set of problems that they are supposed to solve. If the product is allowed to add features to support an ever-widening base of end uses, the product becomes poo poo.

o.m. 94
Nov 23, 2009

Drupal 8 has actually been significantly rewritten and pretty much all of core does not resemble v7 any more. As someone who started on 6 and has done a lot of work on 7 I am very happy with the significant effort core maintainers have put into modernising and improving it. The entire hook system will be almost completely eradicated by 9.

Unfortunately it still remains a CMS that takes a few years of practice before you can start making maintainable, solid and consistent sites because there are several approaches to site building and modules sometimes make it hard to follow a particular paradigm. For instance, Commerce enforces you to implement Rules via the UI, even if you don't like to use Rules (I don't).

So while I agree 7 is pretty bad, the legacy code is being very aggressively removed now and having delivered a couple of sites with 8 I would call the developer experience vastly improved. There are new v8 modules such as YAMLform that make the previous contenders (Webform) look downright pathetic relative to how long they've been in development.

kedo
Nov 27, 2007

spacebard posted:

This is surprisingly accurate though I disagree with the last bit. In fact there are times with any pre-built system such as Embraco, Tritium, Drupal, Wordpress, etc... that you're getting paintbrushes and you really want that unique paintbrush because client said so and won't loving budge.

Yeah, I can appreciate that. One of the Drupal projects I'm dealing with right now is very much like that. The client has a specific way they did things in their previous terrible CMS and blast it they're going to keep doing things that way even if vanilla Drupal is completely unsuited for the task. So I'm reinventing a lot of wheels.

On the other hand I have another client that demanded we use Drupal because their in house IT person doesn't like WordPress. It doesn't matter that the site is incredibly simple and would be brainless to develop in WordPress without using a single plugin, and it doesn't matter that it's not going to live on a server their IT person manages. They just want it because they want it.

Thankfully I'm in the position to turn down future Drupal work, so I'm just going to do that.

Thermopyle posted:

The reason that that quote is accurate is that both are terrible and generally people don't see the terribleness if they're used to it. Most codebases approach terribleness as they get older if they don't have a strictly enforced set of problems that they are supposed to solve. If the product is allowed to add features to support an ever-widening base of end uses, the product becomes poo poo.

This.

Trebuchet King
Jul 5, 2005

This post...

...is a
WORK OF FICTION!!



Thanks for the java/javascript clarification, that'd definitely trip me up.

And yeah, most restaurant websites are terrible so in fairness I am proud of the improvements I've made. I'll never understand the pdf-only menu thing. I put download links if people want them at the bottom of the page but the menu proper is just a normal page.

We don't use opentable but we do have a web-based reservation system; since we only do reservations two nights a week it works out OK.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.

Thermopyle posted:

The reason that that quote is accurate is that both are terrible and generally people don't see the terribleness if they're used to it. Most codebases approach terribleness as they get older if they don't have a strictly enforced set of problems that they are supposed to solve. If the product is allowed to add features to support an ever-widening base of end uses, the product becomes poo poo.

Yeah, I watch this discussion with some bemusement. Django for me hits the sweet spot, when coupled with a home rolled CMS that ONLY gives the client what they need, to develop rapidly yet precisely.

Deployments happen with a minimum of fuss because everything about them can be automated, none of the work other than content load needs doing through a web UI so we can make concise effective development processes, and the batteries included nature of good development frameworks mean that we don't actually spend anytime reinventing the wheel on Forms, Security, Databases, etc.

Like, Wordpress and Drupal were top dog when there weren't good development frameworks out there, but now there are in any language you care to write, and the best ones make it very easy to iterate quickly, and while you don't get as many plugins, I feel like you get a far 'smoother' development process where you don't end up hitting walls that cost you heavily on a budget.

My opinion is coloured by working on very custom sites, but honestly I prefer working on those because they get some budget, and rather than extract money out of anyone testing the waters on their site with a super slim budget, I try to push them to another developer or Shopify or Squarespace or something.

It helps that I learned Django pretty well before trying this approach commercially, but I don't regret working in it for a second, we hit our estimates and get to charge well, so it's all happy days.

White Light
Dec 19, 2012

Who here is decent with responsive image replacement CSS? I'm still pretty new to all this and am trying to figure out a better way to write this chunk of code, as it would shave off a ton of (potentially) unneeded CSS.

So I have this main image at the top of my page that needs to be resized/replaced with another image in 3 viewport width sizes: 320px, 480px, and 600px;

The first two images have to be 116px tall, but to do that I need to resize the original images appropriate and replace the 320px viewport with a (260px/116px) image, and the 480px viewport with a (420px/116px) image. The code looks like this:

code:
/* for 320px viewport */
@media (max-width: 419px) { 
     .leg-knee-mobile {
	     background: transparent url("http://inmotionrehab.wpengine.com/wp-content/uploads/2016/10/leg-pain-running-260.jpg") no-repeat scroll 0% 0%;
	     width: 260px;
	     height: 116px;
	     padding-left: 260px;
     }
}

/* for 480px viewport */

@media only screen and (min-width:420px) and (max-width: 599px) { 
     .leg-knee-mobile {
     	     background: transparent url("http://inmotionrehab.wpengine.com/wp-content/uploads/2016/10/leg-pain-running-420.jpg") no-repeat scroll 0% 0%;
	     width: 420px;
	     height: 116px;
	     padding-left: 420px;
     }
}
The 600 is a different size and i've chosen not to screw around with the rules for that at this point.

Is there a way to use the image i've used for the 480px viewport size, and re-use it for the 320 viewport, only cropping out the extra width of the image so that it only shows a 260px by 116px image in its place?

I apologize if that sounds a bit confusing, but what I have working right now is just too taxing on the current site i'm working on, and i'm trying to replace any areas I can with cleaner code whenever possible.

Ghostlight
Sep 25, 2009

maybe for one second you can pause; try to step into another person's perspective, and understand that a watermelon is cursing me



Just change the image url to be the same. The container doesn't care about how big a background image is.

kedo
Nov 27, 2007

The picture element is probably what you're looking for.

White Light
Dec 19, 2012

Ghostlight posted:

Just change the image url to be the same. The container doesn't care about how big a background image is.

It has to be specified in order to push the previous image out of the way, else it will show both images overlapping one another.

EDIT: So I took the advice and was able to cut out the media queries for the 420px viewport since the height of the original image exceeds 116px. One down, two more to go!

White Light fucked around with this message at 16:24 on Oct 31, 2016

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



How do you guys like to do usability testing? Meaning screen readers and other aids to the visually impaired. I've heard Chrome sucks for it, but that would surprise me... a bit, at least.

denzelcurrypower
Jan 28, 2011
I'm trying to connect to my web server's mySQL database from my website, but its not working.

Any idea what the issue is? It works fine on local copies but not on the web server. Thanks in advance for any help.


e: vvvvvvvvvv Thanks! Couldn't for the life of me find out how to debug this crap.

denzelcurrypower fucked around with this message at 00:52 on Nov 2, 2016

Impotence
Nov 8, 2010
Lipstick Apathy
500: check server's error.log

MrMoo
Sep 14, 2000

Is there any standard for wholesale -> retailer website integration for supporting drop shipments? That's a fairly wide net as it is and could mean so many things.

nexus6
Sep 2, 2011

If only you could see what I've seen with your eyes
Is anyone familiar with Google Rich Snippets?

I'm trying to work out why some pages on a site show ratings in Google search results while others don't.

A working example: https://www.whiskyshop.com/glenmorangie-milsean



Not working example: https://www.whiskyshop.com/ardbeg-uigeadail-2327



In Google's own Structured Data Testing Tool they both have the exact same hreview-aggregate values.

Is there something I'm missing? Why would Google only pick up the review microdata on one of the SERPs?

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

nexus6 posted:

Is anyone familiar with Google Rich Snippets?

I'm trying to work out why some pages on a site show ratings in Google search results while others don't.

A working example: https://www.whiskyshop.com/glenmorangie-milsean



Not working example: https://www.whiskyshop.com/ardbeg-uigeadail-2327



In Google's own Structured Data Testing Tool they both have the exact same hreview-aggregate values.

Is there something I'm missing? Why would Google only pick up the review microdata on one of the SERPs?

They just do. Sometimes it's because one of the pages has been crawled for longer and Google "digests" it eventually, and in other cases it just doesn't show the metadata. I believe clicks through on the link have an effect as well, but haven't bothered to look (e.g. more trafficed pages are more likely to get it). I'm talking about from the ecommerce perspective as well, though I'm mostly concerned with price/instock since no one ever reviews the products :(

EDIT-Okay, that's kind of weird. I added 150 products on Monday and they've been indexed and are all showing up with metadata so now I have no idea, unless it's going to disappear eventually. These products get no traffic really because they're so new, and I'm using the same code to generate structured data for each product.

Scaramouche fucked around with this message at 19:41 on Nov 2, 2016

denzelcurrypower
Jan 28, 2011
I want to use PHPMailer to send a message from my server email account.

e: turns out I didn't specify the sender which stopped it from being sent

denzelcurrypower fucked around with this message at 03:42 on Nov 3, 2016

LifeLynx
Feb 27, 2001

Dang so this is like looking over his shoulder in real-time
Grimey Drawer
When you're designing layouts to show to a client as a mock-up, what do you use? I've used Photoshop for years, but it's frustrating to do web-like things in it such as "floating" a picture in some text. I'm almost at the point where mocking something up in straight up HTML is easier than Photoshop.

Kobayashi
Aug 13, 2004

by Nyc_Tattoo

nexus6 posted:

Is anyone familiar with Google Rich Snippets?

I'm trying to work out why some pages on a site show ratings in Google search results while others don't.

A working example: https://www.whiskyshop.com/glenmorangie-milsean



Not working example: https://www.whiskyshop.com/ardbeg-uigeadail-2327



In Google's own Structured Data Testing Tool they both have the exact same hreview-aggregate values.

Is there something I'm missing? Why would Google only pick up the review microdata on one of the SERPs?

Pretty sure these are seller ratings ad extensions.

BJPaskoff posted:

When you're designing layouts to show to a client as a mock-up, what do you use? I've used Photoshop for years, but it's frustrating to do web-like things in it such as "floating" a picture in some text. I'm almost at the point where mocking something up in straight up HTML is easier than Photoshop.

I use Sketch for design and Omnigraffle for annotations and flows. The world desperately needs a design tool that focuses on the business of design deliverables and design communication, though.

nexus6
Sep 2, 2011

If only you could see what I've seen with your eyes

Kobayashi posted:

Pretty sure these are seller ratings ad extensions.

No, there are a few examples if you search site:whiskyshop.com and they are different. The rating and number of reviews come from reviews of the products themselves, not the seller.

Besides, if it was the seller that still wouldn't explain why it doesn't appear for every item the seller has.

kedo
Nov 27, 2007

BJPaskoff posted:

When you're designing layouts to show to a client as a mock-up, what do you use? I've used Photoshop for years, but it's frustrating to do web-like things in it such as "floating" a picture in some text. I'm almost at the point where mocking something up in straight up HTML is easier than Photoshop.

I use Illustrator. It's way easier to work with than Photoshop. I've tried to use Sketch but the Adobe keyboard shortcuts are too deeply ingrained in my mind.

I gave Adobe XD a try several months ago but it was hilariously useless. Like, it didn't even have a real color picker, just the standard OS X "choose a crayon color" picker. Supposedly it has been updated and I think it had its official release today.

The Dave
Sep 9, 2003

Sketch all the way. Usually my flow involves making a presentation of the designs on another page in sketch and exporting those to a PDF.

I do enjoy commenting and discussing in Invision if a phone call can't happen.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

BJPaskoff posted:

When you're designing layouts to show to a client as a mock-up, what do you use? I've used Photoshop for years, but it's frustrating to do web-like things in it such as "floating" a picture in some text. I'm almost at the point where mocking something up in straight up HTML is easier than Photoshop.

Sketch, or preferably HTML.

Anony Mouse
Jan 30, 2005

A name means nothing on the battlefield. After a week, no one has a name.
Lipstick Apathy
I know this thread isn't meant for critique but the threads in CC are dead as doornails.

I just rewrote my website and would love any opinions on it. I'm actively looking for work so I'm trying to put my best foot forward.

https://jered.io

-JS-
Jun 1, 2004

Looks good to me, nice and clean. Make sure you put a limit on your vw font-sizes. On my 2560 wide monitor this happens:

Anony Mouse
Jan 30, 2005

A name means nothing on the battlefield. After a week, no one has a name.
Lipstick Apathy
Yeah I'm trying to tweak that section so it looks good on all screen sizes. I wanted to use vw so it would automatically scale but it's inside of a Bootstrap grid so it looks wonky on some sizes. I think I'll just have to scrub it out into media queries. Thanks for the feedback!

Edit: "Currently Loving" should now respect viewport size better.

Anony Mouse fucked around with this message at 14:57 on Nov 7, 2016

ModeSix
Mar 14, 2009

Cross posting from the front end thread since they all have their heads up the rear end of webpack discusion.

What is the easiest/lightest way to implement routing. I'm not looking to really use any features out of a framework besides the routing and possibly modals and form validation.

Please recommend something for me.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.
If you just want certain code to run when you go to certain routes, flatiron director may be worth a look: https://github.com/flatiron/director

Newf
Feb 14, 2006
I appreciate hacky sack on a much deeper level than you.

Anony Mouse posted:

I know this thread isn't meant for critique but the threads in CC are dead as doornails.

I just rewrote my website and would love any opinions on it. I'm actively looking for work so I'm trying to put my best foot forward.

https://jered.io

Maybe some alt text on the past clients to satisfy the "that logo rings a bell, but I can't place it" curiosity. (B & O? Driving me nuts.)

The shapes > technologies mouseovers are nice, and this is personal preference for sure, but I find the animations a bit startling - slowing them down to something like 1.2 - 1.5 of their current time might be something to consider.

Really nice though.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

Anony Mouse posted:

I know this thread isn't meant for critique but the threads in CC are dead as doornails.

I just rewrote my website and would love any opinions on it. I'm actively looking for work so I'm trying to put my best foot forward.

https://jered.io

All in all, very nice. The 'Work' section has some stuff I am not a fan of though. The shrink animation when I hover over the screens feels jarring and unnecessary, and when I click them, the modal takes up so much room it doesn't feel like I know how to dismiss it. I *knew* because I am familiar with that UI patter, and I clicked in the tiny strip of space, but it may not be obvious to all, so maybe an explicit close control in the top right corner?

For 'clients', it would be nice to know what you did for them. Even just a hover that says "NAPSTER: UI design and blah blah" so it's not just a "I dropped some logos here!" thing.

Really nice though, and your work is very impressive!

Kekekela
Oct 28, 2004

ModeSix posted:

Cross posting from the front end thread since they all have their heads up the rear end of webpack discusion.


I think it may be at least in part because the routing solutions goons are using aren't framework agnostic.

Skandranon
Sep 6, 2008
fucking stupid, dont listen to me

ModeSix posted:

Cross posting from the front end thread since they all have their heads up the rear end of webpack discusion.

What is the easiest/lightest way to implement routing. I'm not looking to really use any features out of a framework besides the routing and possibly modals and form validation.

Please recommend something for me.

I would recommend Angular, as I tend to. If you are looking for in-app routing and form validation, that IS basically the use case it was designed for.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

Kekekela posted:

I think it may be at least in part because the routing solutions goons are using aren't framework agnostic.

No, it's because we're all jerks talking about modern front end stuff in the modern front end thread. I'd have suggested React Router, but there wasn't enough info to make a guess at what the rest of his code looked like.

Adbot
ADBOT LOVES YOU

ModeSix
Mar 14, 2009

Edit: Nevermind

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply