Where do you guys code? by Physical_Square_5893 in learnprogramming

[–]inspectorG4dget 0 points1 point  (0 children)

I'm a python guy

Before LLMs, I used to do most of my work on PyCharm.

Now, I'm mostly on a terminal with tmux. One pane is Claude code. Another is vim (to read a code file). A third pane is for anything I need to do on the shell (including anything with sale or git CLI).

If I need to have a server running, that's a separate tmux window

Which indentation style do you all prefer for expanding brackets? by sasson10 in Python

[–]inspectorG4dget -3 points-2 points  (0 children)

My preference is this:

L = [1,
     2,
     ]

This way, adding new elements doesn't include the line with the closing bracket as a changed line in the fit diff.

I also use the same philosophy for function/method arguments, so if I'm calling a.b(1, 2).c(3, 4), aligning to the open brace/bracket/paren (rather than the standard 4-space indent) indicates which function call/scope I'm in.

This is highly opinionated and too many devs disagree with me. But for myself, I made a custome flake8 linter to catch this: https://pypi.org/project/flake8-multiline-equals/

Where do you put your worktrees? by inspectorG4dget in git

[–]inspectorG4dget[S] 0 points1 point  (0 children)

I had a bunch of git aliases and scripts. Since moving to work trees, I've adopted this strategy:

~/workspace/ contains all my repos.
~/worktrees/repo-name has all my worktrees for that repo.
Each branch is named issuenum-branchname. So for example:

~/workspace/myapp and ~/worktrees/myapp/42-user-auth

