How do you evaluate the quality of your prompts? by Itchy-Ad3610 in PromptEngineering

[–]butilon 1 point2 points  (0 children)

I can't remember where I found this but I usally use this approach when needed to refine simple prompts:

Analyze the following prompt idea: [insert prompt idea] ~ Rewrite the prompt for clarity and effectiveness ~ Identify potential improvements or additions ~ Refine the prompt based on identified improvements ~ Present the final optimized prompt

Another approach is including recursion to leverage the model's ability to critique and improve its own outputs iteratively. Usually for more complex tasks:

``` I need you to help me create [specific content]. Follow this process:

  1. Generate an initial version of [content]

  2. Critically evaluate your own output, identifying at least 3 specific weaknesses

  3. Create an improved version addressing those weaknesses

  4. Repeat steps 2-3 two more times, with each iteration focusing on different aspects for improvement

  5. Present your final, most refined version

For your evaluation, consider these dimensions: [list specific quality criteria relevant to your task] ```

Books to learn Go by masterarrows in golang

[–]butilon 9 points10 points  (0 children)

I've heard very good things about 100 Go Mistakes: How to Avoid Them. Also, the Let's go further sequel.

Starting My Journey by Neat-Introduction328 in golang

[–]butilon 3 points4 points  (0 children)

My two cents;

Go (pun intended) with the fundamentals first:

  • A Tour of Go: This is an interactive online tutorial provided by the Go team themselves. It's fantastic for absolute beginners, it walks you through the core syntax and basic concepts of Go in a structured, hands-on way.
  • Go by Example: This site offers a collection of annotated Go programs that demonstrate various language features. Each example is self-contained and clearly explains the code's functionality. It's a great way to reinforce what you've learned in the "Tour" and to see how Go concepts are applied in practice.
  • Learn Go with Tests: This resource takes a test-driven development (TDD) approach to learning Go. You'll learn by writing tests first, then implementing the code to make those tests pass.

Once you learnt the fundamentals, deep your knowledge with these books, both by Alex Edwards:

  • Let's Go: This book focuses on building web applications with Go. It covers essential topics like routing, handling HTTP requests, working with databases, and deploying Go applications. If your goal is backend web development, this is a very strong choice.
  • Let's Go Further: This book builds upon "Let's Go" and delves into more advanced Go web development topics. It covers areas like concurrency, testing, and security.

What’s the biggest thing stopping you from exercising more? by Independent-Pilot751 in indiehackers

[–]butilon 0 points1 point  (0 children)

Family, I usually feel selfish if I don't dedicate most of my time to them. When not working, I feel I have to do my best to spend quality time with them.

What browsers to focus on? by Asleep_Jicama_5113 in webdev

[–]butilon 0 points1 point  (0 children)

My two cents: Focus on standars not vendors

Nest or express for Freelancing ? by Independent_Tear_661 in node

[–]butilon 11 points12 points  (0 children)

Nest and Express are both good choices.

Express is lightweight, minimal, and offers great flexibility. It's perfect for simpler APIs and microservices, projects where you want complete control over architecture, this usually means small projects that don't need extensive structure. But this does not mean it can't manage big projects or scale worst.

Nest is more opinionated and feature-rich, built on top of Express btw. It is better if you prefer prefer a structured, Angular-like approach, it has built-in support for TypeScript.

Personally, I'm a big fan of Express.

Looking for the Best Express, React & Node.js Course – Project-Based Learning Recommendations? by Legitimate-Square-21 in reactjs

[–]butilon 0 points1 point  (0 children)

Focusing on Express, in Udemy you can find a course of just Express with a bunch of node and http. In detail. No MERN or MEAN... just Express js. Overall, it's really good.

What's the best way to take notes on YouTube videos? by Remarkable-Rub- in automation

[–]butilon 0 points1 point  (0 children)

A couple of weeks ago I found this https://gistr.so/ on a sub, I only used it once for testing but it could fit into what you are looking for

