#voice-chat-text-0

1 messages ยท Page 977 of 1

viscid pelican
#

nice idea

devout heath
#

library boss

#

luckyMurica

#

nah, they're still around, they're going to stick around

#

schools still make children go to them

viscid pelican
devout heath
#

it's an idle asset, just lives on your property tax

viscid pelican
whole bear
#

nikuti

#

Idk what the Hindi word for tax is

#

kara

#

kar

devout heath
#

I would fight to keep my library open

somber heath
# viscid pelican what is tax

Where the government says "You make money? You have stuff? You exist? You died? You bought something? Give us money."

devout heath
#

lol

viscid pelican
devout heath
#

estate taxes are a joke unless you're into real money

#

but yeah every time money moves the government want's it's tax. or kar. or whatever

whole bear
devout heath
#

what a loophole

#

yeah priests don't pay taxes on houses that belong to churches

whole bear
#

Yeah, lots of people started building churches on their land here back in the 60s and 70s so that the government wouldn't put their lands in the redistribution scheme

viscid pelican
#

but way i Should pay money for Government

devout heath
#

I want the number of atheists to keep increasing like it has

#

seems people are learning the lack of evidence

#

thing about taxing churches is that you suddenly turn part of everyone's tithe into political action

whole bear
#

Or at least it should

viscid pelican
#

i saw

devout heath
#

keynsian multipliers

#

goodnight

whole bear
viscid pelican
#

@somber heath Your Voice is Nice Bro

#

Welcome

#

๐Ÿ˜†

#

@somber heath i ask a question

#

@somber heath What kind Of Job Do You Need ??

#

@somber heath What kind is You Become in your Dream To Real life

#

There is no doubt about it

#

nice

#

my Dream is i Become Biggest Man Of World

#

Richest

#

like Elon Musk

#

yha

#

i saw

#

YHa

#

i ask one more question ??

viscid pelican
#

Do You Like To Help Poor People

#

Noo

#

Do You Like Your Perents

#

Nice

#

Do You Spend Time To Your Perents

#

You Are Merried

#

Whats Your Age

#

Ohk

#

๐ŸŒ

#

Nice

#

i daily 30min to spend time for meditation

#

its Really Effective

#

@somber heath ๐Ÿ˜ฑ

#

7 time

#

Sorry my internet Too Slow

#

๐Ÿ˜… Yha

#

if you like to accept my friend request to do or decline ohk

#

๐Ÿ˜Ÿ

#

Ok Nice to meet ya ill going to back tomorrow meet yOU ok @somber heath Bye

whole bear
#

@somber heath why don't you pose for a photograph too, for the front page

whole bear
whole bear
#

hey

undone idol
#

@whole bear i also got gmt 5:30 nice

whole bear
#

sup?

undone idol
#

good how about ya?

whole bear
#

im fine

#

learning ursina

undone idol
#

from india?

whole bear
#

yeah

undone idol
whole bear
#

you working on something new?

undone idol
#

I have never used ursina engine before

undone idol
#

olympiads

whole bear
#

my exams are going on

undone idol
#

fuck,

whole bear
#

and still here i am

undone idol
#

sad

whole bear
#

playing games

undone idol
#

nice.

whole bear
#

learning new modules

undone idol
#

you will get enough to get into next grade

#

guy.

#

I learned inbuilt first and then external libraries

#

hello hello

#

Blackwon't burn

#

fuck a ad came in my music

whole bear
#

wow

undone idol
#

a new screen woah!

whole bear
#

that's progress lol

#

heyy

little whale
#

yo

half portal
#

I just remembered u can just do this for formatting

print(f"The surface area of the cylinder is {surface_area:.1f} and The volume of the cylinder is: {volume:.1f}")

Instead of

print("The surface area of the cylinder is {surface_area:.1f} and The volume of the cylinder is: {volume:.1f}".format(surface_area=surface_area, volume=volume))
#

tho im not sure of the difference

frosty star
#

Which channel should I use for help with python packaging?

whole bear
#

greetings OpalMist

lime oyster
#

Hi

#

What?

#

Wanna see a little three?

#

ะท

#

ะท

whole bear
#

why is this orange

lime oyster
#

it always orange

whole bear
#

oh

#

i just noticed it

#

hey sorry can't talk

#

someone help

#

something's wrong with pycharm

#

i renamed the project name from the file explorer

#

and then nothing is running

#

can anyone help?

#

that red cross

#

i fixed it

#

yayy

#

i added a new configuration

candid isle
#

siuuuu lol

whole bear
#

and it worked

candid isle
#

need permision to unlock mic??? lol

somber heath
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

candid isle
#

yea is cheering

#

siuuuu is the ronaldo's meme

#

LOL

#

PPPFFFAHAHAHAH

#

can i spam lol

#

i guess cannot spam

#

bcs is rule

#

*the rule say it

#

who is listening spotify??

whole bear
#

me

candid isle
#

what song u listening?

#

:>

#

i need a song, cuz i feel sleepy rn

whole bear
#

The Bealtes

#

1960s

candid isle
#

damn fuck

whole bear
#

haha

candid isle
#

i so poor btw

#

so

#

i din't buy perium

#

i also din't buy netflix

#

i thinking how netflix is it

barren magnet
#

Hello

#

Why i can't talk?

candid isle
#

hi @barren magnet

whole bear
#

hey .State

candid isle
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

whole bear
#

!voice

candid isle
#

haha lol

whole bear
#

AAA

#

whaa

#

lol

candid isle
#

did u guys earn money from coding?

#

i mean

whole bear
#

Yes you can

candid isle
#

umm

whole bear
#

easily

