diff --git a/M1-intro/L2/index.html b/M1-intro/L2/index.html index d167e3b..7df09a0 100644 --- a/M1-intro/L2/index.html +++ b/M1-intro/L2/index.html @@ -31,7 +31,9 @@

How to Google

I would rather be more knowledgeable at searching in general than knowledgeable about what I am searching for. If I am more efficient at searching, I can find anything. If I am more knowledgeable about a single subject, I am only good at searching within that subject.
-

This cannot be emphasized enough. Senior engineers often use search engines to find answers to their software questions. If senior devs do it, why wouldn't you?

+

This cannot be emphasized enough. Senior engineers often use search engines to find answers to their software questions. If senior devs do it, why wouldn't you?

+ +

Note: If you prefer to leverage Bing search or Bing Chat then scroll down to the "How to Bing and Chat" section.

Here are some tips for using Google effectively to find an answer to your problem. We'll then walk through an example.

@@ -111,6 +113,57 @@

Search Operators: * | - before: after:

  • Book: Google Power Search (O'Reilly)
  • +

    How to Bing and Chat (with ChatGPT)

    +

    Microsoft has enabled much of the same syntax that Google uses and then some more. In addition with the advent of ChatGPT and its inclusion in Bing Chat. Examples of Bing Search features include:

    + + + +

    For more information on Bing Search, check out the Bing Search Operators documentation. (PS: This HTML response code was auto-generated by GitHub Co-Pilot based on the previous section. This is another tool to help a developer with respect to speed and quality.)

    + + To leverage Bing Chat to investigate / research issues and starting points use the URL https://chat.bing.com/. + +

    Bing Chat is so much more than just a search tool. LEarning to leverage its power can greatly increase your ability to deliver quality code quickly. Take this example of the networking error described in the following section.

    + +

    Using the prompt: I want you to be a solidity smart contract programmer. I am getting the following Truffle error "Something went wrong while attempting to connect to the network. Check your network configuration. Could not connect to your Ethereum client with the following parameters: - host > 127.0.0.1, - port > undefined, - network_id > *". What is the reason for the bug?

    + +

    Chat returns 3 areas to review with 4 links to the sites that provided some of the details. Click through to read the repsonses in more detail.

    + +
    + screenshot of google search with range operator +
    + +

    One of the suggestions was to check if my Ethereum client was running. Simply clicking it gives me the next auto-generated response.

    + +
    + screenshot of google search with range operator +
    + +

    This makes it really simple to hone in on the issue and navigate to the detail to show how to resolve your issues. In time, and with a great prompt, you can get it to auto-generate the code to fix the issue (if it's a bug.) You can also leverage it to check for security vulnerabilities in your smart contract .SOL file.

    + +

    Here are a few other links to refer to with regard to ChatGPT:

    + + + +
    +

    Now that you've learned some basic search techniques, let's walk through the thought process when trying to solve a programming error message on our own.

    The error message is your friend

    diff --git a/img/bing-chat-contract-1.png b/img/bing-chat-contract-1.png new file mode 100644 index 0000000..952cb15 Binary files /dev/null and b/img/bing-chat-contract-1.png differ diff --git a/img/bing-chat-contract-2.png b/img/bing-chat-contract-2.png new file mode 100644 index 0000000..b24b9c3 Binary files /dev/null and b/img/bing-chat-contract-2.png differ