#💻|programming

1 messages · Page 55 of 1

pure copper
#

I just say make me a program i am thinking about and it does it

brisk silo
#

Okay, sure, for simple types.
But as soon as you need complex logic, your case blocks get bloated.
A Strategy pattern keeps the logic encapsulated in separate classes tomsip

jagged prawn
#

ai is telling a lot of bullshit

pure copper
#

I like nested switch statements to clean things up.

#

Then encapsulate in a class

jagged prawn
#

if no, its useless

pure copper
#

So, my brother in law says i won't even have to think the program, nor tell it to make what I'm thinking. It will do it without my thoughts at all.

#

🧠 SadHamster

brisk silo
pure copper
#

Equal rights for all switch statements

#

🏳️‍🌈

pure copper
#

I've heard of that

jagged prawn
#

good for you if you not proctis it

gloomy meteor
pure copper
gloomy meteor
#

Where is overlord to carry the chat

pure copper
#

Puck and i are here on shift

#

We're just addressing a different case

jagged prawn
#

I usually try to avoid if statements when possible. I prefer using enums, or for larger things an abstract class callabel methods. And sometimes I rely on try/except to handle cases

#

sometimes I do weird stuff

#

50 shades of Puck

jagged prawn
pure copper
gloomy meteor
pure copper
#

We have been arguing switch for the last hour

brisk silo
pure copper
#

Underappreciated

#

One more case

jagged prawn
pure copper
#

All tied into switch. To abstract for the beginners

#

I switch between cowbells rather than driving cowbell class.

jagged prawn
pure copper
jagged prawn
#

I swtich better betwen scout and dark lagger

gloomy meteor
# brisk silo Back to that It's about scalability! What happens when you add a 16th case?

If you use Sealed Classes, the compiler literally won't let you forget the 16th case. It checks for exhaustiveness.
Your Map approach? You’ll get a null at runtime if you forget to register a key, and then you’re hunting for a NullPointerException in production.
Sealed classes are a feature in Java (15+) and Kotlin that restrict class inheritance, allowing a class or interface to define a limited, permitted set of subclasses

#

I'm taking this too much

#

lmao

#

learn kiddo

#

learn

jagged prawn
jagged prawn
pure copper
#

Invisible we are

jagged prawn
#

are we gosts

#

ghosts

pure copper
#

You are the goat

jagged prawn
#

I forgoting wrods

jagged prawn
pure copper
#

Yes

#

Or should i say 1

jagged prawn
jagged prawn
pure copper
gloomy meteor
# gloomy meteor I'm taking this too much

Java is moving toward Data-Oriented Programming. switch + records + sealed types is faster to write, easier for the Just-In-Time compiling to optimize, and type-safe at compile time
The "everything must be a Strategy object" mindset is what gave Java the reputation for being verbose creepy
Last one ISTG 😭
I'm glazing Java too much ig

pure copper
#

Looks like we're heading back to the 60s

gloomy meteor
pure copper
#

🧁

pure copper
#

Making myself boofiful

jagged prawn
brisk silo
#

I forgot about the exhaustiveness check on sealed types.

pure copper
jagged prawn
#

ohh new drama, not initiated by me

#

lets see

pure copper
#

😮

jagged prawn
gloomy meteor
jagged prawn
pure copper
gloomy meteor
pure copper
#

I prefer glazed donuts

jagged prawn
#

damt it tommorw is monday? why the weekend end so fast

pure copper
#

I got three weeks to go. Then 9 months holiday, then i quit.

brisk silo
pure copper
jagged prawn
jagged prawn
pure copper
#

2+ months annual leave and 6 long service

gloomy meteor
pure copper
gloomy meteor
#

Bro thinks I'm fighting to prove shi

jagged prawn
pure copper
#

Chi

gloomy meteor
#

Bring the real ones

pure copper
jagged prawn
pure copper
#

Yes

jagged prawn
#

i would probably do the same

jagged prawn
jagged prawn
pure copper
#

Oh it's 3. Better macht schlafzeit

pure copper
#

500watts

jagged prawn
#

what was the hitlers pin code?

#

nine -nine-nine-nine

#

9-9-9-9

#

it funny for me and those who know the lang

pure copper
jagged prawn
#

didn't know john is the singer or can sing

pure copper
#

😮

jagged prawn
#

even not bad one

#

i've seen something with him that you will definitely like

#

damn we're back to the begging

#

🎶

#

late time, nice chatting

#

great new working week duh

#

bye

#

💃🕺

vivid warren
pure copper
#

Bye all

jagged prawn
#

haven't seen overlord, hello and bye

brisk silo
#

It's calm here

#

I don't have the ability to start another topic after what happened to me SadHamster

fast solstice
brisk silo
fast solstice
#

ok

brisk silo
#

I found out that I'm so clueless SadHamster

#

I felt like I'm getting scolded

fast solstice
#

bruh

#

can you point me towards the chat where this happened

gloomy meteor
#

No offe

#

Offence

neon token
#

Anyone here who has web dev agency?

brisk silo
#

Or it's just the way you have been raised

#

It's alright to be knowledgeable but don't belittle others

#

It's not good

austere gate
#

@brisk silo You seem like a genuinely nice person with a kind heart. Please do not take people on the internet too seriously, including me. I know it is probably hard to accept, but the fact of the matter is that most things people say online come from self-embarrassment, disappointment, and frustration, while some people simply enjoy trolling others. As a result, they are often just empty words with no real moral grounding and should not be taken seriously.

