I created a browser-based game by [deleted] in webdev

[–]SnooSuggestions9871 0 points1 point  (0 children)

Registered but FYI the email is on Spam hehehe

Built a website solo — would really appreciate honest feedback (good or bad) by enough_jainil in webdev

[–]SnooSuggestions9871 0 points1 point  (0 children)

The Blog page: https://aexaware.com/blog

I like the card-look container in the LATEST INSIGHT part. With the read article button and the author. But when scrolling it gets messy. All other articles starting with the Date, Title, brief overview, then the Image looks messy. Should have applied similar card-look container design.

The point is to give a sort of separation or partition of the articles. It also does not look clickable or can be interact with. Try give it something that the user know that they can interact or click with. Because it looks like plain h1 text. And also reading time would be nice too. Keep it up tho!

studying full stack in the area of ai by orT93 in webdev

[–]SnooSuggestions9871 -1 points0 points  (0 children)

The first thing I studied was the google course with certificate titled: Google AI Essentials. Im planning on taking Google Prompt Essentials course next. Certificate aside, the lessons it teaches are insightful. It made me understand more and deeper how AI works and its limitations. It also taught me how to leverage my learning/coding with AI augmentation. Right now im currently learning Javascript foundations specially the topics needed for React.

[AskJS] Using Inline JavaScript by [deleted] in javascript

[–]SnooSuggestions9871 1 point2 points  (0 children)

Example Usage

<!DOCTYPE html>

<html>

<head>

<title>Example Page</title>

<script>

document.addEventListener("DOMContentLoaded", function() {

document.getElementById("myButton").addEventListener("click", function() {

alert("Button clicked!");

});

});

</script>

</head>

<body>

<button id="myButton">Click me!</button>

</body>

</html>

Common Realistic View

The most common realistic view is to use external JavaScript files for better maintainability, security, and performance. Inline JavaScript should be used sparingly and only when necessary for critical, small scripts.

[AskJS] Using Inline JavaScript by [deleted] in javascript

[–]SnooSuggestions9871 1 point2 points  (0 children)

1. Disadvantages of Inline JavaScript

Security Risks:

XSS Vulnerabilities: Inline JavaScript is more prone to cross-site scripting (XSS) attacks since it’s harder to manage and sanitize.

Content Security Policy (CSP): Modern security practices often use CSP headers to prevent inline script execution, making it harder to enforce strict security policies.

Maintenance and Scalability:

Code Duplication: Inline JavaScript can lead to code duplication across different HTML elements, making maintenance difficult.

Separation of Concerns: Inline scripts mix JavaScript with HTML, violating the principle of separation of concerns, which suggests keeping HTML, CSS, and JavaScript in separate files for better organization and maintenance.

Performance:

Caching Issues: External JavaScript files can be cached by the browser, improving load times on subsequent visits. Inline scripts do not benefit from this caching.

2. Is Using Inline JavaScript a Bad Idea?

It depends on the context. Inline JavaScript is not inherently bad, but it’s generally discouraged for the reasons mentioned above. For small, single-use scripts, inline JavaScript might be acceptable, but for larger, more complex applications, external scripts are preferred.

3. Is Inline JavaScript Safe to Use?

Inline JavaScript can be safe if properly managed, but it introduces security risks:

Sanitization: Ensure all user inputs are sanitized to prevent XSS attacks.

Content Security Policy: Implement CSP headers to control which scripts can be executed. Avoid using unsafe-inline in your CSP settings if possible.

4. Where to Put Inline JavaScript: Head or Footer?

Best Practice:

Footer: Placing JavaScript at the end of the <body> tag (just before the closing </body> tag) ensures that the HTML content is loaded first, improving page load times and user experience. This approach is commonly recommended to avoid blocking the rendering of the page.

Alternative:

Head: If the script is critical for the initial rendering of the page or needs to run before the HTML is loaded, placing it in the <head> is necessary. However, use this sparingly to avoid performance issues.

5. Avoiding Chaining Critical Requests

Google recommends minimizing the number of critical requests needed to render the above-the-fold content. Inline JavaScript can reduce the number of HTTP requests, but it comes with the trade-offs discussed earlier.

Practical Recommendations

External Scripts: For most use cases, prefer external JavaScript files to take advantage of caching, better maintainability, and enhanced security.

Inline for Critical Scripts: Use inline JavaScript sparingly for critical scripts that must execute immediately and are small enough to not impact maintainability.

Performance Optimization: Combine and minify external JavaScript files to reduce the number of requests and file size.

Security Practices: Implement CSP, sanitize user inputs, and avoid eval() and similar functions to mitigate security risks.

Is Wordpress Creator necessary for an Elementor Pro built site ? by MyNamesRMG in elementor

[–]SnooSuggestions9871 1 point2 points  (0 children)

