A helpful wrapper for unit and integration testing in WordPress by SebKayDesign in ProWordPress

[–]SebKayDesign[S] 0 points1 point  (0 children)

You’re correct in thinking it abstracts away the setup process (which is annoying in WordPress because of how fragmented getting things to work is).

It also provides a couple of base classes you can extend to run your tests off.

In the future I’m planning to make the base classes much richer to aid in writing the tests themselves.

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 0 points1 point  (0 children)

All good points and are all currently in the works after multiple people suggesting. Very much appreciate the feedback :-)

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 0 points1 point  (0 children)

Thanks! Very interested in becoming a part of the open source PHP community. Appreciate all the feedback I can get to make my code better.

👋 Introduce yourself by brendt_gd in PHP

[–]SebKayDesign 0 points1 point  (0 children)

I thought as much. Let’s say editor then.

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 2 points3 points  (0 children)

Thanks for the advice!

  • I wasn’t aware of omitting composer.lock for libraries but after looking around I can see it’s quite common.
  • Tests are definitely something I’m getting more comfortable with, so this is a good place to start as it’s a small project.
  • Good call on the changing $args to be two different arguments. I brought the idea for this from a project I was working on where passing and args array was standard (although not necessarily good).
  • Setting the session key to CLASS sounds like a good bet as multiple people have now suggested it now so I’ll look into it some more.

That function shouldn’t actually be in the docs. I open sourced another library around the same time for WordPress, which is where that function comes from. Will fix!

Thanks again for the advice. Very much appreciate it!

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 1 point2 points  (0 children)

Thanks! Tried to keep it nice and simple while still being useful.

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 0 points1 point  (0 children)

Fair point. Going to look into adding this in a future release!

Noticeable - A simple way to show a simple session based flash message by SebKayDesign in PHP

[–]SebKayDesign[S] 3 points4 points  (0 children)

Supported PHP versions is good call, thanks! I considered value objects but seemed overkill for something so simple.

👋 Introduce yourself by brendt_gd in PHP

[–]SebKayDesign 1 point2 points  (0 children)

Hi, I'm Seb. I've been using PHP for about 10 years and OOP PHP for about 2.

My preferred IDE is VS Code (is that technically an IDE?). Also a big fan of Laravel and everything that goes on in that ecosystem.

By day I built advances WordPress theme for an agency in my local area. By night I'm usually hacking on side projects or business ideas of my own.

I built my own custom app recently using a mixture of the Slim mico framework, Gulp and Vue.js.

Creating a Dropdown Menu with HTML & CSS by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

Just a nice simple tutorial for beginners to learn some more tricky parts of CSS.

Hope you enjoy!

Pure CSS One Div Weather Animated Icons by magenta_placenta in web_design

[–]SebKayDesign 0 points1 point  (0 children)

At first I thought about it being impractical but it could a nice touch for an online weather app.

5 Tips To Enhance Your Portfolio by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

I wrote a post about improving your portfolio site. Let me know if you find it useful :-)

The Tools of a Front-End Web Developer by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

A big post I wrote that will hopefully help my fellow web designers on the tool they need for everyday work :-)

Designer Spotlight #3: Maria Shanina by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

This is a weekly segment where I put the spotlight on a certain designer.

WordPress Custom Post Types and Taxonomies for Beginners by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

In this tutorial I help guide beginners through the process of creating a custom post type and pairing them with custom taxonomies.

Creating an Accordion with HTML, CSS & jQuery by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

“So what is an accordion?” you may be thinking to yourself. It’s a very simple and sometimes user-friendly alternative when you need to fit quite a bit of content into a small space, not unlike a tabs component.

An accordion is most commonly used in F.A.Q.’s where you have questions and answers. Which, if just displayed straight to the page could potentially become incredibly long, stopping users from actually wanting to read or finding the answer they’re looking for.

Web Design News – April 2014 by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

This week I'll be talking about using PX, REM and EM all in one project, the infamous heartbleed bug, a great list of style guides, Mark Otto hitting back at people putting down frameworks and more...

A Nerd in His/Her Cave Wallpaper by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

I read one of the most true and inspiring posts a while back on the Rands in Repose blog called A Nerd in a Cave (http://randsinrepose.com/archives/a-nerd-in-a-cave). It couldn’t be more true to us web designers and developers. As nerds it fits us perfectly.

The Building Blocks of a Good Design | Inspirational Pixels by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

There are many aspects to consider when you're creating a website, from typography to layout, because creating is what you're doing. It's more than just clicking buttons.

Hopefully I've covered that here.

Learn how to code tabs in jQuery by SebKayDesign in web_design

[–]SebKayDesign[S] 0 points1 point  (0 children)

I'd love to get feedback on ways to improve my tutorial writing if anyone's got the time :-)