#

you know?

candid isle
barren magnet
#

I'm a python begginer

candid isle
#

i need to earn

whole bear
#

you can lol

candid isle
#

i need to saving money to buy a pc

whole bear
#

how old are you?

candid isle
#

ermm

#

14

whole bear
#

okok

barren magnet
#

How old are you?

candid isle
whole bear
barren magnet
#

Ruggiero

whole bear
#

ah

candid isle
#

how old r u @whole bear

#

WOW

#

did u have GF??

barren magnet
#

?

candid isle
#

ehehehe

whole bear
candid isle
#

lol

whole bear
#

you guys are so old

#

It's me in my pic. ๐Ÿ˜‚

candid isle
#

WOW

#

so handsome

#

not bad

whole bear
#

Yes, of course. ๐Ÿ˜‰

candid isle
#

i so ugky

#

*ugly

whole bear
#

I am so ugly?

candid isle
whole bear
#

im working on a calculator like the windows 10 one

whole bear
barren magnet
#

Ruggiero for how long are you coding?

candid isle
whole bear
#

with the scientific calculator and stuff

candid isle
#

i'm coding c++

#

*learning

whole bear
barren magnet
candid isle
candid isle
whole bear
#

I really touched everything.

candid isle
#

who can tell me how to earn money at coding

whole bear
#

im younger than everyone here

#

wow

candid isle
barren magnet
candid isle
whole bear
#

umm

#

umm

candid isle
whole bear
#

should i say?

candid isle
#

i not doing anythings on u

barren magnet
candid isle
#

cuz

barren magnet
#

or create something people need

whole bear
#

11

candid isle
#

hahah

#

soryr

#

*sprry

#

*sorry

candid isle
#

WTF

#

R U KIDDING ME

whole bear
#

i started programming when i was 10

candid isle
whole bear
#

around 2 years

candid isle
#

i want work at google, but not enough age and google din't use c++ i guess

#

they use phyton the most

barren magnet
candid isle
barren magnet
candid isle
#

but google use phyton the most

#

idk how to code phyton

#

i just know how to code c++

whole bear
#

๐Ÿ™‚

candid isle
barren magnet
whole bear
candid isle
#

lol

#

did u work google? @barren magnet

barren magnet
candid isle
#

or u want to become google software engineer?

candid isle
#

then what u want to work while u over 18??

#

i'm so sorry to asking so much question ๐Ÿ˜ฆ

barren magnet
candid isle
#

OH

#

YEA THX

#

and

#

i'm so sorry

barren magnet
#

You can't start with google

#

You need a lot of experience

#

Start with something smaller

candid isle
#

oh, ok THANKS

#

๐Ÿ™๐Ÿ™

whole bear
#

hey maroloccio

#

how's life?

candid isle
#

so he can see it

whole bear
candid isle
#

oh

whole bear
#

it may disturb them

candid isle
#

owe

#

Owe

candid isle
#

i love this answer

#

nice

shut hill
#

I was just letting you know he wanted to talk to you lol

versed comet
#

hello

#

?

wind raptor
#

Hi

versed comet
#

What's your name

wind raptor
#

----------------^^^

versed comet
#

my name is david

#

)

#

n

wind raptor
#

Can you hear me?

pallid hazel
#

nice to meet you ----------------^^^

pallid hazel
#

----------------^^^ |

willow lynx
#

Hi

versed comet
#

Hi

whole bear
#

hii

#

xD

#

I can't talk guys :(

somber heath
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

whole bear
#

oh

#

ty!

whole bear
#

I read it

barren ore
#

Hi i hope i can ask this here. I am trying to Run a VBA script that i wrote on an excel file that i want to be able to open from a program. Basically what i want to be able to do is select a file form my computer and open and run some scripts on it and then take the output and spit out a report. can python do that?

stuck furnace
#

Hey @pallid hazel ๐Ÿ‘‹

#

@normal patio I don't actually have a microphone, so I'll send messages here lemon_sweat

#

!stream 685931501812187197

wise cargoBOT
#

โœ… @normal patio can now stream until <t:1645293837:f>.

stuck furnace
#

Alright

#

Hmmm ๐Ÿค”

#

What does 'manage app execution aliases' mean, do you know?

#

I'm here @normal patio ๐Ÿ˜„

#

Ah you have do not disturb on so you're not getting my pings

normal patio
#

Oh here

#

i have no idea

pallid hazel
#

? you rang ...

stuck furnace
#

Heyy ๐Ÿ˜„

#

Do you think you might be able to help this person with an issue they're having?

#

They have python installed on Windows, they have it in their path, but python isn't recognised as a command.

#

We're kind of out of ideas.

normal patio
#

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

#

I installed it from the pyuthon website

#

Im confused now :/

#

I have the windows version installed yes

#

Windows 10 Desktop

#

Nope not at all

stuck furnace
#

Hmm, I guess they could try installing the one from the Windows store ๐Ÿคทโ€โ™‚๏ธ

#

But I really don't understand what's going on.

misty cypress
#

: just an advice never install python from windows store

stuck furnace
normal patio
#

Thank god i checked before pressing it, but why?

stuck furnace
#

Hello @whole bear ๐Ÿ‘‹

normal patio
#

Hey, they are tryibng to help me run python in terminal

misty cypress
#

i can help :

lets try :

in cmd type :

where.exe python

#

it will show location of dummy py.exe that windows ships

normal patio
#

C:\Users\Basil\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\Basil\AppData\Local\Programs\Python\Python310\python.exe

stuck furnace
#

Ohhh maybe it's the order of the items in the PATH?

misty cypress
#

delete 1st one

#

thats good

