Programming thread

Hardening program I work on. See openssl in compiler info. It's dependency of other library used. Find library after turning dependencies off; guess 'n check. Find dependency breaks program. realise I should save problem for later. On branch changing API to be more lazy happy comfy. Type eraser. No inheritance. Cheating with macros. More problems need fix.

I'm discovering I'm really bad at explaining technical things to normies. All the words are nonsense to most people. Explaining things simply is not automatic if not thought about beforehand. 80 year old nigger turns computer off during bios update and doesn't know why computer can't find it's boot area. Despite being literate most don't read and avoid reading. Nigger would have been told to wait for computer to finish, but holds how power button to disrupt the automatic process.

OpenSSL is probably captured by the fed so that they have an easy low hanging fruit target to fuck people with. I can't think of a better reason to have a popular internet security library be such a unmitigated disaster. I bet heartbleed had been an in-house if it weren't just deliberate retardation. reqwest glows in the dark. What the fuck is it with Mozilla naming everything like a Downsyndrome sufferer is speaking. They do it with their networking library too. They call it netwerk. Stupid. They also can't spell neko correctly. Wanting to use ureq.

Japan got nuked twice. That must be why they always make a 2sing with their fingers to show that they got nuked twice.

Thank you for reading my blog post.
There's strong Terry energy in this post.
 
I'm learning python and only been doing it for a month or so, but having a really hard time with loops.

Is that normal, or am I retarded and should just give up?
 
Can you give an example please?
Sure.

So for example this exercise I am doing in CA:
Python:
destinations = ["Paris, France", "Shanghai, China", "Los Angeles, USA", "São Paulo, Brazil", "Cairo, Egypt"]
test_traveler = ['Erin Wiles', 'Shanghai, China', ['historical site', 'art']]
def get_destination_index(destination):
  destination_index = destinations.index(destination)
  return destination_index
def get_traveler_location(traveler):
  traveler_destination = traveler[1]
  traveler_destination_index = get_destination_index(traveler_destination)
  return traveler_destination_index
test_destination_index = get_traveler_location(test_traveler)
attractions = []
for destination in destinations:
  attractions.append([])
def add_attraction(destination, attraction):
  try:
    destination_index = get_destination_index(destination)
    attractions_for_destination = attractions[destination_index].append(attraction)
  except SyntaxError:
    return
add_attraction("Los Angeles, USA", ['Venice Beach', ['beach']])
add_attraction("Paris, France", ["the Louvre", ["art", "museum"]])
add_attraction("Paris, France", ["Arc de Triomphe", ["historical site", "monument"]])
add_attraction("Shanghai, China", ["Yu Garden", ["garden", "historcical site"]])
add_attraction("Shanghai, China", ["Yuz Museum", ["art", "museum"]])
add_attraction("Shanghai, China", ["Oriental Pearl Tower", ["skyscraper", "viewing deck"]])
add_attraction("Los Angeles, USA", ["LACMA", ["art", "museum"]])
add_attraction("São Paulo, Brazil", ["São Paulo Zoo", ["zoo"]])
add_attraction("São Paulo, Brazil", ["Pátio do Colégio", ["historical site"]])
add_attraction("Cairo, Egypt", ["Pyramids of Giza", ["monument", "historical site"]])
add_attraction("Cairo, Egypt", ["Egyptian Museum", ["museum"]])
def find_attractions(destination, interests):
  destination_index = get_destination_index(destination)
  attractions_in_city = attractions[destination_index]
  attractions_with_interest = []
  for attraction in attractions_in_city:
    possible_attraction = attraction
    attraction_tags = attraction[1]
    for interest in interests:
      if interest in attraction_tags:
        attractions_with_interest.append(possible_attraction[0])
       
        return attractions_with_interest
la_arts = find_attractions("Los Angeles, USA", ['art'])
def get_attractions_for_traveler(traveler):
  traveler[1] = traveler_destination
  traveler[2] = traveler_attractions
  traveler_attractions = find_attractions(traveler_destination, traveler_interests)
  interests_string = "Hi " + [Traveler[0]] + ", we think you'll like these places around " + traveler_destination + ": "
  for i in range(len(traveler_attractions)):
    if traveler_attractions[-1] == traveler_attractions[i]:
      interests_string += "the " + traveler_attractions[i] + "."
      else:
        interests_string += "the " + traveler_attractions[i] + ", "
        return interests_string