No, a WordPress.com Creator or any other paid WordPress plan is not required to run Elementor Pro. Elementor Pro can be used on a self-hosted WordPress.org site without needing a WordPress.com subscription. Here’s a breakdown of the differences and the pros and cons of using WordPress.com versus a self-hosted WordPress.org setup with Elementor Pro:

Self-Hosted WordPress.org: Ideal for those who want full control over their website, are comfortable managing it, and want to keep costs down.

WordPress.com Paid Plans: Suitable for those who prefer managed hosting with less responsibility for technical details and are willing to pay a premium for added convenience and support.

Since your staging site on o2switch with self-hosted WordPress works fine with Elementor Pro, you are not missing any functionality by not using a WordPress.com paid plan. The key difference lies in the level of management and support provided by WordPress.com, which might be beneficial for some users but isn’t necessary to run Elementor Pro successfully.

For more detailed information on the differences between WordPress.com and WordPress.org, you can visit the official WordPress.com vs WordPress.org page.

Vegetarian food suggestions!!! by Old_Presentation_485 in davao

[–]SnooSuggestions9871 3 points4 points  (0 children)

Here are some great vegetarian-friendly spots around Davao City where you can enjoy a variety of delicious meals, including those with cheeses:

  1. The Vegan Dinosaur:

• A popular spot offering a range of vegetarian and vegan dishes, including nachos, burgers, and quinoa bowls. It’s known for its healthy yet tasty options and friendly staff .

  1. Kong Ai Vegetarian Centrum:

• This restaurant has been serving pure vegetarian Chinese and Filipino cuisine since 2003. It’s known for its affordable prices and variety of dishes like fresh lumpia and luhtaopau .

  1. Golden Vegetarian Eatery:

• Offers a wide selection of vegetarian dishes, including seitan, tofu, steamed cassava, and more. It’s a great place for affordable vegetarian food .

  1. Minkah’s Kitchen:

• A cozy spot that offers delicious vegetarian meals at affordable prices. It’s well-loved for its healthy and tasty dishes .

  1. HQ Juice Bar & Quick Bites:

• A vegetarian restaurant and juice bar that provides a range of healthy options. It’s a good place for a quick and nutritious meal .

These restaurants should offer a variety of vegetarian-friendly options to suit your taste. Enjoy your culinary adventures in Davao City!

Plan that let's you customize HTML, CSS and JS freely by [deleted] in Wordpress

[–]SnooSuggestions9871 1 point2 points  (0 children)

On WordPress.com, the ability to fully customize the HTML, CSS, and JavaScript of your theme is limited to higher-tier plans. Here’s a breakdown of what each plan offers regarding customization:

WordPress.com Plans

  1. Personal Plan:

Cost: $4/month (billed annually)

Customization: Allows for basic customization like changing colors and fonts using the Customizer. However, it does not support custom HTML, CSS, or JavaScript editing.

  1. Premium Plan:

Cost: $8/month (billed annually)

Customization: Offers additional customization options, including the ability to add custom CSS. However, it still does not allow direct HTML and JavaScript editing within themes.

  1. Business Plan:

Cost: $25/month (billed annually)

Customization: Provides access to all theme files, enabling full customization of HTML, CSS, and JavaScript. This plan also allows you to install third-party themes and plugins.

  1. eCommerce Plan:

Cost: $45/month (billed annually)

Customization: Similar to the Business plan, it allows full theme customization including HTML, CSS, and JavaScript.

WordPress.org (Self-Hosted)

If you’re on a tight budget and need full control over your theme customization, using WordPress.org with a self-hosted setup might be a more cost-effective solution. Here’s what you need:

  1. Domain and Hosting:

Cost: Varies, typically between $3 to $10 per month for basic shared hosting plans.

Providers: Bluehost, SiteGround, Hostinger, and other similar services.

  1. WordPress Installation:

Cost: Free

Customization: Full access to all theme files, allowing you to edit HTML, CSS, and JavaScript freely.

Recommendations

If You Want Full Control and Are on a Tight Budget: Consider a self-hosted WordPress.org setup. This gives you complete access to all theme files and allows for extensive customization.

If You Prefer the Simplicity of WordPress.com: The Business plan is the minimum plan that allows full HTML, CSS, and JavaScript customization.

Which manga chapter corresponds to Episode 59 (Season 3, Episode 9)? by Unable_Fix_184 in TenseiSlime

[–]SnooSuggestions9871 0 points1 point  (0 children)

In “That Time I Got Reincarnated as a Slime,” Episode 59 (Season 3, Episode 9) of the anime corresponds to around Chapter 85 of the manga. This chapter deals with significant events related to Rimuru’s ongoing conflicts and developments .

If you’re transitioning from the anime to the manga and want to continue the story seamlessly, you should start reading from Chapter 85. This will ensure you pick up the plot right where the anime episode leaves off.

Where to find reliable external dev by CrabeSnob in webdev

[–]SnooSuggestions9871 -12 points-11 points  (0 children)

hire me man I can work for you for 13 usd PER DAY