stuck furnace
#

Yea, I guess one is shadowing the other.

normal patio
misty cypress
#

i mean go to location of WindowsApps\python.exe

pallid hazel
#

C:\Users\USlocalhost\AppData\Local\Programs\Python\Python310\Lib\venv\scripts\nt

misty cypress
#

and delete it

stuck furnace
#

Wait

#

Rather than deleting the file.

#

Just remove it from your PATH.

misty cypress
#

ya you can do that in ur environment variable

stuck furnace
#

Or move the other path higher up the list?

normal patio
#

which of the two

misty cypress
normal patio
#

Its not in my start menu no

stuck furnace
#

Can you move C:\Users\Basil\AppData\Local\Programs\Python\Python310 to the top of the list?

misty cypress
#

C:\Users\Basil\AppData\Local\Programs\Python\Python310\python.exe

stuck furnace
#

Restart the terminal and try again.

tulip carbon
#

hi

#

duds

#

hell me

#

help

stuck furnace
#

The terminal inherits its environment variables when it starts.

#

What about just python --version?

#

๐ŸŽ‰

normal patio
#

OK THAT WORKED

misty cypress
#

cool

stuck furnace
#

That was a hard issue to track down lemon_sweat

misty cypress
#

lol ducky_australia

misty cypress
tulip carbon
#

how do i start

stuck furnace
#

I didn't realise Windows ships with a dummy python executable which tells you to install it from the store.

tulip carbon
#

learning cdoing

normal patio
#

Oof thank you guys

stuck furnace
#

Oh @tulip carbon check out our amazing resources page ๐Ÿ˜„

misty cypress
stuck furnace
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

normal patio
#

@pallid hazel It got fixed by puting C:\Users\Basil\AppData\Local\Programs\Python\Python310 on the top of PATH

tulip carbon
#

ty dawgs

misty cypress
#

since i had a previous mistake :

its not showing in control panel ๐Ÿ™‚

stuck furnace
normal patio
#

When im a bit more familiar with a PC in general ill try to use linux. I didnt have a pc until a year ago so im new to the whole thing

stuck furnace
#

I haven't had a chance to use WSL as I haven't used Windows in about 8 years lemon_sweat

normal patio
#

Thanks for the help thought, now i can finally upload my project

stuck furnace
#

Actually, I have used it a couple of times on other people's computers.

stuck furnace
#

Oh right ๐Ÿค”

#

Alright, thanks for your help, I gtg ๐Ÿ‘‹

sand lark
#

nobody is in vcccc its never like this

gentle flint
#

@sand lark I am

vivid palm
vivid palm
#

you can type, yes

regal bolt
#

hello, what do you doing

vivid palm
#

you won't be able to unmute until you voice verify (the instructions are in #voice-verification)

signal cave
#

i cancel the app jurisdiction

signal cave
#

im chiness ,im not sure if my phone can use

vivid palm
#

no, basically it gives you this role:

#

and what that means is you'll be able to unmute when connected to voice chat

#

no phone # required

signal cave
#

let me try

vivid palm
#

you just have to meet some requirements (such as message count)

#

don't spam or we'll prevent you from voice verifying for at least 2 weeks

signal cave
#

You are not currently eligible to use voice inside Python Discord for the following reasons:

โ€ข You have sent less than 50 messages.

#

@vivid palmwhats it means i sent toomuch or too fewer

gentle flint
#

not enough

signal cave
#

ok

gentle flint
#

so you need more

vivid palm
#

yup

signal cave
#

i know

gentle flint
#

excellent

signal cave
#

...

gentle flint
#

I mean it's excellent that you know not excellent that it's the case

regal bolt
#

me too @signal cave the same situation

signal cave
#

server chat or p2p chat for 50

gentle flint
#

messages in the server

signal cave
#

with the people in the server is not included?

gentle flint
#

I mean
DMs can't be monitored by the bot

signal cave
#

ok

#

ik

#

@vivid palmwhy do you can see my result

vivid palm
#

oops

#

#bot-commands

signal sand
molten pewter
signal sand
dusk quarry
#

I'm sorry about the intervention, I know it has nothing to do with what we're doing here. Can you give me some advice on how to learn English much better and much faster? Please answer me in writing if possible.

#

thank you! @midnight agate

whole bear
#

who in vc has had experience in selenium

pallid hazel
#

@midnight agate how's you dict skills?

dusk quarry
#

what does the dict instruction do?

molten pewter
#

@zenith radish here is what we were working on

signal sand
#

Code could be better...

if stuff not in sm_moves_dict:
    continue # or do something

if sm_type not in sm_moves_dict[stuff]:
    continue #or do something

if ap_freq in sm_moves_dict[stuff]:
    sm_moves_dict[stuff]# ...... something ...

sturdy panther
#

May be we can give it to json.loads.

uncut meteor
#

thats a good idea too

molten pewter
#

be back, going for some dinner/lunch ๐Ÿ‘‹

uncut meteor
#

!e

data = {
  'PMP 450_20': {
    'PMP 450': {
      '5.15GHz':0,
      '5.2 GHz':0,
      '5.4 GHz':0,
      '5.7 GHz':0
    },
    'PMP 450b High Gain': {
      '5.15GHz':0,
      '5.2 GHz':0,
      '5.4 GHz':0,
      '5.7 GHz':0
    }
  }
}

print(data)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

{'PMP 450_20': {'PMP 450': {'5.15GHz': 0, '5.2 GHz': 0, '5.4 GHz': 0, '5.7 GHz': 0}, 'PMP 450b High Gain': {'5.15GHz': 0, '5.2 GHz': 0, '5.4 GHz': 0, '5.7 GHz': 0}}}
uncut meteor
#