brisk silo
austere gate
brisk silo
#

You know that all of this started because of a Java argument too SadHamster

#

He thinks like he won a prize by proving me wrong

brisk silo
#

🐍

gloomy meteor
#

I was saying good things about you

gloomy meteor
pure copper
# brisk silo You know that all of this started because of a Java argument too <:SadHamster:12...

Hi Elena, Its nice that you joined the programming channel and want to stay and pass on your knowledge. Overlord, Puckipsi and I are always throwing in our commentary on computer issues, when we can to help people and just to keep the place alive. Its always full of action. All three of us have slightly varied histories and opinions on topics. There are hundreds of people passing through here with lots of laguages and frameworks and LLMs and whatever the current buzzword is for the month. If we seem like we are trolling, its not overt and will be subtle, but we genuinely do like to help. We hope you will become a regular (troll or expert or both)

#

PandaLoveBlush 🥳 Kyuupeace 🤖 derp 🧜‍♀️

#

btw, switch is great

gloomy meteor
pure copper
#

too bad I had to go to bed

gloomy meteor
gloomy meteor
#

Oh wait

#

You had

#

Sorry

#

My English

#

😭

#

Lmao

pure copper
#

Its the middle of the day. I did go to bed. Now I am awake again

gloomy meteor
#

I think I'm thr one who needs sleep

pure copper
#

Thats why we do English here. To use it with COBOL

#

Well back to my Electrical network... Slowing isolating issues.

gloomy meteor
pure copper
#

Its a great language

#

HIgh paying as all the COBOL programmers are retiring.

#

COde still runs on big machines that run the world secretly in the background

#

Government, banks, etc

#

afk ciao

brisk silo
serene plover
serene plover
#

And Ai solutions

gloomy meteor
brisk silo
gloomy meteor
#

Even the pronouns

#

It's lame

vernal pier
#

hi

#

everyone

pure copper
humble finch
vernal pier
#

hey, guys

thick dew
#

hiii

#

whatsup coders

vernal pier
#

hi, snowy

gloomy meteor
mint barn
#

How about we host a little chatgptathon where we make apps taking as much help as needed from LLMs and then some judges judge it

#

🧍‍♂️

brisk silo
brisk silo
gloomy meteor
#

We are ruining the scientific vibes of this channel

brisk silo
#

Okay let's test your knowledge then

gloomy meteor
brisk silo
#

Okay let me google some easy question

#

If you’re building a high-performance enterprise network today, you would pick EIGRP over OSPF, right?

#

I Hope that I didn't make mistakes here and didn't forget the first year subject

gloomy meteor
# brisk silo wut <:SadHamster:1220957637089427466>

Old me would chose OSPF for the vibes, since I like the open source things, and hate the Cisco monopolism's shi
But my logic saying here EIGRP is a Hybrid so it’s like a smart car, like we aren't holding emotional stuff against tech
But the player here that you use what you want based on the env you working in

gloomy meteor
#

brb

gloomy meteor
#

Which means you need cisco devices

#

That means more 💰

#

Which sucks

brisk silo
gloomy meteor
# brisk silo So? Cisco is better

Sure, until you want a different brand that’s cheaper or faster
If I use OSPF, I can connect any device from any company in the world and they all understand each other perfectly
I can saty that’s not cheap, that’s being smart ✅

#

Are you trying to become a network engineer by any chance

brisk silo
gloomy meteor
brisk silo
gloomy meteor
brisk silo
gloomy meteor
#

well

#

blocked anyways

pastel crow
#

Anyone here solid with DSA? Need two members to team up with for an upcoming competitive programming event. Hit me up if you're interested.

lean sage
#

Hi

#

Wanna know if someone can help me in some ideas in programing app web

#

?

pure copper
#

Can you elaborate

lean sage
#

I m devellopping now an application web but I wanna someone ask him to give some ideas in my project

#

If there is someone wanna help just send me private😇

pure copper
#

Are you looking for features for the application?. What is the gist of the program already? @lean sage

#

Was so close to creating a DM, just a liiiiitttttle more infooooooo. Then was ready for a big offer of help, but alas abandoned mid conversation.

gloomy meteor
#

What happened reminded me of a meme

pure copper
#

It appears to be one of those folks we never see here, appears once for a single post or 2 and then is never seen again.

austere gate
#

I've a question guys

#

disappears

gloomy meteor
#

I mean guys
I'm going to state something crazy

#

Programming channel> AI

#

Holy glazing

vernal pier
#

hey guys

serene plover
#

Hello

mystic island
#

hello everyone

brisk silo
#

Heya

nocturne remnant
# gloomy meteor If you use Sealed Classes, the compiler literally won't let you forget the 16th ...

@brisk silo this was a really good punchline. Nevertheless, you guys really have to talk in concrete. Tools are for different purposes. Sometimes devs mess up something and "fix" it with a tool that is designed for a different purpose. 15 branch switch case is a mess. 15 strategies for a sole pipe is an equal mess. There is something wrong on fundamental level and you're discussing what's better for cleaning up the consequences.

brisk silo
#

But let's say that
We were essentially arguing over which rug covers the mess better instead of just cleaning it up.
If you're looking at 15 branches, the issue isn't the pattern it's the complexity.
No amount of clean code can save a fundamentally broken architecture.

nocturne remnant
#

That's exactly the point. Maybe I've missed why that argument started in the first place.

brisk silo
nocturne remnant
#

Sounds like old-days-nerds-programmers-days : )

#