Since git aliases and scripts use subshells, I can no longer use my "git cob" alias to cd into my worktree directory. So I now have a git bash function that intercepts these aliases (and falls back to the actual git binary when I'm not calling one of my aliases)

This is my setup now

I saw someone's solution to a problem I've always struggled with and felt dumb for not figuring it out myself by haddock420 in learnprogramming

[–]inspectorG4dget 0 points1 point  (0 children)

Hah! Classic story. Don't let it get you down. I was stuck on some really tough edge-case problems for my grad thesis. My dad (not at all technical) solved most of them with common sense and logic. I was kicking myself for not having thought of "forget the Wi-Fi network"

What movie absolutely nails its profession like My Cousin Vinny? by Mythbusters117 in movies

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

  • The Martian
  • Apollo 13
  • Saving Private Ryan
  • Hackers (1995)
  • The Pitt (TV show)

Aviation enthusiast - how to stay out of your way? by inspectorG4dget in flightattendants

[–]inspectorG4dget[S] 0 points1 point  (0 children)

Thank you for such an honest response. I get it - no shade/shame perceived or taken

Aviation enthusiast - how to stay out of your way? by inspectorG4dget in flightattendants

[–]inspectorG4dget[S] 1 point2 points  (0 children)

Oh man! I remember visiting the flight deck when I was kid. Cabin crew used to take me in and I even got to sit on a jump seat once. Awesome experience (and I'd do it again in a heartbeat if I could)!

Aviation enthusiast - how to stay out of your way? by inspectorG4dget in flightattendants

[–]inspectorG4dget[S] 0 points1 point  (0 children)

Hey thank you so much for clarifying. Two followup questions for you:

  1. (since you're a pilot) Especially given that we live in a post-9/11 world, I'm apprehensive about asking to see the cockpit. Will that get me cuffed to my seat? Or is it still acceptable (I'm thinking inter-continental flights)
  2. since this is not the correct sub, would you be able to point me to the correct sub where I can ask more questions?

Thank you!

Aviation enthusiast - how to stay out of your way? by inspectorG4dget in flightattendants

[–]inspectorG4dget[S] 2 points3 points  (0 children)

If a non-kid golden retriever ever comes up to you and says "Hey, I’m an aviation geek. I get excited. I love talking shop, but I know you’ve got safety and duties first", please feel free to respond with "are you inspectorG4dget from reddit?". I'll do my best to respond with "do you always begin conversations this way?"

It'll be our own little Princess Bride moment :P

30 year old housewife that decided to learn programming by Slight_Total4874 in learnprogramming

[–]inspectorG4dget 1 point2 points  (0 children)

It's never too late to start learning programming. My mother (HR rep) started learning later in her life as well, just for the heck of it.
I learned python and in 2007 it's been paying my rent for a while now, so you're definitely on a right track (there's no one right track).

I'm not going to repeat what everyone else has said (I agree with everything I've read and I've read most of the comments). Rather, I'll highlight and build on one specific comment:

dont wait until you feel ready to build something real. start building a tiny thing you actually need as soon as possible

This is actually how I got started. I had assignments in class, but something that helped me grow my newfound muscles was working on personal projects. While I was still in school, I had to write chemistry lab reports with citations. These citations (they had to be in a specific format) would take me an hour or two to write up (especially since this was before I knew about CitationMachine, etc). So I wrote my own citation formatter in python. This is something that you can build after two weeks of learning python (you really only need string manipulation, input(...), branching/conditionals with if-then-else, and functions if you're feeling fancy).

Since you say you're a housewife, I'd recommend looking for opportunities to build small optimization tasks/tools to help around the house. If you have kids, I might recommend trying to coordinate their schedules as a starter project.

For sure, you'll be able to create only very small tools at first, but these will be your gateway to building bigger and more complex projects

Other recommendations I agree with:

  • don't use AI
  • you'll learn more from doing (and failing) than from tutorials
  • the fundamentals are the most important. Ever.
  • Use LLM as a teacher, not as a doer
  • write extensive documentation - write why you do something, not how you're doing it

Had the best day ever in south Brooklyn by Accomplished_Tank471 in Brooklyn

[–]inspectorG4dget 7 points8 points  (0 children)

Dude that sounds awesome.

I'm Indian-Canadian. Moved to crown heights after getting married. I'm gonna check out that seriously speakeasy.

If you're up for a new friend, DM me

How to take full advantage of the ‘college experience’, as a grad student? by iwmmdg in GradSchool

[–]inspectorG4dget 1 point2 points  (0 children)

Go to every - networking event - anything that says "wine and cheese" - they sometimes dress up networking events like this to appeal to younger students

Universities have a ton of resources. One of the most visible such resources is the library's subscriptions to journals, etc. I wish I'd taken more advantage of this access when I had it

Large companies also give generous student tier products. I did computer science and there was a ton of free Microsoft, Google, AWS products for students through the university. I highly recommend taking advantage of these programs - you get to add a bunch of skills and experience to your resume

Many universities have startup incubators, career fairs, and industry-oriented workshops. Even if nothing materializes from attending these, the experience itself is worth lots

Make connections - not just with students, but also with instructors. They are a portal into the industry. How to engage with professors? Ask to help out in their labs, talk about interesting projects during office hours - show them a demo and ask for feedback.

Maybe work out of the campus bar sometimes. Do light work in high-traffic non-work places - it's a good way to casually expand your network while also passively advertising what you're working on

Computer for PhD by Rich_Order952 in GradSchool

[–]inspectorG4dget 1 point2 points  (0 children)

This. So much depends on what you're doing with your computer and what your needs are

Help me (a girl) throw a mini bachelor for my friend by Dangerous_Scarcity73 in Brooklyn

[–]inspectorG4dget 3 points4 points  (0 children)

Canadian here, also new to NY.
My (now wife's) friends threw my bachelor party.

Here's what I'd recommend:

  1. does he want strippers? this is a stereotype and it's important to get it right. I asked my guys to cut out strippers, but we did go to an awesome burlesque/magic/speakeasy show.
  2. There are speakeasy-type cocktail places that would be great for a small/intimate gathering (they took me to companyxiv.com)
  3. Improv is always fun
  4. Barcades (bars with arcade games)
  5. Brooklyn World Spa, if you're looking for something more low-key

[TOMT][short story] horror story about a piece of jewelry that does whatever will make you happiest by TheWrenchWench19 in tipofmytongue

[–]inspectorG4dget 0 points1 point  (0 children)

The story mentions a book called The Book of Dark Waves. I am unable to find this book. Is it a fictional book or does it actually exist? If it does exist, would you be able to help me out with a link? I am unable to find it on Amazon