new avatar

#

!e

from dataclasses import dataclass


@dataclass
class User:
    name: str
    fav_colour: str


griff = User("Griff", "Orange")

print(griff)
print(griff.__dict__)

wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | User(name='Griff', fav_colour='Orange')
002 | {'name': 'Griff', 'fav_colour': 'Orange'}
signal sand
#

to the moon ๐Ÿš€

terse needle
#

@zenith radish setq elcord-editor-icon 'emacs_material_icon)

wind raptor
#

Everyone is robot... Seems like a discord thing if it's everyone

devout heath
#

"mute with timeout" would be a great feature

#

how are you @midnight agate

#

just finished 2nd shift at dollar general

#

as they say "dogs are barking"

#

my feet are more hurt than someone tortured without protection of the geneva convention

#

dogs are barking is an american english eupphamism

#

yes standing for 12 hours, 6 yesterday, 6 today

#

I used to do this all the time, after 6 years on my ass my feet have gotten soft

#

gonna have to show my feet who's boss

#

perl has "use strict" "use warnings" and "use diagnostics"

#

I was the only person I ever knew who used "use diagnostics" on new software

#

more like "can you build us a tiny full stack app because our interview process doesn't actual filter out non-programmer liars otherwise"

#

@midnight agate you figure out those trade offs, hit me up chief

#

same boat here

#

every job posting is going to make you feel like that

#

what kind of people do you know that are already in programming?

#

networking, reference letters go a loooooong way

#

imposter syndrome is always a problem

#

roller coaster from "I'm god" to "oh god I'm mentally incapable"

#

no worries

#

that's hyperbole, exaggeration

#

I meant from "I'm a good engineer" to "I should rethink my entire career" is a pretty normal day of work as a programmer

#

if you don't have metrics to hit outside of your boss's appreciation of you this becomes a problem rapidly

#

grunt work

#

yes

#

yeah

#

I started yesterday @whole bear

devout heath
#

because the people hiring "computer geniuses" are fucking assholes

#

because software engineering doesn't actually fit into "engineering" proper

#

in my entire life, I've applied to ~20 jobs, got ~10

#

more than 5 of the jobs I didn't get were software

#

I am so insanely lucky

#

but most were grunt work

#

theme park, mcdonald's, walmart, delivering flowers

pallid hazel
#

@uncut meteor and @midnight agate although I did not move to class or dataclass.. I did fix the dict ๐Ÿ™‚

devout heath
#

@midnight agate Networking is key

#

theme park was horrible. mean bitch who owned the park would wander around yelling at people, I got wrath day 1

#

I wasn't in my part of the park

#

or doing my role

#

only software jobs I got were where I already had a foot in the door

#

first software job came from the delivering flowers

#

second from first job, third, then the fourth was through a buddy in CS from uni

#

all of my jobs in software I got through networking

#

it shouldn't work but it absolutely does

#

everyone who's hiring is trying to get a thorough idea of who you are outside of interviews, if they've already hired your friend they know that you're "of a feather" like "birds of a feather flock together"

#

bootcamp would be harder to sell to employers

#

but it's also a solid bit cheaper

#

but it can also be harder

#

tradeoffs as far as the eye can see

#

I loved college, would love to go back

#

just so that I can know I'm not the smartest person in the room (which is not a flex, because that's not where I want to be, I want to be learning, forever)

#

nobody calls your parents if you don't show up to class

#

this is not childhood

#

going to university is arguably making a decision entirely about "taking your life into your own hands"

#

you're risking debt to learn a high paid skill

#

they take it to the time before it was electrical: discrete math

#

it's an extraordinary claim to say that skipping college rather than going is a waste and this viewpoint has no extraordinary proof to meet the burden, for sure

#

yeah, it is a deferral of working for some people

#

but a staggering number of my peers had full time jobs

#

there's gen ed requirements in most degrees

lyric pawn
#

Marco Antonio is a good man... I would hire him.

pallid hazel
#

@midnight agate dont worry, im sure i'll have another chance for you to get a coin

devout heath
#

when I was in college, a large number of the other students in engineering already had lives, families, and full time jobs

#

they were people returning to school because they realized they had fucked up lmao

#

@uncut meteor crack 20k quid mate?

#

nice

deft bobcat
#

going to college vs work isnt a binary outcome or path. Individuals have different experiences

lyric pawn
#

@uncut meteor i smell cap

#

i feel like america is cheaper than the Uk

#

uk get taxed on everything

#

thats why healthcare is free over there

#

it was partial truth

devout heath
#

yes

lyric pawn
#

the biggest truth is certain places are cheaper than other places

#

like you said silicon valley is expensive to live in...

devout heath
#

why

uncut meteor
lyric pawn
#

thats where you were right

devout heath
#

you're mic is failing at the worst time

uncut meteor
#

so what was "cap"

devout heath
#

DM me boss

lyric pawn
#

overall though, i think its cheaper to live in the usa than the uk

devout heath
#

I cannot hear you

lyric pawn
#

but obviously certain places are going to be more expensive, cali living or living in london

devout heath
#

I haven't looked yet

#

I'll go look right now

uncut meteor
lyric pawn
#

think of the general things in the us @uncut meteor

#

think what 5 dollars of food costs there, vs what you can get in the uk

#

then think of other things like utility bills everything...

#

i think everything is slightly cheaper

uncut meteor
#

idk what $5 can get you kek , I don't live there

lyric pawn
#

you act like youve never watched tv

uncut meteor
#

the only thing I've been exposed to is people talking about the job / wage climate in software based areas.