Kinda miss them tbh. Not truly toxic ones though. Just a little fooling around

#

What were you trying to discuss? bagel

brisk silo
brisk silo
austere gate
brisk silo
brisk silo
austere gate
#

But I sit with other developers

brisk silo
leaden sleet
leaden sleet
mighty root
#

anybody learning webdev?

waxen pike
#

i'm web developer

tardy meadow
queen urchin
#

how arrogant?

pure copper
pure copper
pure copper
night zephyr
#

Hello everyone! I'm currently learning English and improving my communication skills. I have a solid background in Python, backend development, APIs, databases, automation, and experience building real projects. I'd love to join a project where I can contribute, gain experience, and practice English while working with other developers. OBS-> my english is really bad LOL feel free to text me by the way 😄

nocturne remnant
pure copper
#

💃

#

👩‍🔬

night zephyr
jagged prawn
jagged prawn
#

wow, there are new people and some activity here, I haven't seen that often

pure copper
#

🧁

austere gate
jagged prawn
#

I'm ready to say yes

#

💅

#

terraform was nice and fun when I had one mvp environment and a few resources with a single backend. Now it’s becoming a complete pain in the ass with one state file two environments and a couple of hundred resources

#

I should use more commas in my sentences

gloomy meteor
#

AI is taking over guys

visual smelt
#

Guys

#

Are u ready?

#

Write once compile to many

nocturne remnant
austere gate
austere gate
gloomy meteor
#

am shcoked

austere gate
vivid warren
pure copper
pure copper
pure copper
nocturne remnant
nocturne remnant
#

offtopic. Did something happen here recently? I've received more random friend requests in the last two days than I've in my entire stay here.

pure copper
#

With the price of oil rising, people can ill afford to socialize irl, so they are trapped in the virtual world looking for friends here.

#

🛢️ FrogRose

pure copper
devout herald
#

is there anyone good with tech here

#

urgently im tryna burn a windows 10 into my laptop

pure copper
#

Everyone

#

What's the issue

devout herald
#

can u guide me through i dont wanna delete all my files

#

im in my bios page what 2 cclick

pure copper
#

Have you done a backup. Most important

devout herald
#

yea

pure copper
#

So you could recover them if you stuff up at least. That's step 1

devout herald
pure copper
#

What op sys do you have on machine now?

devout herald
#

win 11 , i want windows 10

#

i believe thats on my usb rn

#

burned

#

whixh option 2 choose

#

panic

pure copper
#

I would think, neither. If the win10 is on the usb, then you need to change the bios to read the usb as first option for boot, then hard drive. When you put a usb in, it should boot directly from the usb

devout herald
#

oh ok thats great

#

drop recipe

pure copper
#

Do you have linux on the machine also?

devout herald
#

no its laptop lenovo

#

idk if i have linus 😅

pure copper
#

Well try the boot sequence setting first and see what happens

devout herald
#

oke

grave venture
#

Has anyone created an automation workflow on n8n ever?

pure copper
#

If it boss from the usb, it will not into the win10 on that drive. The hard drive should then show up once it starts, but the windows directory on the usb will be the main ops sys source and the HD in the laptop will not be used at time.

#

@devout herald

devout herald
#

yo

pure copper
#

How did you create the bootable usb ?

devout herald
#

it only shows these 2 options after i rebooted

pure copper
#

When you start the machine press the F1 key repeatedly, immediately and the bios settings should appear.

#

@devout herald

#

This happens before the boot menu

#

Start from power on, then f1 lots of times

devout herald
#

i did

#

still not readinf

pure copper
#

From power off immediately press F1 lots of times. The Lenovo site says some of their machines require <ENTER> key to be pressed immediately lots of times to get into the bios settings menu.

#

Try to enter if f1 does not work

#

@devout herald

#

Have you ever had this machine running before? Is it second hand? Is it new?

fallow sapphire
#

Guys i have an idea i want to create a room for interview practice

#

I want you give mock interview to each others

pure copper
#

People do that in any room already

fallow sapphire
#

I dont see them

pure copper
#

You have to ask people to agree to do an interview practice.

brisk silo
#

Yes

fallow sapphire
#

For me i need a guy who is into web applications

brisk silo
#

I've encountered many

fallow sapphire
#

Who know node

pure copper
#

They may be studying nouns at the moment or anything

fallow sapphire
#

And i want someone who understand system design questions

pure copper
#

@devout herald how's it going. Got in to the bios yet?

fallow sapphire
#

Technical questions are fine but how u think in pressure and telling flow of something u know its hard

#

In my case i feel i fumble

devout herald
#

no peo

fallow sapphire
brisk silo
#

😭

pure copper
#

our operators are waiting for your call.

#

☎️

#

🤖

#

@devout herald Have you given up seeking help or trying to get this working?

brisk silo
#

Peo is a real enthusiast

#

He couldn't resist giving help

pure copper
brisk silo
pure copper
pure copper
brisk silo
#

Y'all supporting him SadHamster

pure copper
#

no

#

The feeling I received is independent

brisk silo
pure copper
pure copper
pure copper
#

nvm. outta here for a while. ciao all

#

afk

brisk silo
#

Some boring classes

#

Nothing much

#

Woah

#

You afk

#

You aren't anymore

#

Hehe

devout herald
#

sorry i was taking a fat shower

pure copper
# devout herald sorry i was taking a fat shower