smills_france = get_attractions_for_travelers(['Dereck Smill', 'Paris, France', ['monument']])
print(smills_france)
Keep getting a generic Syntax error on line 64 (Else Statement) and I legit have spent like two hours trying to figure this out with my peanut brain.
 
Last edited:
Sure.

So for example this exercise I am doing in CA:

Keep getting a generic Syntax error on line 64 (Else Statement) and I legit have spent like two hours trying to figure this out with my peanut brain.
whoa, wrap your code around a code tag so that it shows the indents etc. properly, currently your code is unreadable in the forum.
(CODE=python),
* the code*
(/CODE)
Except swap the parantheses for square brackets.
 
whoa, wrap your code around a code tag so that it shows the indents etc. properly, currently your code is unreadable in the forum.
(CODE=python),
* the code*
(/CODE)
Except swap the parantheses for square brackets.
I'll update my post. Sorry about that.
 
Python:
  for i in range(len(traveler_attractions)):
    if traveler_attractions[-1] == traveler_attractions[i]:
      interests_string += "the " + traveler_attractions[i] + "."
      else:
        interests_string += "the " + traveler_attractions[i] + ", "
        return interests_string
well, your else has extra indentation, that's why you get the "else statement" exception. It needs to be on the same indentation level as the if. So it must become:
Python:
    if traveler_attractions[-1] == traveler_attractions[i]:
      interests_string += "the " + traveler_attractions[i] + "."
    else:
        interests_string += "the " + traveler_attractions[i] + ", "
        return interests_string

but that's not all, you also call the wrong function here:
Python:
smills_france = get_attractions_for_travelers(['Dereck Smill', 'Paris, France', ['monument']])
You defined a function called get_attractions_for_traveler() but you are calling get_attractions_for_travelers(), which does not exist. So fix that too.

That's all I'll tell ya, your code still has exceptions that you should try and fix yourself. It's a weird code overall, and unless I know what exact problem it's trying to solve, I can't comment more on it.

Fix these problems and I am sure a lot of things clears up for you, then we can talk about for loops.
 
How the hell do people code 500 lines a day? I’m following a tutorial and can still barely hit 300.

Granted I’m reading the info in between, but OTOH, I don’t have to think it all up for myself.
 
So I'm starting to learning automated testing and I'm still have no idea wtf am I doing.
I think the popular one is Selenium + C# combo.
I'm trying to find any resource for that but most of video are done by fucking pajeets
 
Random thought I had about Rust (NO MY NAME IS NOT A REFERENCE TO THAT THANK YOU!)
I think one of the big reasons it's failed to take off is because the whole core design of the language is about memory safety right? But it's a language meant for systems programming.

Honestly, if you can't manage memory, you probably shouldn't be doing systems programming. Modern C++ makes memory management dead simple with some experience.

How the hell do people code 500 lines a day? I’m following a tutorial and can still barely hit 300.

Granted I’m reading the info in between, but OTOH, I don’t have to think it all up for myself.
why thefuck are you trying to code more lines. You should be trying to get more done with less.

The old saying is "measuring progress of software by lines of code is like measuring the progress of an airplane by weight"

Though the real answer is to use professional IDE tools with sophisticated auto-completion, You can crank out literally thousands in a day with those.
 
Last edited:
why thefuck are you trying to code more lines. You should be trying to get more done with less.
I’m trying to get setup for the 7DRL so I’m following a tutorial to build most of the framework - display & map gen and stuff. (I could probably just copy the whole thing, but I’m still new enough that going over it piece by piece as I go is fairly helpful).

but that’s good advice. I’ll see if I can implement that.
 
I’m trying to get setup for the 7DRL so I’m following a tutorial to build most of the framework - display & map gen and stuff. (I could probably just copy the whole thing, but I’m still new enough that going over it piece by piece as I go is fairly helpful).

but that’s good advice. I’ll see if I can implement that.
I don't know what language you're on, but as we were talking about above, see if you can get set up with something by Jetbrains (Resharper, Rider, etc). It costs money, but it makes an enormous difference if you're really serious about it.
 
  • Like
Reactions: Screw Danlon
Rust annoyed me so much with soyboys and trannies constantly posting LOOK I REWROTE LS! IN RUST!!1! that I never took a serious look at the language whatsoever and I cannot believe I am the only one.
While true, that wouldn't stop the tech industry (the peak wokest of the woke) from adopting it. There has to be some technical reason that just makes it a bad choice for professionals. I've considered switching to it before just to try, but after racking my brain, I could not come up with a compelling reason as to why I wouldn't just be wasting my time.
 
Back