« first day (5023 days earlier)      last day (149 days later) » 

01:06
Good Morning My Friends.
 
18 hours later…
18:51
Invalid syntax in line %%time
can you help me please?
okay thanks you
@EduardoHerrera Please see our room rules about long code blocks - they should be posted off-site and linked back to
In any case, %%time is not valid python syntax. You're trying to access a magic command in an environment that doesn't support it
I forget the distinction between % and %% but I think that might also be important; it's just not so easy to search for. It's definitely a magic command you're trying, but that distinction might be relevant
I get this error File "C:\Users\HP\Documents\repo\GoogleDevelopers\chat.py", line 4, in <module>
    import google.generativeai as genai
ModuleNotFoundError: No module named 'google.generativeai'

import pathlib
import textwrap

import google.generativeai as genai
import os

import google.generativeai as genai
import PIL.Image

genai.configure(api_key=os.getenv["GEMINI_API_KEY"])

from IPython.display import display
from IPython.display import Markdown
19:19
Well then it has absolutely nothing to do with the error you posted
You try to import a library you don't have, twice, and then said it's about %%
I guess the parser crashes first on %% and now you have a new error. How are you trying to run this?
hmm well I started to use google developers
and trying to work with Gemini
I am new in python and I pasted some code
... great
I tried to run with python chat.py and display me that error
also I installed dotenv and another one I don't remember exactly
To be perfectly clear; I'm not going to spend even a minute debugging AI-generated code. If you don't show me some evidence you are putting in effort and knowledge yourself then we are done
Plop
well thanks you
19:40
I do have another question
Do you suggest any other book ...? I'm readin clean code
good one book
can you suggest another one?
My suggestion would be to not read Clean Code
Why not?
someone suggest me read it...
It is Java-based and it does not translate well to Python
That said, I really don't do books so I couldn't recommend anything for you. That I will leave to others. That's just not how I have learned
But I have seen what Clean Code has done to people I was overseeing technically and things became a mess
@EduardoHerrera There's a site dedicated to it
19:57
Thanks you sir!
I'm in hackerrank solving problems
Do you suggest any website for learn to do game ?
what do you think about this book? alibris.com/…?
@EduardoHerrera but you can't program? How is that book going to make any sense?
hmm well thank you sir Keeep Coding and believe
Well, you can keep using AI and "manifesting" programming skills or you could go back to the fundamentals. I don't mean to sound harsh - that's just the reality of the profession
thank you
That's a bit harsh, actually, since you are reading Clean Code already, so that's an active effort. Apologies. I think you need to take a step back from books like that and pin down the fundamentals
Advent of Code will allow you to take previous challenges and you can see the python community efforts here. I find that better than general coding challenges. Bash your head against a wall for a few hours and then see how others did it - at least, that's what I did with Rust
20:10
@roganjosh Thank you
20:24
I'm a moderator on Code Review, so I am somewhat of a best practice fanatic. However, I learned to program by making things and googling how to solve problems I ran into. Don't worry about learning best practices or complicated stuff. You'll pick up the rest on the way.
Thank you sir
20:47
Read twice learn once, follow that, you will not understand best practices unless you start reading. Start by going through popular open source github libraries and diving into the code and trying to figure out what it looks like and why something is there. The more you read the more you will learn on what everyone else does.
At first it is going to be overwhelming and you will have no clue why everything looks weird, soon you will be able to write weirder

« first day (5023 days earlier)      last day (149 days later) »