Shown on ThinkPad w540
@MeFixingEverything
How to enter the BIOS on most Lenovo ThinkPad laptops - The easy way!,How to access the Boot list:,The easy way series,key combination press bios,how to,tutorial,easy,lenovo thinkpad,T40,T41,T42,T43,T60,T61,T400,T500,T410,T510,T420,T520,X220,T430,T530,X230,X1 Carbon,T440,T540,X240,X201,T series,R serie...

▶ Play video
drifting zenith
#

hi people

austere gate
#

TRIGGERED

austere gate
# brisk silo 😭

"If someone doesn't ALWAYS agree with me, they must be taking sides and actively conspiring against me."

#

TRIGGERED

brisk silo
#

I'm not good for tech I guess SadHamster

austere gate
gloomy meteor
#

Yeah guys

#

keep on teaching her the cruelty of "programming chat"

#

🫡 🔥

#

This chat ain't for beginners

jagged prawn
#

glad to see Overload replacing me when I'm away in ways to communicate with new members

#

not a complete replacement since none of them haven't deleted the conversion and were offended, but you will definitely have one

#

oh, really, what are you doing here?

#

or should I say, get lost, arrogant bastard

jagged prawn
gloomy meteor
#

and this is for you

#

And if you want I can bring deleted account message too

#

but it will sound so lame

fast bronze
#

blobscared all by me smh

vivid warren
drifting zenith
#

yall know how to program?

drifting zenith
#

answers my question

pure copper
#

When my non tech friends went to the rock concerts, they were called head bangers. Us techos are head crashers. (Scratching at data):
https://www.youtube.com/watch?v=bGSTYvx5c78

After a long hiatus, I proudly present: Toccata and Fugue in D minor, BWV 565, by (probably) Johann Sebastian Bach. (As suggested by Mnjooschji, Wahrheitest, JtGorospe90, tpaper12, et al.)

I know I mentioned I was working on another musical instrument, but it just hasn't come together yet, and I was inspired to make another musical floppy vide...

▶ Play video
pure copper
#

whyy 🤖 🛢️ Angry

#

🎶 🔇

icy moss
tardy meadow
#

I AM DONE with Phpstorm... and I AM DONE with VS Code... I want to use my terminal to edit anything I want, and I am tired of needing to wait for the IDE to load, make a full search of the project before I can even touch the IDE to do the changes I want... What is the road to get out of this place...

pure copper
icy moss
#

Mhm

#

I don't have any expericnce in this field though. I only know basic python.

#

And batch (commang prompt) which I almost forgot as I haven't toughed it for a long time.

gloomy meteor
forest cairn
#

Hi

#

@icy moss

#

Do you wanna grow your experience ?

jagged prawn
gloomy meteor
austere gate
jagged prawn
#

well if you want something casual, let me fix it

#

bot it

#

twist it

#

pull it

#

bend it

#

flip it

#

extend it

#

load it

#

cok it

#

read it

#

memorise it

#

burn it

#

aim it

#

kill it

#

squiz it

#

fake it

#

end it

#

zip it

#

suck it

#

damn it

#

robo chiken such a banger

#

now I definitely need to take a nap and relax

#

auf wiedersehen

pure copper
#

Finally something worth waking up to, in this channel.

#

Now I'll have months of better recommendations in my ytube to watch

gloomy meteor
#

🥀

austere gate
young nexus
#

I want to call with anyone

icy moss
forest cairn
#

can you dm me ?

modern totem
#

yoooo

brisk silo
#

Did anyone work with virtual threads before ?

upper harness
#

what do you think about taking a computer Science mayor when we don't have any experience with computers especially coding?

pure copper
vivid warren
drifting zenith
#

..

young nexus
#

who are free right now?

#

we can jump on a call

#

Room 3.5

brisk silo
jagged prawn
nocturne remnant
jagged prawn
# pure copper Now I'll have months of better recommendations in my ytube to watch

then check out my personal recommendation https://www.youtube.com/watch?v=SvImGR2mI9M

Jesus slips up.

SUBSCRIBE: http://bit.ly/AdultSwimSubscribe

About Robot Chicken:
Robot Chicken is Adult Swim's long-running stop-motion animated homunculus of a sketch show. Witness sex, violence and 80's toy references collide through fan-favorite characters like the Humping Robot and the beloved Robot Chicken Nerd as creators Seth Green and ...

▶ Play video
brisk silo
nocturne remnant
#

Reminds me my boiz from php world. How they're excited about new features in php>8, while all I see is a wannabe show where instead of switching to a mature language we try to adopt features from there. Sometimes with very dubious efficiency at best (I can't hate and complain enough about named parameters abomination they have adopted).

pure copper
# jagged prawn then check out my personal recommendation https://www.youtube.com/watch?v=SvImG...

So this came up as the next clip.
https://m.youtube.com/watch?v=OnkTUKtxRic

Download transcriptions at https://georgecolliermusic.com. Check out the Discord!: https://discord.gg/3qxNDA3NCy