sturdy panther
#

$5 can get you $4.99!

uncut meteor
#

sold!

devout heath
#

it's library swim

#

when the pool gets perfectly silent

terse needle
#

gurren lagann

devout heath
#

sub > dub

lyric pawn
#

brb

sturdy panther
#

!e

print("sub" > "dub")
wise cargoBOT
#

@sturdy panther :white_check_mark: Your eval job has completed with return code 0.

True
uncut meteor
cunning lake
#

!e def

wise cargoBOT
#

@cunning lake :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     def
003 |        ^
004 | SyntaxError: invalid syntax
devout heath
#

no

#

do not use phone at grunt job

#

feets hurt so much have to keep moving or will keel over

#

!e print(type(0))

wise cargoBOT
#

@devout heath :white_check_mark: Your eval job has completed with return code 0.

<class 'int'>
devout heath
#

!e print(type(0.0))

wise cargoBOT
#

@devout heath :white_check_mark: Your eval job has completed with return code 0.

<class 'float'>
pallid hazel
#

!e
print(type(type))

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

<class 'type'>
whole bear
#

are you on a treadmill?

devout heath
#

!e print(type(type(None)))

wise cargoBOT
#

@devout heath :white_check_mark: Your eval job has completed with return code 0.

<class 'type'>
devout heath
#

have to do all the things

#

if you stand still your feet hurt the most

pallid hazel
#

each and everything

terse needle
#

:ok

whole bear
#

@devout heath alright

terse needle
#
def x(:ok), :do IO.puts "OK!"
def x(:err), :do IO.puts "error!"
def x(_), :do IO.puts "huh"

x(:ok)
uncut meteor
#
def x(:ok), :do IO.puts "OK!"
def x(:err), :do IO.puts "error!"

x(:something)
devout heath
#

@remote jacinth I am gopher shill

#

I still do some automation in python

#

if it's more than a couple hundred lines of simple stuff then go provides simpler overall structure

#

clearer typing

#

easy testing

#

which is insanely important if you can't refactor

terse needle
#

same idea in haskell

data MyEnum = X | Y

my_func :: MyEnum -> Int
my_func X = 12
my_func Y = 2

my_func X -- Returns 12
devout heath
#

I hate exceptions

#

I feel returning errors is the clearest solution

#

I hate bash so much

#

so inconsistent

#

if? fi.
while? not elihw, no. done

uncut meteor
#

cos Enum values are instances

#

this won't work

#

oofers

terse needle
#

rip

devout heath
#

I think everyone should pick 1 language from 60's, 1 from 80's and one from '00s

uncut meteor
#

you could create a decorator for it, but that is straying from builtins

devout heath
#

I learned the most from C, Perl and Go

remote jacinth
devout heath
#

yeah

#

it just screams "command line hax" very loudly compared to other languages

uncut meteor
#

!e

from enum import Enum
from functools import singledispatch
from typing import Literal

class MyEnum(Enum):
  X = 0 
  Y = 1


@singledispatch
def my_func(val: MyEnum) -> int:
  ...

@my_func.register(Literal[MyEnum.X])
def my_func(val) -> int:
  return 12

@my_func.register(Literal[MyEnum.Y])
def my_func(val) -> int:
  return 2


