Learn icon indicating copy to clipboard operation
Learn copied to clipboard

Naming Collisions

Open jonathanbossenger opened this issue 1 year ago • 15 comments

Details

  • Content type (Online Workshop, Lesson, Course, Tutorial, or Lesson Plan): Lesson
  • Content title: Naming Collisions
  • Topic description: How to avoid naming collisions in WordPress plugins.
  • Audience (User, Developer, Designer, Contributor, etc.): Developer
  • Experience Level (Beginner, Intermediate, Advanced, Any): Intermediate

Prerequisites

It is assumed that the learner has already completed the following lessons:

Learning Objectives

  • Describe what naming collisions are
  • Explain, with examples, how to use prefixes to avoid naming collisions
  • Explain, with examples, how to use namespaces to avoid naming collisions
  • Explain, with examples, how to use classes to avoid naming collisions

Related Resources and Other Notes

  • https://developer.wordpress.org/plugins/plugin-basics/best-practices/#avoid-naming-collisions
  • https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#namespace-declarations

Automation Code

//lesson

jonathanbossenger avatar Aug 23 '24 13:08 jonathanbossenger

Lesson Development Checklist

  • [ ] Gather any relevant links to Support, Docs, or related material
  • [ ] Description and Objectives finalized
  • [ ] Lesson created and announced to the team for review
  • [ ] Lesson reviewed
  • [ ] Lesson video submitted and published to WPTV
  • [ ] Lesson created on Learn.WordPress.org
  • [ ] Lesson video published to YouTube
  • [ ] Lesson on Learn.WordPress.org updated with YouTube video
  • [ ] Lesson published to Learn.WordPress.org

github-actions[bot] avatar Aug 23 '24 13:08 github-actions[bot]

Lesson script: https://github.com/jonathanbossenger/wp-content/blob/main/plugin-developer-learning-pathway/01-Plugin-Development-Practices/02-Naming-Collisions.md

jonathanbossenger avatar Aug 23 '24 13:08 jonathanbossenger

Audio: https://drive.google.com/file/d/1KbHUQmze_9NTWQvu9qUuFGWE8U8stcuu/view?usp=sharing

jonathanbossenger avatar Sep 02 '24 13:09 jonathanbossenger

@agiljulio, please comment here when you start working on this video, so I can assign you. Thanks

jonathanbossenger avatar Sep 17 '24 12:09 jonathanbossenger

Hi team, I would like to be involved in editing this video 👍

agiljulio avatar Sep 17 '24 19:09 agiljulio

Hey @agiljulio I'm just checking in, do you have an ETA for this video?

Thanks

jonathanbossenger avatar Oct 01 '24 13:10 jonathanbossenger

Hi @jonathanbossenger I will try my best to have this video completed by either Thursday or Friday 🙏

agiljulio avatar Oct 01 '24 23:10 agiljulio

Perfect @agiljulio thanks for the update.

jonathanbossenger avatar Oct 02 '24 08:10 jonathanbossenger

hi @jonathanbossenger

First of all, I would like to apologize for the delay in sending the video 🙏 I’ve been struggling to complete this module (Naming Collisions), as I spent more time working on the coding aspect rather than editing the video. In the meantime, I’ve been working on the Activation/Deactivation Methods module and I'm currently finishing up the Uninstall Methods module as quickly as possible.

Once again, I apologize for the delay. Would there be any possible solutions to help with this module? Thank you in advance and here's the video for Activation/Deactivation Methods module and I will comment on that issue 🙏

And please let me know if there is any feedback regarding the video, thank you 🙏

agiljulio avatar Oct 08 '24 03:10 agiljulio

Hi @agiljulio, thanks for letting me know.

Would there be any possible solutions to help with this module?

What kind of support do you need?

I'm happy for you to prioritize the other videos first if you find it easier to work on them and then return to this one later if you need more time.

Alternatively, I am also happy to record any specific elements of the video for you.

Let me know what I can do do support you

jonathanbossenger avatar Oct 08 '24 07:10 jonathanbossenger

@jonathanbossenger I would need your help with screen recording each step of the code, including any error messages or debugging results. From that screen recording, I can directly proceed with editing the video 🙏

agiljulio avatar Oct 09 '24 07:10 agiljulio

@agiljulio sure, no problem there. I should be able to have this for you by the end of the week.

jonathanbossenger avatar Oct 09 '24 07:10 jonathanbossenger

@jonathanbossenger thank you so much 🙏

agiljulio avatar Oct 09 '24 09:10 agiljulio

https://github.com/user-attachments/assets/3f680bf1-df36-442d-b7f8-56ae80cb3018

@agiljulio sorry it's a little late, but here's the recording as promised.

I just opened a code editor, hit record, and recorded everything. The only things I edited were bloopers. Feel free to use/discard the audio, as you also have the original audio recording. I also didnt' record any documentation pages, or any front end things, hopefully you're able to do that from your side?

Let me know if not and I can record those as well.

jonathanbossenger avatar Oct 14 '24 13:10 jonathanbossenger

@jonathanbossenger No problem, all good. Thank you so much for the screen recording 🙏 I’ll start editing it as soon as possible. For the documentation page, I can handle the recording on my end since the steps are already detailed in the script. As for the front end, I’ll review it and let you know if I’ll need the recording for that as well.

agiljulio avatar Oct 15 '24 18:10 agiljulio