Original video: https://www.youtube.com/watch?v=QZShA_a-5r8
Performed by: Nyango Star
Transcribed by: Daniel Semmelrock (https://www.youtube.com/channel/UCcTteCGYQubiOmjfyPIrSkg/)

faq:
Q: how old are you / A: i'm in high school!
Q: ...

▶ Play video
pure copper
#

An oldie

#

Learn some latinus English

jagged prawn
#

finally not just me sending something funny to watch, or that aligns with my humor

#

hmm spot the difference

#

interesting fact - python (programming language) wasn’t named after the snake, it was named after the creator’s favorite show - monty python

#

now, to make it complete someone needs to create a new language called monty

jagged prawn
#

iconic lang or show, or both?

#

or first one is the gemoroid cream and the second one is the goat

drifting zenith
#

anyone worked with c before?

#

its a pain

jagged prawn
#

that’s not pain, real pain is trying to pee after the hottest chili sauce

jagged prawn
vapid wadi
#

Is there anyone here who uses next.js?

honest thorn
#

Hi everyone

vapid wadi
drifting zenith
drifting zenith
jagged prawn
#

100 percent sure the problem is between the keyboard and the chair, which means you mess up

#

share you code here, someone will try to debug and pinpoint what's wrong

#

thanks for using puckipsi hotsuport, don't forget to rate us, give us a positive rating of 5 and leave a decent amount of tip

jagged prawn
#

🔥

austere gate
pure copper
pure copper
drifting zenith
pure copper
#

great. then thats not your issue

drifting zenith
pure copper
#

I can look through the code in about an hour.

#

still at work

#

but post it and I may be intrigued

drifting zenith
#

alright

#

thanks for helping

pure copper
#

I can only help if you post the code

velvet lichen
#

hi

drifting zenith
#

its burried super deep into my files

pure copper
#

You must have written it using AI, or you would know where to look instantly

drifting zenith
pure copper
#

My brain can only process code with variables that are a maximum of 6 characters long, in the set {a,b,i,j,k,0-9}

#

🤖

drifting zenith
#

this fine? SadHamster

pure copper
#

a,b must be used to start the name if it conatins a real number, and i,j,k of its an integer

#

Actual text in the post would help copy it and use a debugger

#

if necessary

drifting zenith
#

i ran the code on an online compiler it worked

pure copper
#

rather than a snapshot

drifting zenith
#

on my local compiler

#

a seg fault

pure copper
#

so what is the issue?

drifting zenith
#

i dont know

#

let me post the code

pure copper
#

the seg fault Ig

drifting zenith
drifting zenith
pure copper
#

got a rough idea when it crashes, what routine?

drifting zenith
#

uhh

#

i think its in play()

#

not sure

pure copper
#

where is delete()

drifting zenith
#

the deletes are in

pure copper
#

does it do anything before it crashes? print anything on the screen?

drifting zenith
#

~hangman

pure copper
#

whats the last thing it does

drifting zenith
#

the word was: hangman

pure copper
#

you dont need new on bool and int

#

why use a pointer on them? not looking too hard at the moment

drifting zenith
#

is that the cause?

pure copper
#

could be a big issue

drifting zenith
#

so whats happening is

#

when i lose

#

a seg fault happens

pure copper
#

int tries[6];

drifting zenith
#

other wise

#

its fine

drifting zenith
pure copper
#

bool running;

#

running = TRUE;

drifting zenith
pure copper
#

yes.

drifting zenith
pure copper
#

Get rid of all the pointers. Just use the variable name

drifting zenith
#

alright

pure copper
#

ok, let me look, that looks like its just running over the bounds of the loop.

drifting zenith
#

sorry?

#

english

pure copper
#

are you remembering arrays start at index 0.... upper-1

drifting zenith
# pure copper are you remembering arrays start at index 0.... upper-1

yes but i fixed the error

#include <iostream>
#include <string>
using namespace std;

class Hangman {

private:
string word;
string display;
int tries;
bool running;

public:

Hangman() {
    word = "hangman";
    display = "_______";
    tries = 6;
    running = true;
    cout << "game started" << endl;
}

void show() {
    cout << "Word: " << display << endl;
    cout << "Tries left: " << tries << endl;
}

void guess(char g) {
    bool correct = false;
    for(int i = 0; i < word.length(); i++) {
        if(word[i] == g) {
            display[i] = g;
            correct = true;
        }
    }
    if(!correct)
        tries--;
    if(tries <= 0) {
        cout << "you lost" << endl;
        running = false;
    }
}

void play() {
    char letter;
    while(running) {
        show();
        cout << "guess a letter: ";
        cin >> letter;
        guess(letter);
        if(display == word) {
            cout << "you win!!" << endl;
            running = false;
        }
    }
    cout << "the word was: " << word << endl;
}

};

int main() {
Hangman game;
game.play();
return 0;
}

pure copper
drifting zenith
pure copper
#

ok

#

great

drifting zenith
#

thanks for helping

pure copper
#

but the seg fault at end is still running off the end of the loop

pure copper
#

initialize the boolean running at the start of play()

drifting zenith
#

no seg fault

drifting zenith
pure copper
drifting zenith
# pure copper <:wolf_thusky:829303966415847445>
        char letter;
        bool running;
        while(running) {
            show();
            cout << "guess a letter: ";
            cin >> letter;
            guess(letter);
            if(display == word) {
                cout << "you win!!" << endl;
                running = false;
            }
        }
        cout << "the word was: " << word << endl;
    }```
#

perfect

#

thanks again

pure copper
#

no problem

#

better than my work

drifting zenith
#

going through that "change" phase tomsip

pure copper
#

Inspires me to start my C++ coding again soon

#

5 more days of work before my holidays

drifting zenith
pure copper
#

😥

mighty root
#

Hi

pure copper
#

Hi

mighty root
#

what you guys are talking about

pure copper
#

Holidays starting and ending

#

Also c++ n bugs

mighty root
#

okey

#

You also learn @pure copper programming?

pure copper
#

If I'm learning it, it's only because i have forgotten it.

#

I coded long ago

mighty root
#

okey

#

I'm learning webdevelopment

pure copper
#

Great

mighty root
#

why are you learning cpp

pure copper
#

Well, i knew it long ago, and i need something to code with, so that's a good choice for me.

mighty root
#

ohh okey.

#

I solved some leetcode problem with cpp years ago

pure copper
#

That's good to here. I believe they have a lot of issues that they need solved.

#

Ai around the world gets asked questions, and it posts these questions in leet, which get solved by humans, then passed back to the question asked by the AI.

pure copper
#

hard to believe, but its true!

#

🤖 PandaLoveBlush

mighty root
#

do the people of this channel practice english?

pure copper
#

We are practicing it here now as we type in English. Always happy to correct your technical English if you have issues with it.

#

@mighty root

hidden onyx
#

Can i hack all things in bol bol?but in bosa bosa hula amigo

fervent berry
#

Hello everyone. What programming language are you studying?

fervent berry
gloomy meteor
fervent berry
gloomy meteor
fervent berry
drifting zenith
#

i cant dig deep into languages, help me whyy

#

<t:1773687741:f>

pure copper
# fervent berry That's sort of the issue for me. I am pursuing a bachelor's degree in Computer S...

I did CS for my degree. Learned about 6 topics per year for 3 years. I took a holiday job when I finished my degree, because I was able to get the opportunity. In that job, I was tasked with 4GL programming, which was one of my topics, basically graphical forms based applications with integrated SQL. I managed to stretch that job out for 3 months. About 2 months later I was offered a job in a tech company developing inhouse hardware and its own 4GL language built using Modula-2. In each job I was able to use some of the knowledge from the topics I studied and convince the interviewers that I knew something about what I had studied. I was able to link their job descriptions to the topics, and that was good enough for them. But the most importabt thing was, that I actually was able to understand what I was doing based on what I had done in my coursework, and the most important thing that I was able to do was program generically. That is I did a lot of programming over 7 years prior to graduating, and built lots of things for myself, that improved my skills and understanding of how to get around issues I put infrom of me. Similar to what people do with Leetcode these days, except the problems related to what I was doing, when building my own complex applications. They were not just random problems. Get good at building your own applications, and when you start working for someone, you should be able to get into it reasonably easily and it will just happen naturally. Good luck.

pure copper
drifting zenith
#

i just feel behind on what i need to build

#

WAY BEHIND

#

I first thought i need to go deep

#

learnt the hard way i dont need to memorize libraries

#

coded 40+ projects in luau and probably code 4 projects in python because of its limitations

pure copper
#

I think you are doing what I just described in the previous post. Getting down and working with the real basics of programming, hitting the operating system with its api, and doing things from near scratch rather than relying on hi level libraries.

drifting zenith
#

now i need 50 + libraries with knowledge of them and when i try to reverse engineer im cooked

drifting zenith
#

with c

#

tried c++ aswell

#

none suited my needs

#

i learnt memory management from c, know quite well about data structures and also have knowledge of how the computer works

#

if you told me to explain how a computer works i would be able to get down to capacitors and resistors

pure copper
#

The issue is you are trying to learn libraries and apply them to a problem you don't have yet. You need to have a problem to solve, and then just look for a library that can provide a piece of the puzzle that will complete your program.

drifting zenith
pure copper
#

@forest cairn Please no promotion work in the server

drifting zenith
#

when I try to learn the functions of one library, atleast get the hang of it i forget the previous one

#

the libaries are screwing me off

pure copper
drifting zenith
#

the base of my project relies on ml libraries, ai libraries, mcp libraries and file systems

#

all for which i need libraries

pure copper
#

Draw up the design. Set the scope, and then pick the bits of the libraries you need to build the design. It will be a lot easier and less overwhelming, if you know what you are going to do before you start, and don't go off on tangents and scope creep based on what you read in the libraries. You won't end up trying to fit things you don't need, if they are not part of the initial design. Once you have the program built V1, then you can go back and put some of the other features in from libraries that you have found while working through the first version.

drifting zenith
pure copper
#

Scope is the boundary of the functionality of your application. You have a need to do something. You create a design that implements the need. It is restricted to only what you put down in the design. You don't add things once you are happy the design fulfils the needs/requirements.

drifting zenith
#

how do i tackle a huge scope

pure copper
#

Its still important to document that design first, or you will become lost while building it. You will start to try and make it more complex than it needs to be, as you type, and never finish it.

drifting zenith
pure copper
#

Work out what you want from the system List the outputs. List the things that are needed to produce those outputs (The inputs). List the processes that then map the inuts to the outputs. Define any internal data that will be remembered by the system. Draw up the data flows, and an entity -relation diagram for your data. Draw up a standard layout for your input forms and the outputs. List all of the forms that will be needed to allow the input of information, and how they will be laid out. Define any menu structures or workflows through your system. That should give you a reasonable system design.

You can then either just start programming for yourself, or go into more depth with a technical design, which will expand on the input forms and outputs and processes, and actually define how you will implement them using the libraries you will be using, and the limitations of the programming language or GUI .

#

You can even get this documentation typed up for you by asking an AI to do it (I cant believe I am saying this). But its best you use your own brain, so you know it is doing what you want it to do.

drifting zenith
pure copper
#

Ask AI for a basic structure for a functional specification, a system design, and a technical design

drifting zenith
drifting zenith
#

Whats functional specification and technical design

#

(short so you dont have to type that much)

drifting zenith
pure copper
#

Functional is closer to what an end user wants to read to ensure they are getting what they ask for, and the technical is a spec that puts in the details for the programmers

drifting zenith
#

System design is how the data gets processed

pure copper
#

color of the screen and buttns, layout of screens so they all look the same, the guts of the forms, the libraries that process things or the algorithms needed to produce the functionality of the processes, the error handling, class layouts etc.

drifting zenith
#

alright

#

well that makes a whole lot more sense than just low balling it

pure copper
#

The system design is the bigger structure of how every screen interacts with each other, and how you move around the system. It can sometimes include all of the technical spec stuff, but on a bigger system, its covering the stuff related to the computers it will work on and the architecture and database details etc.

drifting zenith
#

ITS LIKE JAVASCRIPT OF THE WHOLE WEBSITE

#

understood

#

Javascript is like system design

#

css is the Technical design

#

and the whole documentation on how the software works(its purpose) is Functional design

pure copper
#

I used to define my life in terms of computers once upon a time. I see where you are coming from.

drifting zenith
pure copper
#

Never said you were

drifting zenith
#

im defo saving this conversation

pure copper
#

Well that was fun. I best write a spec for the program I wll start in 2 weeks when you get off the holidays and I start thm\

drifting zenith
pure copper
#

🧁

drifting zenith
#

hopefully

pure copper
#

its 4am. Perhaps I will get up

drifting zenith
#

perhaps

#

😭 😭

pure copper
#

St Patricks day tomorrow. I'm irish so must go and celebrate all day in green

#

(today)

drifting zenith
pure copper
#

👯 💃 👯

drifting zenith
#

super fun

#

..

#

anyways i need to go to bed

pure copper
#

ditto

#

ciao

drifting zenith
#

im muslim so i need to wake up for suhoor

drifting zenith
pure copper
#

That would be about now here

drifting zenith
pure copper
#

yes it is

drifting zenith
#

wait let me check

#

i forgot myself

#

04:50 AM

#

ill see you probably tommorow

#

inshaallah

pure copper
#

Java?

drifting zenith
#

till then cya

pure copper
#

see ya

drifting zenith
pure copper
#

you are in Indonesia?\

drifting zenith
pure copper
#

I thought you said 450

#

thats why

drifting zenith
#

anyways cya

#

ciao

pure copper
#

you get 3 hours sleep

drifting zenith
#

after praying

#

k this time for real

#

cya

#

ciao

late meteor
#

Hi !

#

What do you think ?

wheat gale
#

@jovial verge helpme

sweet raft
#

Any TS devs in here?

vivid warren
pulsar berry
#

is anybody use C++ here?

pure copper
#

Someone ring?

drifting zenith
#

not me

shy glade
#

why its so hard to exploit instagram web architecture

late meteor
tropic bough
#

Hello World AI

austere gate
# tropic bough Hello ~~World~~ AI

We must be lucky to have the chance to chat with real people for now cz I think in the future everyone will probably have a swarm of AI agents doing almost everything for them.

tropic bough
sweet raft
austere gate
# tropic bough Yep. Feels stupid to be born at this time

I don't think so. I think it's a blessing to witness this rapid AI progress. If we hit AGI in the next decade, we could have tools to cure every disease, and we could significantly extend our lives. It might sound crazy now, but imagine getting sick and within minutes a bespoke medication is created just for you, you take it, and you're cured. Just imagine that.

jade pilot
# sweet raft

I created a game with Google AI Studio, then wanted to upload it to Google Play. I tried different things, worked hard, got tired, and learned a lot. Then I stopped😮‍💨, and I realized that nothing comes without effort.

austere gate
# sweet raft

Is that a bad thing? I get that the more we offload mentally demanding tasks to AI, the lazier our brains might get since we're not forced to solve problems ourselves. But we have to accept that we do cool things without fully understanding them.

Take your phone as an example. Do you actually know what's inside that rectangle or could you fix it if it broke? Most people would be completely lost. Driving a car is similar. You enjoy the ride, and if it stops working, do you try to fix it in the middle of nowhere, or get a safe ride home and leave it to a workshop? Most would pick the latter. Now, should everyone stop doing everything else just to learn how to fix phones and cars? Impractical, right?

Similarly, if people who've never coded get access to tools that let them create interesting stuff, why not? Sure, it won't match an experienced developer's quality, and maybe no one uses it, but it's still useful. It could spark real interest and prepare them to dive deep and learn to do things properly later?

sweet raft
austere gate
# sweet raft It’s a bad thing if you don’t understand what the AI generates. As long as you r...

Absolutely. People are getting lazier by the day. When I write code, I tell Claude or any AI exactly what I want cz I actually know what I want. Newbies just vibe code, dreaming of building the next Amazon from their basements, which isn't happening anytime soon. Maybe in the future you’ll just type: build me Amazon, make me rich, buy me island, find me wife or robo-wife lol, and other crap. But if everything comes free with zero effort, it loses all value. It's like saying free gold bars for everyone, ...free gold bars, guys.

drifting zenith
#

If you know what you need to debug with ai or create the project with ai and you learnt the concepts being used then I think its no issue

tropic bough
# austere gate I don't think so. I think it's a blessing to witness this rapid AI progress. If ...

Sure thing, that may bring a good solution for what you're describing there, but it's not only that. You know a calculator, right? It does one thing which is calculating numbers, nothing else.

AI is different. It can think. It is smarter. Because it's smarter, we can get it to solve our biggest problems in the world. But at the same time, it, by itself, may want to do what it likes it do, well cuz he's got thinking capability.

It's like a human. Humans can create medicines but at the same time they can have the intuition to kill/murder/threaten other humans as well.

AI isn't something we can control like a calculator to just make it produce what we want/need (i.e. medicine).

#
tropic bough
# austere gate Is that a bad thing? I get that the more we offload mentally demanding tasks to ...

We know what our phone does when we instruct it in a particular way. You click something and that exact thing you expected happens.

Where it comes to ai, we don't general know what code it spits out. We may get a code that has really bad security holes. Or something that seems like it functions but doesn't do what's being desired. That's the problem with vibe coding. You just get fed whatever the ai gives you.

austere gate
pure copper
#

It may be simple to generate a cure for you (probably based on some toxin you were already administered by the bots), but it will come at the massive cost of blackmailing you to get it.

tropic bough
# austere gate I'm sorry to say this, but AI can't think and it's not like a human. Current AI ...

Go to https://ground.news/startalk to stay fully informed on the latest Space and Science news. Save 40% off through our link for unlimited access to the Vantage plan this month.

T-Mobile 5G Home Internet. https://T-Mobile.com/HomeInternet

How did we go from digital computers to AI seemingly everywhere? Neil deGrasse Tyson, Chuck Nice, & Gary ...

▶ Play video
pure copper
austere gate
# pure copper Just imaging how much mental exploitation will be put on you to pay the $1000000...

We also have to acknowledge that in many parts of the world, people do not even have proper healthcare, and many families literally lose their life savings to fund specialised treatment. If we could somehow make it affordable so we do not have to keep people hostage and still provide bespoke medication, that would be great, I think. But, you know, we are human. We want to build more advanced automated machine guns, attach them to robots, and deploy them in war zones to shoot on sight.

pure copper
austere gate
tropic bough
#

Whatever, watch the video.

#

I'm out anyways. tomsip

drowsy oyster
#

Hi everyone

#

I have a project idea that an ai authentication detector

#

What do u think about it

drowsy oyster
drifting zenith
#

you cant detect deepfake that accurately

#

unless u have ALOT of training data

#

i mean mountains

#

you also would need atleast 1 million dollars worth of resources and processing to make something stable

#

theres no issue

#

see

#

no ai hiding its abilities

drowsy oyster
drowsy oyster
stark lantern
drowsy oyster
#

By creating fake images and videos

drowsy oyster
drowsy oyster
#

What u r saying

drifting zenith
drifting zenith
stark lantern
drifting zenith
stark lantern
drifting zenith
#

can ur clawbot create a new selenium channel and search the web

oak laurel
#

hey guys, where i can get jobs about webdesigner?

drifting zenith
#

probably

oak laurel
#

do u have a group?

drifting zenith
#

nope

#

sorry

oak laurel
#

ok, thanks bor

#

bro*

drifting zenith
#

no problem brother

pure copper
pure copper
#

🚽

pure copper
#

(Still gets me Puckipsi)

drifting zenith
drifting zenith
drifting zenith
#

I should say Fortunately

#

yes ..

fair willow
drifting zenith
#

we dont like them

pure copper
#

Everything a developer ever needed to know about MS. All on local disks

#

3 x 720Mb of rich wholesome programming info

drifting zenith
pure copper
#

Its what you get when you push F1 in your Visual Studio, or ask an AI

#

(not saying you need to ask an AI what this is, rather its what and AI would tell you now if you asked a question

#

)

#

Its the help for every language product MS put out back then

drifting zenith
#

its data?

pure copper
#

It's these books in digital form

drifting zenith
#

thats alot

#

..

pure copper
#

And now AI can read them to you when you ask, tell me how i would program in the olden days.

drifting zenith
#

so ur saying all those books get fed into the system prompt of the ai

pure copper
#

These books are bigger than they look. The photo doesn't give then scaled perspective

pure copper
#

🤖

heady dock
#

Anyone here uses vscode?

pure copper
#

just speaking about it in the previous posts

heady dock
heady dock
pure copper
#

It's a bigger ide also provided by ms. Was the original coding environment and comes in different levels. There is also free access to it's use*.

heady dock
#

Ok just got confused is it exepensive?

quiet obsidian
#

hi everyone

vapid schooner
#

Hi everyone, is anyone here interested in data analysis, data, or web scraping?

#

anything related to data I have some experiences in web scraping, data analysis, automate boring tasks, cleaning data, store data to a variety of databases formats, and a lot.
I have been learning Python for a year and a little more and learning English for two years, because I hate English so much I swear on my life it's the hardest subject in the my life. Now I can read very well, listen and write but when it comes to speak it's the hardest thing in my mind, so If anyone likes these skills and wants to improve his speaking skill, then I'm here

pure copper
#

pfft upwork

spring sky
pure copper
#

Nothing less than 100 lines please. Go ahead.

spring sky
#

A😫

drifting zenith
lethal spire
#

Anyone knows java?

austere gate
bold meadow
#

Anyone Ethical Hacker here? Please DM me if you are.

pure copper
# heady dock Ok just got confused is it exepensive?

It's free for individual developers. Enterprise sized organizations still need to pay license fees. Basically they let you learn to use their tools and program etc for free, and that allows ms to market that they have more support for organizations wishing to use this environment.

pure copper
brisk silo
pure copper
#

Still the negative vibes

gloomy meteor
austere gate
#

🔪 angry_monarch

austere gate
pure copper
lean roost
#

btw

jagged prawn
#

git commit -m "crime"