print(my_func(MyEnum.X))
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 14, in <module>
003 |   File "/usr/local/lib/python3.10/functools.py", line 862, in register
004 |     raise TypeError(
005 | TypeError: Invalid first argument to `register()`: typing.Literal[<MyEnum.X: 0>]. Use either `@register(some_class)` or plain `@register` on an annotated function.
devout heath
#

like Perl, which was arguably created to compete with *bash

remote jacinth
devout heath
#

right

#

but why bash

remote jacinth
#

so that's what I use it for, same as powershell

#

cuz it's integrated and native

#

you know, good enough for me

devout heath
#

zsh, all these other more consistent ones exist

#

it's just rough

remote jacinth
#

sometimes even python feels like too much of a programming language for the task

devout heath
#

and I'm a grumpy old man

remote jacinth
#

i get that... so much

devout heath
#

yeah sometimes python is overkill, like I enjoy the bash in my simple makefiles

remote jacinth
#

what is your demarcation line for go and python?

#

I've been struggling with that lately

devout heath
#

if I want something that looks like OOP I abandon python

remote jacinth
#

I love Go but not sure if it's justified to use it for small stuff that gets data from a shell, parses it and sends it to the next program..

devout heath
#

I really really hate OOP. I'm grinding a diamond axe over it

remote jacinth
#

OOP is an abomination ngl

#

but sometimes very useful

#

I do OOP in Python cuz I am used to it but prefer not to

devout heath
#

if you're doing philosophy it's great

#

if you exist in the real world data boundaries define your architecture, full stop

#

Go also only uses structs, receiver methods and interfaces that match to types via "duck typing"

#

there's also a hack

var _ interfaceType = structType{}

that makes the compiler enforce interface implementation

#

rust and go and other languages have the unsafe keyword

#

and it does get used when developers know more than the compiler

#

and for c interop

#

pointer math...

uncut meteor
#

time to wrap my entire code with unsafe

devout heath
#

it's got dynamic typing though, doesn't it?

#

I mean, it's got some drawbacks and there are real questions about if it'll fly

#

but C and C++ are always the attack surface when a big 0 day is found

terse needle
devout heath
#

eh, jmp is basically goto

#

assembly is just really easy to fuck up and hard to put logic into

devout heath
#

the problem with purely functional languages is that they don't really provide for optimization aside from making your own lisp for whatever

#

there's no break when you've hit what you wanted in a loop without hax

#

I don't know any purely functional languages

#

I've only used F# in college

#

python and go are both great for one big overlapping reason

#

they both stop you from having to think about implementation so you can focus on architecture/design

#

you need to more tightly define what you're doing

#

do you know how to profile your code?

#

"quickly as possible" is a funny target

#

do you mean faster to develop?

#

or execute?

#

well then go is an easy choice if you're not doing something that's almost entirely handled by c++ inside a python library

#

python can be faster than go in some cases though, it depends on what your data is.

#

these worker pools are really easy to create in go

#

but in go they're faster because goroutines are primitives that only add to space complexity most of the time

remote jacinth
#

checkMK

devout heath
#

one thing that's really important: what do other people who might want to keep working on this use?

#

do they already know go?

#

go is easy to learn, but it is a real paradigm shift

unreal anvil
#

thoughts on rust

devout heath
#

rust is safer than go

#

but harder than perl to learn

unreal anvil
#

i believe it, lots of type safety

devout heath
#

faster than go, but also slower compilation by a good bit and compilation optimization is not a thing in go

unreal anvil
#

we should integrate rust tokio with cython

devout heath
#

I want to eat food

#

indefinitely

#

pls & tnx

brave steppe
#
def _set_asyncio_result(future: asyncio.Future) -> Callable[[Future], None]:
    def inner(fut: Future) -> None:
        future.set_result(fut.result())


class MyAsyncThreadPool:
    def __init__(self) -> None:
        self._pool = ThreadPoolExecitor()

    def _submit(self, func, *, *args, **kwargs):
        fut = self._pool.submit(func, *args, **kwargs)
        afut = asyncio.Future()
        fut.add_done_callback(_set_asyncio_result(afut))
        return afut

    async def submit(self, func, *, *args, **kwargs):
        return await self._submit(func, *args, **kwargs)

๐Ÿ’ฏ

devout heath
#

what was your issue?

#

go mod stuff?

brave steppe
devout heath
#

ah yeah c interop stuff blows

#

lots of wheels get reinvented in go

#

c++ devs see red over it

#

some stuff is slower because of how go's runtime handles things, but I like being able to read all the code I depend on

#

sue me ๐Ÿ˜„

#

everything written in c/c++ right now would be served well by a rust replacement

unreal anvil
#

tons of blockchain jobs are asking for rust

brave steppe
#

Blockchains O_o

devout heath
#

crypto is utlra-mega-super-sketch

#

coffeezilla on youtube

#

folding idea's recent video "Line goes up" is so eye opening

unreal anvil
#

basically ethereum is a turning complete decentralized database

devout heath
#

everyone should watch it 8 times

remote jacinth
unreal anvil
devout heath
#

discord could have switched to nightly builds of go

#

they decided against it

#

but then went with nightly builds of rust

#

idiots

#

it's a good article

#

for people who didn't know that the GC in go is not reference counting it is globe stopping

#

but they very well could have used more zero-allocation message passing designs

#

go stops the entire app execution to count references to allocated memory

#

deletes thing with 0 references

#

it's just one approach to it

devout heath
#

pretty sure lots of things use reference counting

#

but rust makes you think about it and implement it correctly

#

always the fastest way

#

I've never implemented that myself

#

there is at the end of the day some amount of allocation

#

sorry it's called zero-copy

#

"Zero-copy" describes computer operations in which the CPU does not perform the task of copying data from one memory area to another or in which unnecessary data copies are avoided. This is frequently used to save CPU cycles and memory bandwidth in many time consuming tasks, such as when transmitting a file at high speed over a network, etc., t...

#

@remote jacinth .env files +.gitignore entry + parse .env library + os.getEnv() type function go Brrrrrrrrrrrrrrrrrr

#

shit I'm a decade older than both of you

#

I remember 9/11 ๐Ÿ˜ฆ

brave steppe
#

lol

devout heath
#

yes

#

and if they switched to nightly there was already a fix iirc

#

but they decided to take their own fate and migrate to rust

#

probably could because microservices

#

and then they switched to nightly anyway, again, iirc

#

It was probably a better choice yes

#

my real problem: where the fuck is the code

#

they're not showing it

#

so how do we not they're not lying?

#

exactly

#

so they just yell shit from their ivory tower?

#

fuck that guy

#

ye

#

I'm hard copyleft

#

like I โค๏ธ AGPL 3.0

#

lol

#

yes you can

#

that's a misconception

#

but what do you care

#

you don't understand the license

unreal anvil
#

i feel like it's hard to start a business if youre entire idea and IP is code, then someone with more funding can come along and deploy your project

devout heath
#

I have a library in go for checking the entropy and appearance of passwords in a list of frequent passwords

#

if it gets used people don't have to share their source using it

#

as I understand it, only if they modify it, even if they're only hosting it, they have to share the code

brave steppe
#

A system incorporating a GPL-covered program is an extended version of that program. The GPL says that any extended version of the program must be released under the GPL if it is released at all. This is for two reasons: to make sure that users who get the software get the freedom they should have, and to encourage people to give back improvements that they make.

devout heath
#

google is afraid to have modified code in their codebase without having distributed it under the rules

#

great news is gpl libraries get to use all other code

unreal anvil
#

openstreetmaps does that I think

#

they have closed source bundlers of open map tiles, which they sell

devout heath
#

GPL does not trigger the disclosure if you modify the code behind a network boundary

#

AGPL is a modification that does

#

and GPL does strong-arm other code into copyleft

brave steppe
#

Unlike the first case, where the library implements an ethically superior standard, here adoption for its own sake will not accomplish any special objective goal, so there's no reason to avoid copyleft entirely. However, if you require developers who use your library to release their whole programs under copyleft, they'll simply use one of the alternatives available, and that won't advance our cause either. The Lesser GPL was designed to fill the middle ground between these cases, allowing proprietary software developers to use the covered library, but providing a weak copyleft that gives users freedom regarding the library code itself.

devout heath
#

but then again, it's my code.

#

so I get paid in you do what I say

#

right

#

I also use MIT

#

CC-BY-SA

unreal anvil
#

I do really like MIT

devout heath
#

it's great for what it should be used for

remote jacinth
#

MIT is cool ye

quasi condor
#

MIT makes the most sense for anyone who isn't literally a SASS company

devout heath
#

You can also literally just type out your own license

#

or use a generator

#

I have specific reasons related to what the library I'm using AGPL for does.

#

this is why you should care about licenses

#

I can read 90+% of my operating system because Ubuntu

#

windows is stupid

#

we should stop this madness

unreal anvil
#

does the license not protect against code minimizing?

#

yeah

#

i mean obfuscating code. like every function of your source code is releasted as a version that has every function name changed to a, b, c

#

released*

#

haha but the license lets you..

#

idk

#

i bet it does

#

you release your own code under the AGPL license, but your code is minimized

#

then you can use agpl without giving up your real source code

#

doesn't matter lol it's probably still not allowed

devout heath
#

minification does nothing to hide what your code does

#

you can minify gpl code but you have to offer the original

#
#

your code would have to be a derivative work

#

something that simply calls into the code is not a derivative work

devout heath
#

there are derivations of code that trigger the clause and calls into the code or include of the gpl that do not trigger the clause forcing your code to be gpl'ed

unreal anvil
#

WSL is opensource

#

vscode is opensource

#

but windows OS isn't

devout heath
#

it is inadvertently open source

#

but you can't read it because that's illegal

unreal anvil
#

isn't .net different from dotnetcore

#

django forces you to use its design ideas, but flask gives you complete freedom, on that topic

#

I have to build airgapped programs,s o I don't get to use the cloud ๐Ÿ˜ฆ

#

I primarily develop electron applications. They're pretty sweet, but they are super memory intensive

#

developing the UI is the slow part, and it's very fast with web development technologies

#

the community support sells it for me

#

wasm + electron

#

what was the question exactly

#

oh yeah, so electron is basically a web application with access to the operating system. then you can make a backend with whatever you want

#

honestly a simple web application is probably all you need for simple applications. electron is only useful for operating system calls

#

there's tons of libraries for integrating with backends. http requests, web sockets, tcp sockets, udp sockets, open serial ports, whatever you want

#

yeah can create interprocess communication stuff, so whatever extra code you write with things like rust, it does run in a separate process from the electron app, so you have that bottleneck

#

there's that gaming browser, idk if that uses wasm, but it seems like a potentially popular use case

#

for that use case, I would just use a web application with vite, and then aiohttp to communicate with your python application

#

i agree, wasm is like blockchain hype

#

Opera GX is what I'm thinking of

#

it's a rapid web development build tool

#

vue?

#

it sounds like React Native

quasi condor
#

web view

unreal anvil
#

it sounds like it lets you put web apps in native apps

brave steppe
quasi condor
#

it's a browser API that OSs implement to give app developers access to a browser

#

such that it doesn't matter what browser things get rendered in

unreal anvil
#

it's a nodejs environment sandboxed in your browser i think

#

for remote development from the browser?

devout heath
#

web frameworks make me seasick

unreal anvil
#

they say full stack engineers are no more because web tech is so complicated

devout heath
#

nah, my vanilla.js brethren out there

#

that's why you gotta separate your services from the frontend somehow

#

so that you don't worry about server side rendering

unreal anvil
#

ssr is for seo

devout heath
#

somewhere, sometime, everyone forgot that's what JS is for

quasi condor
#

In fact, Vanilla JS is already used on more websites than jQuery, Prototype JS, MooTools, YUI, and Google Web Toolkit - combined.

#

I like it

devout heath
#

you gotta pronounce it "gooeeey"

quasi condor
#

.xkcd standards

viscid lagoonBOT
#
XKCD comic 'standards'

Comic parameter should either be an integer or 'latest'.

quasi condor
#

.xkcd 927

viscid lagoonBOT
#

Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.

devout heath
#

enemy of a great solution is a good enough existing standard

#

js is still here

#

it's not bad it's just insanely annoying I think

unreal anvil
#

there's no incentive to rebuild your infrastructure if it works

devout heath
#

uhhhh if you can't find anyone to work on it that sounds like a real problem

unreal anvil
#

whats with php, i thought that was dead

quasi condor
quasi condor
devout heath
#

no I never said it was

#

people just don't like learning old shit to work on code other people can't keep up with

quasi condor
#

sure - so in that case, the lack of COBOL developers is an economic not a technological one

devout heath
#

basically a wall of red flags

quasi condor
#

the point that article makes (in a better way than I can make it) is that old shit code is shit because it's grown to encompass 30years of edge cases

devout heath
#

I mean, es6 stuff is not old school

quasi condor
#

any attempt to rewrite it is destined to run into many of those edge cases as well

devout heath
#

I am absconding everyone using out of date browsers

quasi condor
#

so the shitness is just a function of the complexity of the world

devout heath
#

but fuck 'em, ya know?

unreal anvil
#

yeah that's true lol

somber heath
#

I think the closest I may ever come to learning COBOL is seeing a code example in passing.

devout heath
#

I mean, if someone knocked on my door and offered me 150k yr for remote cobol work I would figure out how to cope

#

but I really really really hated CL and RPG and we didn't get to COBOL in my legacy class

quasi condor
#

TOTAL = REAL(NINT(EARN * TAX * 100.0))/100.0

users of COBOL could write the same command as:

MULTIPLY EARNINGS BY TAXRATE GIVING SOCIAL-SECUR ROUNDED.

As you can tell from the COBOL version, but probably not from the FORTRAN version, this line of code is a (simplified) example of how both languages could compute a social security payment and round the total to the penny. Because it was designed not just to be written but also to be read, COBOL would make computerized business processes more legible, both for the original programmers and managers and for those who maintained these systems long afterwards.

Cobol was originally designed to be written by people thinking in terms of business

devout heath
#

have you ever listened to the C-suites talk?

#

they're playing buzzword bingo

#

SaaS has them creaming their pants

#

so dumb. 80 SaaS systems being used at a given fortune 500 company on average, iirc

#

so scattered, it's all just horrifying integrations

arctic ledge
devout heath
#

wow I got like 0 signal

#

just me?

wind raptor
#

Not just you

arctic ledge
#

I have been having issues with the VCs on this discord all day

#

My other servers are fine. It usually passes

devout heath
#

better now

#

maybe discord should switch to zig lmao

unreal anvil
#

what is zip

#

zig

devout heath
#

weird new language

#

sometimes faster than C

#

I dunno

unreal anvil
#

looks dead haha I don't know anything that can beat the LLVM speeds

devout heath
#

ergo qwerty acceptable

#

am bad at motor controls but still type ~70wpm

#

Colemak mod dh is supposed to be great for removing "bigrams" where you use the same hand twice?

unreal anvil
#

where do you practice? typeracer?

remote jacinth
#

monkeytype, typing academy

devout heath
#

how do I train my left pinky to hit tab faster for intellisense?

unreal anvil
#

there's a death mode for typeracer

#

typeracer does that, random quotes

#

i can't find keybur

devout heath
#

that's a really good idea

#

force developers to learn where all the symbols are at

#

like ^

unreal anvil
#

oh that's cool

#

i map my caps lock to ctrl

devout heath
#

I will forever have a numpad

#

too many numbers in computing

#

and filling out forms

#

pins

unreal anvil
#

i have lots of different types of keyboards at work since my it sends me a different type every time i ask for one

devout heath
#

but can you walk up to a staggered board and just use it?

unreal anvil
#

and you get 105 with that haha

arctic ledge
devout heath
#

what about split ortho

#

why single board

remote jacinth
devout heath
#

I've always used ergo qwerty membranes and huff copium

#

only switch would be to ortholinear split for mech

#

STOP IT

#

use a split so that you stop

#

way too easy to stop when you can no longer reach them

#

I use logitech K860

#

and mx master 3 mouse

unreal anvil
#

i personally prefer carpotunnel

devout heath
#

my mouse is worth more than my screen

#

best investment ever

#

I have an old AOC

#

I lied. screen is still $2 more

remote jacinth
pallid hazel
#

prolly uses it cause he plays the golf game at the bar..

devout heath
#

I could play skifree with that trackball for days

unreal anvil
#

they make gaming controllers with track balls what

devout heath
#

man what are you talking about

#

I always hit the trees

#

dude this game is so old

#

it's like flappy bird to a great extent

#

just dodge shit over and over

#

with diminishing returns on the controls around a central point

#

did you get eaten by a yeti?

#

man vscode gang

unreal anvil
#

I love gitlens

devout heath
#

have you used GitLens tho?

#

ayyyyyy

unreal anvil
#

haha

#

i review pull requests with gitlense

remote jacinth
remote jacinth
unreal anvil
#

vscode + vim + crappy computer. I've lost entire file's changes 3 times in teh past 2 years

devout heath
#

commit often on your own branch

#

so you don't trigger CI

#

commit and push*

#

I've learned too many things the hard way

unreal anvil
#

nah, like it happens even if i do that

#

like a find and replace, search and rename a variable and a few other things, and it's gone

devout heath
#

oh no

#

use the refactor tool

#

not search and replace

unreal anvil
#

i did learn to push often like you said

#

c++ doesn't have a refactor tool

#

it sucks

devout heath
#

ye make it github's problem

#

how the fu.....

#

hahaha yw

unreal anvil
#

haha, my team has an insane c++ library 20+ years in the making

#

plus, we'd use rust over go

devout heath
#

yayyyyy

#

do you require deterministic runtime?

unreal anvil
#

yeah, 100% and we do insane mathematical computations

devout heath
#

mad sure yeah just not c++

#

anything with refactor tool

unreal anvil
#

I wish man haha

devout heath
#

@arctic ledge discrete math?

unreal anvil
#

I was originally a math major, but I chose software

devout heath
#

boolean algebra though

#

do you know about some of the optimization like kmaps?

#

karnaugh complete madman

#

borks my brain

#

I believe you can do it

#

probably coast through

#

but welcome to planet x := x + 1

unreal anvil
#

leibnitz discovered calculus

#

jk

remote jacinth
devout heath
#

ret conned

remote jacinth
#

oh sorry

#

:=

#

you may pass

unreal anvil
#

3blue1brown is a super dope math channel

devout heath
#

is there any language where x = x + 1 would work?

#

but does it not say x is None ?

unreal anvil
#

some symbolic language

#

functional programming might, it'd create an object, not do an assignment

devout heath
#

!e
x = x+1
print(x)

wise cargoBOT
#

@devout heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'x' is not defined
devout heath
#

ye

unreal anvil
#

were you gonna reference the e^i*pi video?

remote jacinth
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*

remote jacinth
#

!e
print('ee')