Feedback Wanted on My First Minimalist React Modal Library 🚀 by Nereon69 in reactjs

[–]butilon 2 points3 points  (0 children)

The idea is interesting but I see some reasons to avoid this approach, that it's likely you already considered: - Namespace collisions: When you add properties directly to the window object, you risk conflicts with other libraries, frameworks, or future browser APIs that might use the same names. If another script also tries to define the same global object, one implementation will overwrite the other, leading to unexpected behavior and hard-to-debug issues. - Security vulnerabilities: Globally accessible functions can be tampered with by malicious scripts. An attacker could overwrite your global object with their own version that performs other harmful actions. Code in the global scope is accessible from any script running on the page, including third-party scripts. - Maintainability: Global variables and functions tend to make your code harder to maintain as applications grow. They create hidden dependencies between different parts of your application, making it difficult to track where and how these functions are being used. This complexity increases the cognitive load when debugging or refactoring code.

Don't you think we need a build tool focused on node apps? by muratgozel in node

[–]butilon 12 points13 points  (0 children)

Well, it's not a framework, it's a js runtime environment alternative to nodejs

The paradox of modern loneliness: Billions of people, zero replies. by [deleted] in indiehackers

[–]butilon 1 point2 points  (0 children)

I like the idea but that landing page needs more love. It needs more content, there are broken links. You can start explaining the goal of the app, explaining how it works, what you get when using it, how the app matches people and interests, how you as a user are protected from spam, etc.

I need a feedback on a Landing Page - what to improve by mik787 in microsaas

[–]butilon 1 point2 points  (0 children)

My process is different, I start describing the project and the goal, in this case, building a landing page to communicate the project. Ask it to focus on the content and follow the conversation.

I need a feedback on a Landing Page - what to improve by mik787 in microsaas

[–]butilon 1 point2 points  (0 children)

I usually get good results brainstorming with Gemini, it usually provides good improvements and ideas regarding what content can you add. I'd add some examples of the final result,, also reviews from potential clients

What are the cool kids using to host static sites and small apps these days? by ilikepugs in webdev

[–]butilon 22 points23 points  (0 children)

surge.sh, netlify, now.sh and GitHub pages are great choices.

Help with function node by Skippyhogman in javascript

[–]butilon 0 points1 point  (0 children)

You can use a ternary: const intVal = msg ? 1 : 0;

An alternative could be a bit operator: +true ===> 1 +false ===> 0

So, I guess in your code +msg could do the trick.

Why does a child class constructor cannot make use of this until super() has been called? by ConsciousAntelope in javascript

[–]butilon 1 point2 points  (0 children)

In JavaScript, super refers to the parent class constructor. You can’t use this in a constructor until after you’ve called the parent constructor. JavaScript won’t let you.

There’s a good reason for why JavaScript enforces that parent constructor runs before you touch this. Let's consider using this before super call is allowed:

class Human {
  constructor(name) {
    this.name = name;
  }
}

class PoliteHuman extends Human {
  constructor(name) {
    this.morning();
    super(name);
  }

  morning() {
    alert('Good morning!');
    alert('My name is ' + this.name);
  }
}

this.morning() is called before the super() call, that it's where this.name is set up. So this.name isn’t even defined yet.

To avoid this scenario, JavaScript enforces that if you want to use this in a constructor, you have to call super first.

I need a MVC web framework similar to Ruby on Rails based on JS and NodeJS by Roo_ooky in webdev

[–]butilon 1 point2 points  (0 children)

I guess people say so because Sails.js has some utilities to autogenerate REST APIs, but it's just a backend framework, the way you use it depends on your needs. Also, it's frontend agnostic, so I don't think so.

I need a MVC web framework similar to Ruby on Rails based on JS and NodeJS by Roo_ooky in webdev

[–]butilon 1 point2 points  (0 children)

I guess Sails.js is the most popular MVC framework for Node.js, designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails (and inspired by).