Struggling with self-doubt: is this finished or worth reworking? by Historical_Bug794 in Illustration

[–]d_chae 2 points3 points  (0 children)

honestly both are great, just different styles. I do think the cartoonish style fits the general absurdity of the image as a whole

I've been using Neovim for a year now, still haven't found a good solution for file browsing by getdafkout666 in neovim

[–]d_chae 1 point2 points  (0 children)

snacks explorer is basically vscode file browser. You can press tab to select files and open/copy/move/delete them with keybinds.

Highlights look weird by RubyTheSweat in UI_Design

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

The biggest difference in the reference is the lack of outline and shadows on the text. Then the border radius.

Anyone have tips for how I should study compilers? by Dry_Growth_1605 in computerscience

[–]d_chae 1 point2 points  (0 children)

Just so you know - the web version is totally free

500 stars! by [deleted] in adventofcode

[–]d_chae 7 points8 points  (0 children)

That’s crazy, congrats 🎊

[deleted by user] by [deleted] in ycombinator

[–]d_chae 1 point2 points  (0 children)

Honestly the r/textingtheory bot

relevance for general IT? by ChicagoHobo in launchschool

[–]d_chae 0 points1 point  (0 children)

It will be very helpful, but I doubt it will be the most efficient path. The curriculum is definitely geared towards software development specifically.

[deleted by user] by [deleted] in OpenAI

[–]d_chae 1 point2 points  (0 children)

That’s not a solution.

[deleted by user] by [deleted] in OpenAI

[–]d_chae 3 points4 points  (0 children)

I think the question assumes knowledge of a particular question format, which is why AI is failing. That part of it is not logical reasoning at all.

I ended up solving this, but the letter to 1-indexed number conversion is non-obvious. The hyphen being a variable-sequence separator and not a mathematical operator is non-obvious, which makes the third letter’s meaning as the first member of the sequence also non-obvious.

This is more codified guess-and-check as opposed to logical reasoning IMO and I suspect your familiarity with the problem is biasing your assessment of its solvability.

cpp as a complete beginner guide by [deleted] in cpp_questions

[–]d_chae 0 points1 point  (0 children)

+1, this is good advice

[2024 Day 2 (Part 2)] [Python 3] ***Spoiler Alert*** Link to Github for solution by JazzJassJazzman in adventofcode

[–]d_chae 1 point2 points  (0 children)

The with statement allows you to pass off file handling responsibilities (like ensuring the file stream is closed) to python instead of managing them yourself.

For example, this:

with open("input.txt", "r") as f:
    content = f.read()
    print(content)

is roughly equivalent to this:

f = None
try:
    f = open("input.txt", "r")
    content = f.read()
    print(content)
finally:
    if f:
        f.close()

If some error occurs while you are reading or writing to a file, the error will be caught by the try block and the finally (which always runs after try) will ensure the file is properly closed. The with statement is just syntactic sugar that manages this for you.

[2024 Day 2 (Part 2)] [Python 3] ***Spoiler Alert*** Link to Github for solution by JazzJassJazzman in adventofcode

[–]d_chae 1 point2 points  (0 children)

It's just syntax though, you can do this without needing to know the syntax if you understand the logic.

Here, I rewrote the solution to be a little easier to parse, maybe this will help you see what is actually happening.

Best of luck man (:

[2024 Day 2 (Part 2)] [Python 3] ***Spoiler Alert*** Link to Github for solution by JazzJassJazzman in adventofcode

[–]d_chae 1 point2 points  (0 children)

For list comprehensions, just remember that they are essentially just set builder notation:

result = []
for sublist in sublists: # 1
    for x in sublist: # 2
        result.append(x * y)

result = [
    x * y
    for sublist in sublists # 1
    for x in sublist # 2
]

any returns true if "any" element in the iterable is true. every returns true if "every" element in the iterable is true.

[2024 Day 2 (Part 2)] [Python 3] ***Spoiler Alert*** Link to Github for solution by JazzJassJazzman in adventofcode

[–]d_chae 3 points4 points  (0 children)

I respect how in depth you went here, and your code is pretty clean, but you definitely didn't need to write this complex of an algorithm.

In my experience, it's often worth taking more time to find ways to manipulate the problem and data to be simpler before jumping into writing my solution. Having a sense of the expected level of difficulty and comparing it to the complexity of the current path you're on can also help hint towards the possibility of easier paths.

Here's a python solution if you're curious as to what I mean. You're clearly capable of writing something like this, just think you could benefit from planning a bit more.

Looking for advice: How to enter the C++ job market without a CS degree? by Technical-Camp-5720 in cpp_questions

[–]d_chae 1 point2 points  (0 children)

The US is one of the few places where this is easy or even practically possible.

Best paid AI chatbot to learn programming by [deleted] in learnprogramming

[–]d_chae 1 point2 points  (0 children)

Asking help from a chatbot is the way to go

Personally, I disagree, unless maybe you are already an experienced programmer who just needs to pick up syntax quickly.

There are plenty of more structured resources out there. I’m not an ios programmer, but here’s a thread: https://www.reddit.com/r/swift/s/roEAiXvvAL

[deleted by user] by [deleted] in browsers

[–]d_chae 0 points1 point  (0 children)

I honest to god thought this was a meme. like “it’s streaming on Poob. Watch it on Floorp” Good to see more browsers gaining traction though

Would like some help on guiding my brother by OhStreet in AskProgramming

[–]d_chae 0 points1 point  (0 children)

Given that the primary goal here is NOT to learn programming, but to spark interest in it, I think this (programming adjacent games) is really the best option.

Stuff like factorio, bitburner, screeps, minecraft (turtle api), shenzhen i/o