#💻|programming

1 messages · Page 31 of 1

compact wing
#

Hey

grizzled plaza
#

abstract class Poem {
//TODO

eternal sandal
#

async GetRandom() {
return await ChatGPT.prompt('Write a poem')
}
}

grizzled plaza
#

When should you split a component? tomsip

eternal sandal
#

depends

#

There's those who do it only when it's a separation of concerns concern

#

there's those who only do it when something is reused

#

and there's those who do it only when a component gets too big

#

I prefer not to do it, but they keep rejecting my prs

grizzled plaza
# grizzled plaza When should you split a component? <:tomsip:1180332846452314122>

Answer is: up to you but... the mainly idea that you could follow is:

  1. Separation of concerns, which mean that every components should only do ""one thing""
    vs
  2. Simplicity & Code Collocation, which mean that every components could do "more things" until became complex

Its a trade-off usually

(Image to context/discuss how much components we could here there)

grizzled plaza
eternal sandal
#

They keep blabbering about "code should be legible", "code should be SOLID" (whatever that means), and so on. I think they're crazy

#

In all seriousness though, I support and believe in the SOLID principles and good code legibility, for the record

shy glade
# grizzled plaza When should you split a component? <:tomsip:1180332846452314122>

I prefer starting off with components that cannot be split to simpler ones, and then make compound components out of them, and then make compound components out of the compound components, and then make compound components out of the compound compound components, and so on until I no longer have to make any more compound ones.
I know I'm extremely overcomplicating things. But hey! I'm a complicated person. So, why not.

shy glade
grizzled plaza
#

Thank you folks! I appreciate it

eternal sandal
#

Nah, I love questions like this, and my afternoon was rather dull. Thank you

pallid void
#

Hello community, is chatgpt down?

crystal lily
#

Hi.
Yes, at least 30 minutes.

pallid void
#

ok
How I'm supposed to think without it?

crystal lily
#

ChatGPT is a useful tool, nothing more.
You can solve any task by yourself

pallid void
#

I don't think I can explain it properly, so let's leave it for now😅

crystal lily
#

What's your stack? If I may ask.

tired fern
#

Runtime error: exit code is -1
=====
Used: 15000 ms, 0 KB```
#

code worked properly in the first 5 test cases and gave this in the 6th

#

i mean i know what time limit is but in the 6th test case the input numbers where less than input numbers in test case 5 so why would it crash in the 6th not the 5th

pure copper
pure copper
#

With a mouth full of toothpaste on that day each year, it says. Mbmmmbbllblmbbmb. Mbbbllbmm ptouiiii

#

And we all get down on our knees and say all praise to the great one

pure copper
#

Well back to work today, and some bum is logged in on my machine in the office. The ms office program to list staff members has been revoked from computers, so now we can't even see who we work with. But even when we could, no one has telephone numbers or emails listed in it anymore do it was useless to contact people, but at least we knew there was staff.

#

17 more hours and then another 20 days leave

#

So interesting news for usa people wanting government work. Don't forget to sign up for the draft 18-25 or they will stop you from getting a government job

pure copper
#

So apparently there is a strange guy sitting in my desk, as a water pipe in our 12 story HO building burst during a weekend past, and the building is destroyed. Luckily i was on holiday. Not lucky, everyone is moved out to alternative locations, including my secret alternative desk in the bush. Looks like it could be months before they get it restored.

pure copper
#

So I've found out the pipe burst in the ninth floor and put 20cm of water on the 9,8,7,6 floors and run through the rest of the lower floors collapsing ceilings etc. my desk in that building is on level 10. But as the elevators and everything is destroyed, it will be months before i see that place again.

versed marlin
#

thanks guys sparklesrainbow

versed marlin
grizzled plaza
# tired fern i mean i know what time limit is but in the 6th test case the input numbers wher...
  1. It looks like you’re programming in C and working with arrays with index.
    More context would be great, but here are two important tips to avoid potential issues:

Option 1: Avoid directly using an integer to set up dynamic index. (An integer 𝑋 could range from 3 ≤ 𝑛 ≤ 200000 (3≤n≤200000), which might be too large and cause memory issues).

Option 2: Ensure your dynamic index stays within the bounds of your array size.

shy glade
mental ocean
#

[GOLANG] even though i've injected routes method to app struct, why does it gives me undefined, could someone help me

grizzled plaza
# grizzled plaza `go run .`

go run ./cmd/web also works

Extra:
"go run" takes file or files as input. It compiles only those file or files before running. So you need to add route.go file (like as you do at screenshot) as input otherwise the method you declared in it, will be undefined.

#

How my element should be looks like to be affect for this selector? tomsip

mental ocean
grizzled plaza
grizzled plaza
eternal sandal
#

Is that angular?

inland marlin
#

The second one is a custom element is not the same

stable thorn
#

@mighty robin @pure copper thank you guys for the usefull information

#

so i think i need to start with java then later on go to c++

radiant wing
#

Yoo i want to test my self in c++ is there any broject that i can do please let me know what is your recommendations 🙂

stable thorn
#

jk i know its easy

radiant wing
radiant wing
radiant wing
stable thorn
#

thats great

mellow musk
#

I have a question for those who learned programming with the help of ChatGPT and similar tools. I learned programming mostly through books, personal projects, and reading Stack Overflow when I was unsure, over a decade ago. In my free time, I'm writing an app without much prior app experience. I have already written over 15,000 lines of code and have only had to consult the official Android documentation or Stack Overflow a few times. Much of the code is generated by AI and then revised by me. I am curious if new developers experience the same accelerated development or if they struggle with learning the basics or forget to think for themselves, as AI can easily provide answers.

austere gate
pure copper
pure copper
#

Took about 2.5 weeks, so should be a breeze for you.

pure copper
radiant wing
mellow musk
shy glade
#

Hlo I am starting java anyone recently started suggest any YouTube channel

radiant wing
shy glade
radiant wing
shy glade
radiant wing
radiant wing
solid kernel
#

hi guys, anyone use flutter in here?

pure copper
pure copper
shy glade
#

If i am working as a QA, does it count as programming?

cobalt olive
#

do you code? yes? then it does

pure copper
# shy glade If i am working as a QA, does it count as programming?

If you mean "tester" then either way, you just need to spin it when you market yourself for the next job. End user testing does not give you much credit for programming itself, but if you do unit testing you can say you are an advanced programmer that can spot issues with code and get them rectified before implementation to production. That is your spin.

inner dragon
#

hi

#

any node js developer here?

long portal
radiant wing
radiant wing
tired fern
tired fern
tired fern
#

couldnt send as text since its considered as spam

#

oh wait

#

ohhh my bad

#

just noticed where the bug is

#

when input is 10 1 its an endless loop there lmao

#

THREE DAYS ALREADYwhyy

cyan finch
tired fern
#

that In one operation, you can subtract any power of k from n

solid kernel
shy glade
#

Hey guys, How to use google calendar offline in Firefox???

pure copper
#

Well, if you are interested in real computing, then I was reading about the good old days again. This article provides a number of ways in which ROM was implemented using iron core weaves. In particular I was drawn to this after a video I found on the Apollo Guidance system computer. Basically unlike a core memory RAM, the rom has the program woven through the iron cores or alternatively through the sensing wires, that produce the word output for a given address.

Enjoy

http://madrona.ca/e/corerope/index.html

#

Oh and someone commenting on the video which was about the assemby language program used, was grumbling about why they didn't use C or python to write the program. Of course when you have to have weave a ROM of 12K x 16bit words, you want to be as efficient as possible and as precise as possible with what the program does. One does not want a python a=1+1 being compiled down to 50K of program.

In those days a 2M core memory was about 1 cubic meter in size and being a loom of copper wires probably weighed in excess of 1 tonne.

pure copper
#

Always smile while programming

radiant wing
#

Hh cool

surreal comet
pure copper
#

one never sees the 'missing' semi colon

#

All happy

radiant wing
topaz grove
surreal comet
surreal comet
radiant wing
tired fern
#

but they are both on problem solving and competitive programming anyways

solid kernel
#

i can build something using code with my logic, but i need long time for solve 1 question for example in leetcode/codeforces

tired fern
#

codeforces problem set might be tough, you should start with some easier problems first to get the hang of it

#

i started with a newbie's sheet which is level 0 and im in phase 1 now

solid kernel
solid kernel
tired fern
tired fern
solid kernel
#

you are low level programmer ?

tired fern
tired fern
tired fern
solid kernel
misty echo
#

Hello..
Can anyone give me some advices , i wanna be a programmer but i don't know where to start or how to complete
Can you give me a track?

surreal comet
lusty plaza
#

Hello eveyone. I'm a sofware engineer with 9 years of experiences.

#

Thanks.

#

good.

#

now, I'm looking for full time job.

#

sorry, I'm not interest. I wanna remote IT job.

#

How can I do it?

#

can you explain about it and hourly rate?

solid kernel
#

do you have opportunity for remote intern job ?

#

what position your open ?

misty echo
#

I am fine
Feel Cold
But fine

snow bear
gentle pasture
#

Does anyone know about JavaScript here?

dense mortar
eternal sandal
grand forge
#

I'd like to do pair programming (or mob?) building an app using Laravel, but I also wanna improve my english communication, if anyone interested hmu.

Also I can't do it in the near time, coz I wanna spend my last year holiday 🙂 so we can talk about the time later

pure copper
balmy stirrup
#

I wanna get into the Microsoft or Google you know that's my goal with that

#

My english it's not good enough yet

#

Wassup everybody I'm from brazil and you guys?

sterile saddle
#

Hi guys I am a full stack developer from India I wanna try to learn English language anyone who are interested practice with me please let me know.

balmy stirrup
#

Let's go bro

wanton sail
#

I'm Brazil too. And I need to practice more my English. We can schedule a call.

weary pawn
#

anybody here has an experience of transferring with L-1B visa as a software dev?

ancient fiber
stable thorn
woven snow
#

Waddup geeks

solid kernel
raven zephyr
#

Hi

#

I’m looking for a remote job in IT

#

Next to my studies

somber nebula
#

Is it worth learning Rust than C++ as a 1st language?

granite summit
#

@somber nebula It depends (most common response to every question).
What's your interests and attitude?
My advice is to check out open job positions and find out if you would like to work for companies which use one or another.
Or start with one and try to understand if "fit good for you"

somber nebula
#

Thank you for the advice! I framed my question broadly to get a variety of answers, but my focus right now is on learning low-level concepts. Later, I’d like to create games (mainly for retro platforms) and explore some AI projects.

short stone
#

Hi! I'm a web developer and I'm here to learn more about programming

verbal marlin
shy glade
pure copper
#

Happy new year all

#

🎉🎉🥳

eternal sandal
#

So early in my timezone, it's crazy

shy glade
#

Thanks bro 🙏🏻

fathom wedge
shy glade
#

Alhamdolilah my laptop was charging 😭😭😭😭

#

What was that

fathom wedge
#

you didnt get the joke aren't you

shy glade
#

Remove xcode ?

#

Lmao

fathom wedge
shy glade
#

U little evil

fathom wedge
#

lol

shy glade
fathom wedge
austere gate
#

Happy New Year, everyone. I hope this year brings you all the success you deserve. If you’re starting out with coding or anything new, don’t give up. It’ll be tough, and you’ll face challenges, but don’t ever give up on your dreams. Work hard, and I wish you all the best.

tired fern
#

good morning folks

#

any cybersecurity expert here?

#

or intermediate

#

wanna know smth that i couldnt find by researchingHellos

pure copper
charred crane
#

Happy New Year to everyone; I hope that you all achieve your new goals, wish you all luck 🎱

marble topaz
#

Hello

#

Who code in C++?

pure copper
final tapir
#

Hlo

#

@pure copper hey can u help me

#

I'm trying to add in my website some features and u can see that some of apps logo are not visible, I tried a lot to visible those logo in my website but Its not fixed dd...

inland marlin
#

Did you check the network tab to see if the logos are loaded?

final tapir
#

But not working

#

Here is my code

pure copper
#

Are the logos in the correct format? Some formats do not always display in the chosen methods

#

Resolution may be too high or low

mighty robin
#

if every single of the file paths in your html code matches the real location of the images

#

if you've got an .html file, then check if every src in <img src="..."/> points to a completely correct directory where the image is

#

otherwise the images ain't gonna load

#

cuz browsers can't find them

mighty robin
gleaming salmon
#

Is there any flutter dev here?

tired fern
#

i mean its not actually a problem but

#

im wondering what level is required in a low level language in the cybersecurity field

#

c or c++ maybe

#

mastery or just basics?

pure copper
# tired fern im wondering what level is required in a low level language in the cybersecurity...

There are many ways you can work in cyber security. When i was younger, a lot of security revolved around physical security and building design and keeping cables from being intercepted. Such basic things were keep the users along side the mainframes in Bunkers. Provide emf shielding so pulse could not be read by induction.

I've resolved/found issues in the user db coding that has root causes in the op system drivers, working to rip the whole system apart on one side of the world while trying to show the system folk on the other side of the world where their hole was. That required everything from sql to assembly. I found out how to acquire any Skype user's contact list although Microsoft hid their vulnerability team so well that front end call center would not believe it, nor wanted to be hacked themselves. I've found root access to general users in unix shells, main frame op systems, and many times you can just find vulnerabilities by reading the manual. Web stuff is my black hole, but still saw many of the issues in it over the last 30 years and it didn't require much more than general knowledge.

I see cyber security as being 2 types. Cyber team for a large non computer business that has enough money to employ someone with a title cyber security, who prob has done an MS (under any relevant.. we use this product) certificate course along with their bachelor's. And the second level is a person who was enthralled in electronics, computers, hardware and software from a young age ( kindergarten - i want to be a {} age) and electrocuted bugs when they were 5, and will know how to look at a chip, circuit board, and at least know what they will need to consider to start looking for vulnerabilities and how to exploit them. That will require a bit of binary, assembly, ...... Having the confidence to walk past a security checkpoint in a building and lay traps or access the network or machines etc.

pure copper
# tired fern mastery or just basics?

This is a video that provides a taste of what a good security person should be able to understand how to do to start looking for vulnerabilities.... Watch it all. It's a current issue, and Matt goes from start to end on showing how it's done touching on all the aspects I've mentioned.

https://m.youtube.com/watch?v=clESYc9BDvc&pp=ygUSVHAgbGluayByb3V0ZXIgYmFu

pure copper
#

Don't forget, it's not just people you are securing your system from. It's also the environment., weather animals pollution temperature, vibrations etc. There are many areas of computing where you can become a specialist without being a 'hacker'. And as you move through you career, you will be expressed to different branches of computing and you may move into those branches because you get the opportunity through a project to expand into that branch and it leads to another job on that branch etc. you will start somewhere.

C/c++ is fine to start with. Get a good understanding. For security, you probably start with code quality inspections, unit testing and coding. Learn your own mistakes, learn your team mistakes, learn the system disasters and build from there.
@tired fern

eternal sandal
grizzled plaza
eternal sandal
#

Agree to disagree, I simply don't think they're all that great and there's already a switch statement designed specifically for that purpose

grizzled plaza
cerulean turret
#

Hey guys, I'm working with events in Blazor. Does anybody here know something about that?

cerulean turret
#

Ok, so basically I have a function that takes the id of a selected item in a list and saves it in a variable in the service and than calls a function that filters the items on the QuickGrid table. These functions are not in the same component and the table is just being updated when i interact with the table component, but i want it to update when i change the item on the list.

grizzled plaza
# cerulean turret Ok, so basically I have a function that takes the id of a selected item in a lis...

How are u working with your " filter" field?

I guess you should have to do something like that:
<input type="search" autofocus @bind="nameFilter" @bind:event="oninput" placeholder="Blabla name..." />

And right below of your screen code, should have something like that:
@code { ...many lines of blabla... IQueryable<Country>? FilteredItems => items?.Where(x => x.Name.Contains(nameFilter, StringComparison.CurrentCultureIgnoreCase));

QuickGrid has its own way of work 😂

cerulean turret
#

It's just like that. I don't have exactly a filter field, the list has a couple of clickable items and these items store their id's. When I click in one of them, the function is Triggered and literally does a "SelectedItemId = item.id" and then calls the filter function that does a "filteredItems = _context.Items.blablabla"

#

and the quickgrid is using this filteredItems variable as data origin

grizzled plaza
cerulean turret
#

exactly

grizzled plaza
cerulean turret
#

I'll read about it and try some new things, thanks man

grizzled plaza
grizzled plaza
#

Q:
Pretty similar approach but different result. Why? tomsip

A:
If God permits, tomorrow I`lll to bring up for us

pure copper
foggy crow
#

Explain to me the difference between webhook and API like I'm 5 years old

austere gate
# foggy crow Explain to me the difference between webhook and API like I'm 5 years old

An API is like when you ask a friend for information. For example, you ask, "What's the weather?" and they go check and tell you. You always have to ask first to get an answer.

A webhook, on the other hand, is like a friend who just calls you up when something happens. If it starts raining, they’ll call you and say, "Hey, it’s raining now!" You don’t need to ask—they’ll let you know when there’s something new.

So, APIs are for when you need to go get information, and webhooks send you updates automatically.

foggy crow
marble topaz
#

I want to be an expert in C++

#

and u?

shy glade
#

Hey, Is anyone use linux

eternal sandal
#

I do, but I'm no master. It's pretty much the same as windows only easier to install stuff

#

I use ubuntu

grizzled plaza
subtle hare
final tapir
shy glade
visual geyser
#

As a Full-Stack Python/PHP Developer, If you need my help, feel free to ask me

shy glade
shy glade
shy glade
tired fern
# pure copper There are many ways you can work in cyber security. When i was younger, a lot o...

Wow, your experience sounds intense and super impressive. like youve been deep into every layer of cybersecurityshy_cat I really appreciate the perspective you shared; its clear that the field requires a mix of skills and curiosity to go beyond just programming.

I get that c++ is only one piece of the puzzle, but since im trying to figure out where to focus as a beginner aiming for cybersecurity, how would you rate the importance of mastering c++ specifically? i mean i heard that network, os, programming, etc are required in the path im aiming for (offensive security) so since i dont currently have enough time to actually spend hours learning these i decided to focus on one at once, im working on my problem solving skills and learning new topics in c++ but i believe that other langs are also required so i was wondering at what point should i dive into another lang :D

tired fern
shy glade
#

anyone learning c++?

random pecan
random pecan
#

i almost forgot that was a thing

shy glade
random pecan
#

yeah, it just takes some getting used to

shy glade
random pecan
shy glade
#

oh sorry i dercognised the irish flagcreepy

random pecan
#

yeah it's easy to get them confused

pure copper
#

Where is Irish flag Mr Ross sensei?

random pecan
pure copper
#

🇮🇹 Not like italy at all...

random pecan
#

only one color difference

pure copper
obtuse summit
#

Anyone Into robotics?

#

( dm me)

pure copper
#

🚀 wolf_thusky BirbNotes

plain torrent
#

Hi all

#

Any advice about the best tool for financial analysis by AI?

wraith hound
#

HI

pure copper
#

Hi

charred crane
#

Hi

hasty yoke
#

Hi there, I'm ismael from Morocco exactly in Casablanca, I'm a web developer, I want to make friends (who know to code) and improve my English thank you.

mellow siren
#

Hii

hasty ravine
topaz bane
#

hy there!!

#

can you help me there !! to contributor my project ? i m building DL actually

subtle hare
topaz bane
subtle hare
topaz bane
#

really ?

lucid tulip
#

what AI

subtle hare
topaz bane
topaz bane
tender spear
#

hi

tender spear
#

hi, there

pure copper
#

hi

deft basalt
#

peo hi

lapis sparrow
#

hi

topaz bane
#

hy

plain torrent
#

Hi

grizzled plaza
#

private hostElementRef = inject<ElementRef<HTMLAnchorElement>>(ElementRef);

"No necesita la garantía. La garantía soy yo!" kekk

pure copper
#

Just watched 3 hours of build a 6502 computer and get it to write hello world. Finally after all these decades, the parts are here, the price is right, and there is something more than the 1 page processor data sheet, to get me started, .... And ... I have a computer that can program the eeprom and analysis the pins to see how it works. Now to get the parts and build it.

#

I will post the video links when i wake up

#

For those interested in how it works from the ground up.

grizzled plaza
#

How do you explain colon (:) without say colon?

shy glade
#

Hey, which better pi zero 2w or some random laptop with core2duo (T7200) when it comes to making simple home server?

#

tbh both are super not reliable when it comes to this matter, but just wondering

shy glade
#

ofc

#

i was planning to do that, but first i want to install de that will work without ultra sonic speed

grizzled plaza
#

I have no idea lol

lyric marsh
#

Hii

brisk wyvern
tardy magnet
austere gate
#

Have you guys ever had to sign an NDA just to get to the technical test? They won't even send the questions until you've signed it!

lyric marsh
#

Yes we have to sign

austere gate
woeful canopy
#

who wants to solve minesweeper together

pure copper
eternal sandal
#

Create an algorithm that will always beat the game

shy glade
#

pi zero was slow as hell so i thought about that laptop, but it's also slow as hell SadHamster whyy

uneven raven
restive lance
#

Hy

#

Who here full stack web Dev ?

shy glade
restive lance
#

Good luck!

pure copper
austere gate
grizzled plaza
#

Q:
WHY I should remake whole array instead of only update the value on this case?
Tips: JS Memory

A:
In soon

grizzled plaza
# grizzled plaza Q: WHY I should remake whole array instead of only update the value on this case...

Answer:

  • Short Version
    In Angular, pipes work with memory of array (stack). They only detect when the whole array is updated, not when individual items (heap) inside the array are changed. You can try a trick for that, but it's NOT recommended.

  • Long Version
    https://academind.com/tutorials/reference-vs-primitive-values

Learn why most people copy objects and arrays in JavaScript incorrectly. And why you won't make that mistake!

grizzled plaza
#

Instance (new instance to each component)

  constructor() {
    this.tasksService = new TasksService();
  }

vs

Dependency Inject (unique instance of service)

  constructor(private tasksService: TasksService) {}
pure copper
#

Anybody here still use Oracle. I have version Sql version 0.3
Is that any good? BirbNotes creepy

#

My 60 meg tapes

#

For backing up the supercomputer

#

👯

#

All the latest languages. Please choose wisely.

pure copper
#

One of my earlier versions of Star Trek circa 1989, in C.

fathom osprey
#

Hey guys. I need some favor.
Is there anybody who has some experience with rebranding chromium?
I want to build chromium on my Ubuntu OS with my own icon and product name.
I tried so many method and yet I get so many bugs and stress.
The documentation of chromium repository is not good enough and I am so tired with bunch of lies of GPT.
If you have some experience, please help me. Will be very appreciated...

pure copper
#

The following is a community service announcement: don't forget to lock your keyboards when you walk off to get a coffee...

jagged prawn
# pure copper My 60 meg tapes

only with this I’ve recently understood how easy it is now to find official documentation on a site or with AI assistance, instead of reading through tons of words to find what you needwhyy

#

is it even used nowadays, or is it a stupid question? Some companies still prefer on-premises over the cloud

#

my brain will probably stop braining after trying to install and configure oracle through this manual

pure copper
#

Getting a job in the old days was at easy as.....

pure copper
#

Let me think, was it cpio?

jagged prawn
pure copper
#

Listening

jagged prawn
#

I've never heard before of it

pure copper
jagged prawn
#

indeed

pure copper
#

How much does computer time cost?

#

I remember plotters, changing the pen to get a different color. Load that sheet of paper

north skiff
#

Hello, does anyone of you write in React js maybe?

shy glade
north skiff
#

I wonder which patterns do you use while you coding, compounds components, render props, maybe others could you share your thoughts ?

shy glade
north skiff
#

why you don't like render props, why is that ?

#

also what other patterns do you use ?

shy glade
#

Radix ui demonstrates a very good example of how to make functional, customizable, extensible, maintainable, and clean UI components in my opinion.
I build my components in a similar fashion, and I've never found any deficiency in this pattern no matter how complex the app is.

north skiff
#

I will look at it, didn't use that before

shy glade
# north skiff why you don't like render props, why is that ?

It's not clean. React is primarily built on the concept of UI components. Introducing functions that render elements or components within other components is difficult to understand and is not clean at all in my opinion.
People seem to forget that React is just a library. You can pretty much do anything with the components children. You can create a component specifically built to wrap around buttons or links to hide or disable them for users who don't have permission to interact with them, which is achieved by using React cloneElement and manipulating the children however you like.
This is the power of React. It's not a rigid framework with strict rules. It's built for productivity, flexibility, and rapid development, yet many people use it with a foreign philosophy.

shy glade
north skiff
#

yes but the things you are saying are only relevant to the direct children, but when for example children are wrapped in "div" you have a problem

#

also render props is useful where for example you have to have independent components with just logic, and which just run function passed as child with particual props etc

#

and then when you want to use that compoents you can style, manipulate it whatever you like, because it receive previously passed props, by that you could separate logic

grizzled plaza
north skiff
#

something like for example like button const LikeButton = ({children})=> {...some logic here and then ... return <>{children({props})}</>}

final tapir
#

Hlo

north skiff
#

<LikeButton>{({onClick})=>{ rerturn <div onClick={onClick}> }}</LikeButton>

shy glade
# north skiff yes but the things you are saying are only relevant to the direct children, but ...

It's a problem if you're not in control, such as dealing with components from other libraries that abstract their code and logic.
However, you can still do that, you can traverse through the children and manipulate them however you like. I'm sure there would be either libraries or React utilities that facilitate such process. I personally haven't encountered a situation where I couldn't reach the component I'm looking for down in the children tree.

When I'm in control of the component, I usually creat what I call "arms" for certain components. These are components that should wrap targeted elements or components and via the context API, I gain access to them in the parent component - I call it the head, because it's the topmost component and is responsible for almost all the functionality -. For instance, if I would to make a dropdown component, I'd probably build it in the following shape:

  1. <Dropdown.Root/>: The head.
  2. <Dropdown.Item/>: An arm responsible for the items in the dropdown.
  3. <Dropdown.Trigger/>: An arm responsible for the component that will trigger the dropdown to appear.

And so on.

north skiff
#

ok but for example what do you do when you have something like <Wrapper someProp={}><div><SomeInnerComponent/><SomeInnerComponent/></div></Wrapper> amd you like operate on children of Wrapper

#

and you want pass someProp to all of SomeInnerComponent

#

you could traverse the tree but its pointless from my standpoint, the only way is to use context

shy glade
# north skiff and then when you want to use that compoents you can style, manipulate it whatev...

That's literally something you can do with compound components. You can pass down data and functionality alone without ever touching the UI.
Components in React are not just UI elements, they can perform a variaty of tasks. Consider the following component for example:

export function HideForNonAdmin({children}: {children: ReactNode}) {
  const session = useSession();
  if(session.role !== CONSTANTS.ADMIN) {
    return null;
  }

  return children;
}
#

Using it would be like:

<HideForNonAdmin>
  <DeletePostsButton />
</HideForNonAdmin>

This component doesn't come near the styling and the UI. It's purely functional component.

There are tons of ideas that you can perform using this pattern. You can build components that are specifically built to validate form inputs and pass down the result or even trigger some kind of toast or error message.

north skiff
#

yeah but what if I dont just show/hide the compoent, but for example select or not the element of like button?

shy glade
shy glade
north skiff
#

yes, I went through couple components from radix and I can say that it has very interesting code base

shy glade
#

The only thing that I'm still struggling with in this pattern is the folder structure. Almost all of the projects I've made where I used this pattern had drastically different folder structures.
Perhaps it's due to the flexibility of that pattern, I dont know.

north skiff
#

could you show any sample of that structure ?

shy glade
shy glade
# north skiff could you show any sample of that structure ?

Not in the moment, unfortunately. I'm not so confident in my implementation so I'd rather not share any existing projects. Also, my Github is currently a mess. I'm planning to organize it later. 😂
However, I can give you an example of what it would look like. Assuming you're using Next.js, there would be server components and client components. The client components can vary. Some components are UI-only, others are functionality only. Some components would be complex and require different arms, some other components would be performing side-effects, such as calling APIs etc... For the ones that call certain APIs, I prefer to store them in a directory near the routes that use them in a directory called _components. Notice that this is a different directory than the component folder in the src directory.
I usually create many _components directories in my app directory. If multiple routes use one component, I store it the _component directory that is at the top of the app directory. If other components are route-specific, i.e., required in one route or its descents, I store it in the nearest _component directory to them.
This is just one way of doing it. Obviously there is no one right way, but that's what I usually do.

eternal sandal
#

Or, you could always apply the !DRY

shy glade
#

In my opinion, some people overdo the DRY principle. Some parts require you to actually repeat yourself, because they are not linked, although they might seem identical initially.

woeful canopy
woeful canopy
#

But I think a pretty good approximation should be possible.

#

I'd be most interested in a solver that gives me the probability of a mine under each tile.

#

And then one can use that solver to make an implementation of Minesweeper that never lets you lose a guess IF that guess is the most optimal guess in the position

#

which I think is different from other "no-guess" minesweepers

shy glade
#

That reminds me, I must learn how to play Minesweeper because I always wanted to.

woeful canopy
#

If I proved P=NP I would make a REST API that computes inverses of popular hash functions for $1 a piece

#

and $10 for the full preimage below a certain amount of chars B)

pure copper
shy glade
#

/userchart

shy glade
#

can i spam message here ?

pure copper
#

No. Not nice

plain torrent
#

Always Respect ✌️☮️®️

pure copper
shy glade
#

can someone help me programming?

shy glade
#

and i think at peak of my router it will be usb2 if it's not even 1

jagged prawn
# shy glade can someone help me programming?

programming is actually easy: just define the variables with the correct types, control the logic with if conditions, and iterate with loops. That’s all programming is. Next step - create a program for a self-driving rocket to take humanity to Mars.PandaLoveBlush

shy glade
jagged prawn
shy glade
cedar narwhal
foggy crow
#

With jupyter

topaz bane
#

Who here is building their own Ai?

#

Do you need help?

cobalt olive
#

Yeah i need some rtx 40 GPUs shyhide

south ivy
#

Hi i need help what this sign "%" means in pascal and c++

cobalt olive
#

Remainder

#

Google

spice abyss
#

Hello! Im a new man in Discord and i didnt know how i have to do... Chats, voicechats, groups and other is very hard to understand.
Early i have expirience only board and group chat.
So, i`m old man 38 y.o. want to become python developer, and i learn to english.

eternal sandal
eternal sandal
#

and hello good sir

topaz bane
#

Hy

plain torrent
#

Hey

topaz bane
plain torrent
#

I'm fine

topaz bane
#

He's like Who asks for friendship !

plain torrent
#

@topaz bane I see that there is a common friend between us mention him please because he asked for that and I can't mention him here

topaz bane
#

For what?

plain torrent
#

For learning more about programming and available projects

plain torrent
#

His name is GTV or something

#

Just mention him here

topaz bane
#

Wanna what?

plain torrent
#

Want you to be good

#

@formal warren

pure copper
topaz bane
plain torrent
#

@topaz bane forget it..

pure copper
pure copper
pure copper
shell bluff
eternal sandal
shell bluff
shell bluff
charred crane
#

Why everyone thing that we will be replaced by AI? I’m so not believe on that, maybe the future is not with SDE who knows who to use AI. And btw when did you find a bsiness can give 100% the needed or right requirements?

pure copper
#

Stop telling ai what you need it to do, and it will stay stupid, and we can all keep our jobs into the future.

plain torrent
#

Actually I know some people who prefers to marry a robot than a human.. Hope you still call it ( it ) not him 😂

eternal sandal
#

It's not ready yet though, I don't think

eternal sandal
#

Do you guys think AI will understand what I'm going for?

plain torrent
#

I love AI .. it understands everything 😂

stiff rain
#

I wanna learn python. how would I start

charred crane
charred crane
charred crane
austere gate
charred crane
charred crane
austere gate
austere gate
#

Also, human reasoning is flawed in many cases. For example, many people refuse to accept the possibility of a superior intelligence and will fight against it relentlessly, even when the fight is unwinnable. I’m not sure whether to call this a feature or a bug.

charred crane
#

My question is AI brilliant? Or because it has access to all the needed knowledge and can make “better decisions, “as businesses they will always compare the cost and the benefits as no sick leave overtime, availability 24/7, and training cost almost less than training one human and less time for sure, so I agree

grizzled plaza
#

Is anyone willing to help me warm up for an interview? creepy

grizzled plaza
# grizzled plaza Is anyone willing to help me warm up for an interview? <:creepy:8172955882735534...

pretty simple questions but I would like to talk, dialog about that with humans

Technical Questions:
Angular Basics: Can you explain the difference between ngOnInit and a constructor in an Angular component? When would you use each?

Performance Optimization: Imagine a page in your Angular app is loading very slowly. What steps would you take to identify and fix the performance bottleneck?

RxJS and Observables: How would you handle multiple HTTP requests in Angular that depend on each other? Can you provide an example using RxJS?

State Management: Have you worked with NgRx or another state management library in Angular? If so, can you explain the core concepts and provide an example of how you'd use it in a project?

Angular CLI: What are some advanced features of the Angular CLI that you use to improve your development workflow?

Behavioral Questions:
Team Collaboration: Tell me about a time you disagreed with a teammate on a technical decision. How did you handle it?

Mentorship: As a senior developer, how do you ensure junior developers on your team are growing and contributing effectively?

Problem-Solving: Share an example of a particularly challenging bug you resolved in an Angular project. How did you approach the problem?

Situational Questions:
Code Review: A team member submits a PR with suboptimal code. How would you approach the review to ensure quality without discouraging the developer?

Feature Development: You’re asked to implement a new feature in an Angular app that requires real-time updates from a WebSocket. How would you design and implement this?

shell bluff
pure copper
#

The experience?

austere gate
jagged prawn
#

Does anyone here have experience migrating from auth0 to an open-source/free alternative with similar functions, such as custom actions, login flow management for SPAs, with minimal effort and code replacement, and preferably installable via a helm chart?

#

if so, suggest some good alternatives from you experience

eternal sandal
#

I'll see myself out

charred crane
#

And maybe the ability to control their behaviour and emotions to avoid any stress and work great under pressure

short whale
#

Hello guys anyone use
IntelliJ IDEA for java i new in java currently learning i have wrote a sample code but it's not running? I don't have any error in my code

fickle hare
short whale
shell bluff
shell bluff
pure copper
#

I have no idea what we are talking about

fickle hare
#

Haha, I think one of you two is an AI

eternal sandal
#

Among us: programming Text Channel Edition

shell bluff
pure copper
shell bluff
#

So it is

pure copper
#

Perhaps it's my poor understanding of English

shell bluff
pure copper
#

So let me summarize my position:
Code is just loops, conditions assignments and some i/o and cpu function calls.
Why copy and paste and reconfigure when you can just start with a fresh loop and put in the bounds you need, rather than deleting someone else's bounds and reinserting yours. Extra clock cycles for that.

pure copper
shell bluff
austere gate
austere gate
#

How can we determine if person A possesses greater cognitive ability than person B?

grizzled plaza
mortal eagle
#

Also: I'm building a UI library for React, it's current weight is 10 kb. Is it fine if I want it to be as minimal as possible?

#

(I doubt anyone can answer this but i'm already talking here anyway)

grizzled plaza
charred crane
somber current
#

I have changed my DNS using Google DNS 8.8.8.8 and alternative 8.8.4.4

eternal sandal
#

Good idea is always to look for the syscall and error code, I solve most of the problems I encounter that way

somber current
#

my friend experienced the same problem when using the mobile network, but when using the home wifi network no problem occurred, but I don't have home wifi 😭

jagged prawn
# grizzled plaza Please, give me more context and then someone could help u as well. as is / to b...

I get your point about sso, but that’s not my case. Here’s the story: my current application’s sign-in/up process, token claims, role assignment, internal user management and more are all handled by auth0. Another company wants to use my product for their internal use, not mine. They don’t want to use any external product and prefer a minimal and fast setup. Additionally, main requirement is that all applications will run somewhere in their cluster.

#

So yup, I need an alternative or a smart workaround, because creating own auth service is like reinventing the wheel.

#

Yees, that will surely be some very happy dayswhyy

shy glade
#

hi everyone

grizzled plaza
# jagged prawn I get your point about sso, but that’s not my case. Here’s the story: my current...

Okay... my bet in this scenario would be: keycloak (https://www.keycloak.org/), is open-source, pool client, domain, multi-tenant, on-premise and UI
*If they are on azure OR aws, you could keep on Auth0: https://auth0.com/docs/deploy-monitor/deploy-private-cloud

But I would like to say, switch that could be cost more of $35 per month :/ may they guys could help you on this mission but I never had contact with them: https://phasetwo.io/support/migrate-to-keycloak/

I hope you can and let me know if there is any news

Auth0 Docs

Describes Auth0 private cloud deployment options.

Phase Two provides Enterprise Support for system migrations to Phase Two + Keycloak.

ornate fiber
#

Hey, I'm sorry out of context but in case anyone knows how to fix "USB disconnected and USB connector connected" notifications, please help me:( it's so annoying. Oh, ya I've tried to solve this problem, it worked in the first but then I used the the same changer last night and then the notif popping again and tried to solve the same way but it didn't work and I dunno how to solve this. 😦

Before that my usb cable didn't work but then it worked again and after that I got that notification.

pure copper
#

Look ma. No wires

#

I remember the days, huddled around the pc, eating roasted chestnuts, drinking egg nog and doing the family budget. So nostalgic. 🎶

pure copper
# ornate fiber Hey, I'm sorry out of context but in case anyone knows how to fix "USB disconnec...

Click on the notification settings and at least turn off the audio so you didn't hear it pinging each time. You may be able to turn off the notification all together also. But the underlying problem could be a stuffed cable, or the socket. Try different socket and try a different cable. (Otherwise Microsoft recommends reinstalling Windows) or uninstall the usb driver and restart and it should reload. Best look this up on the Internet for full instructions.

coral hedge
golden abyss
#

WordPress developer here.

#

WordPress developer here

austere gate
# stiff rain I wanna learn python. how would I start

In this video, you will be learning Python with these 5 projects, starting at the very beginner level and slowly working our way up to something more advanced. For those who are complete beginners, I'm going to explaining everything as if you've never used Python before and even show you how to install the program and set up you editor. We will ...

▶ Play video
sullen iris
#

hey guys

#

hope u'r doing well im here to ask u about my code if someone can help

jagged prawn
# grizzled plaza Okay... my bet in this scenario would be: keycloak (https://www.keycloak.org/), ...

I hope they will agree to install it on their cloud, but I feel like they might skip it. Also, one of my coworkers mentioned keycloak and how to integrate it into the app, though their approach was from the beginning, not as a replacement. You mentioned you tried to reach out but were unsuccessful -did you also have this migration experience? Just wanna know if there are any pitfalls with keycloak

jagged prawn
pure copper
#

(Don't know what code, but you can tell me then)

eternal sandal
grizzled plaza
# jagged prawn I hope they will agree to install it on their cloud, but I feel like they might ...

Yeah yes, I have similar experience of your colleague. I haven’t done migrations end-to-end, but I’ve worked a little bit on Auth0, Keycloak and most intensive on Microsoft Identity

I should to say bro... this is looks more negotiation/policy than technology. do you know why they would reject? concrete reasons I mean

imho, don't get me wrong please.. if you could, you should list and put on price. Take a benefit over wast of time

  1. Solution with no one change = $ 1 and "ready to use right now, lets talk again about that on end of year"

  2. Solution with KeyClock on-promisse (double-check if is possible) = $ 1 + X and ready asap

  3. Migration to Key-Clock = $ 1 + X + Y and no idea when

Again, just my imho, If you really need to go on last way, I would recommend you hack-time to get trust before assign terms: https://www.codementor.io/keycloak-experts unfortunately I don't know deeply how to migrate it appropriately

subtle kestrel
#

What up my fellow programmers

digital bloom
#

hello guys .anyone using google colab cuz i had problem with unzipping files

jagged prawn
coral hedge
#

Holy shit why is enviroment setup for projects so frustrating😭

cyan nest
#

Helllo

pure copper
#

Post your problems

shy glade
#

Guy's Can anyone help me in linux..

coral hedge
shy glade
#

@coral hedge can you join programming vc room.

clear canopy
#

Good morning

#

Is there someone here ?

shy glade
#

Good morning, Bro

clear canopy
#

Morning

stuck shore
pure copper
#

Give me your professor's name and contact number and I'll gladly discuss it with her on your behalf.

shy glade
jagged prawn
#

getting ready made code teaches you nothing. It’s not about the code itself it’s about the logic behind the algorithms—how and what they solve

#

instead, ask chat to explain those algorithms like you’re a kid with one brain cell

stuck shore
#

Let's be friends?

jagged prawn
#

once you understand what the thing does, you can easily explain it in code, also, I’m not a fan of java

#

but share the code here, there are java developers who would like to discuss it with you

hollow tulip
#

Moin Moin

clear canopy
#

Can you recommend some channel on YouTube about programming on python and java ?

#

In*

pure copper
#

bed time

#

I dont want to look at this code. There is no one that actually wrote it who can even speak of it in a discussion, so I dont want to be a monologuer and have to understand this......

forest smelt
#

hello

tawny pawn
#

Guys, this error appears every time I try to run the npx create-react-app command to create a project using react. Does anyone know how to fix it?

#

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: exreact@0.1.0
npm ERR! Found: react@19.0.0
npm ERR! node_modules/react
npm ERR! react@"^19.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.0.0" from @testing-library/react@13.4.0
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^13.0.0" from the root project

#

I have already tried uninstalling and installing creat-react-app and also react but it still gives the same error

ivory hollow
opal pendant
#

hey guys

buoyant spire
#

guys anyone worked with whmcs?

shy glade
shy glade
final comet
upper cloud
#

anyone know how to use stable diffusion ?

#

i need help

grizzled plaza
shell bluff
#

Good morning friends

last otter
#

Hello

#

How are you?

shell bluff
snow hazel
#

Anyone know how to download MySQL?

uncut field
#

Hey anyone is into cs or knowz coding
And
Who is familiar with
Sublime text....
Anyone???
I need help

eternal sandal
plush rapids
grizzled plaza
upper cloud
digital bloom
#

guys who is in machine learning

eternal sandal
#

Bro you're just here because you want to be lazy and get mad when people refuse to interact?

molten glade
#

I would like to learn how to code. Could someone help me? I've tried watching tutorials, but I can't code on my own. I’m going to start college in Computer Science, and the first programming class will be about Java, so I want to focus on that.I’m on vacation, so I have a lot of free time. Any tips?

grizzled plaza
# molten glade I would like to learn how to code. Could someone help me? I've tried watching tu...

I guess that firstly, you need to understand "logical thinking" its will be the foundation for everything but for few days of vacation, you could take a look at a few exercises Java exercises: https://www.w3schools.com/java/java_exercises.asp

Don't worry to getting it right, just learn and think

wet mango
#

@uncut field
Please report your problem.

coral hedge
# molten glade I would like to learn how to code. Could someone help me? I've tried watching tu...

i haven't learned java yet, but languages are tools, don't worry too much about the language and indeed like how Noone said, you should learn the mentality and how overall things work. While an unorthodox suggestion, I do know that College Board's AP Computer Science courses are based in Java, you could perhaps check out khan academy and their material for that, and complement it with other resources.

pure copper
shell oak
#

oh mee

shy glade
#

DM me.

austere gate
eternal sandal
#

People said that about js and let me tell you, it's real

inland tinsel
#

does anyone know linear algebra and python i have to hand in some assignments tomorrow i need help if u know dm me 😭 id appreciate it

shy glade
robust pelican
#

Hello People

#

Hello C, Java people 🤣

trim gate
heavy magnet
#

guys, anyone have a side job freelance for backend or frontend??

sacred dawn
#

myb for frontend

austere gate
#

Here's a question for everyone: Imagine receiving a fixed amount of money every month, regardless of whether you write code or not. The code you create would have no economic impact—it wouldn't be used to develop a product or a SaaS. Would you still choose to code?

pure copper
pure copper
austere gate
#

Lately, I've been thinking about the post-AGI world. How would humans adapt to this new technology that can outperform experts in almost every economic activity? What if governments implemented Universal Basic Income (UBI)? How might that affect developing and underdeveloped nations?

#

How could humans stay motivated to engage in cognitively demanding tasks when there are no incentives? If nearly everyone receives a fixed income for survival due to their work becoming obsolete, what would drive people to take on challenging work?

#

If you search for jobs now, the trend is already evident. Most companies are prioritising senior roles, with noticeable job cuts and hiring freezes.

#

When AI agents become widely available, individuals will have personal agents to handle tasks on their behalf. Imagine hiring AI employees—you wouldn’t need to pay salaries or provide benefits, only cover their computing costs. It would be far more cost-effective to employ 100 AI agents than, for example, five mid-level engineers.

#

I used to say we'd get there someday, but now I see the trends, tools, and developments unfolding every day.

#

And I don't know why most people aren't taking AI/AGI seriously.

pure copper
austere gate
# pure copper Interesting, ai may become the only employee and the owners of the ai will put t...

I'm not sure whether to call it a utopia or a dystopia. Why would a trillion-dollar corporation with vested interests in this field care about ordinary people? Technically, they're only accountable to their stakeholders, right? Sure, they have to follow government regulations, but they're here to make money, not to do charity. And wouldn’t superintelligence make our whole monetary system pointless anyway?

pure copper
#

An elite few will run the big corps. UBI will be set for all and used to regulate society. Performance of menial task will be a requirement of UBI. Food will be rationed and everyone will be provided with the basic requirements. Pick up rubbish or build a pyramid. The future for all once the elite control society again.

#

@austere gate

#

Don't forget the continuation of forced sterilization.

eternal sandal
#

Cyberpunk wasn't too far off

austere gate
#

Dystopia it is blob_help

hidden crater
#

Somebody here became python developer without bachelor's degree or something like that?

#

because I am interest in python from now on but I still don't know nothing about this job market

sharp cipher
#

Hello, I am French and Portuguese, a student in France. I am currently learning web development. If anyone can give me advice or websites to learn from, thank you, including on Figma.

shy glade
sharp cipher
#

🤣

pseudo wasp
#

Rust rust rust

#

Rust Go Rust Go Rust Go

#

Go Rust Go Rust Go Rust Go Rust Go

#

Rust Rust Go Go

#

T::<'rust: 'go>

#

rust outlives go in ma case g

magic scaffold
#

i am learning java rn ...is it worth it in 2025?

#

or should i switch to python/Kotlin/C++ or rust?

charred crane
#

Or start python less headaches, try to start with c50 Harvard give a good 101 for programming

magic scaffold
#

cs50?

#

in youtube

#

?

charred crane
magic scaffold
#

Thank you

#

can u check ur dm please?

#

@charred crane

charred crane
#

Sure

restive lance
#

Hy everybody

sharp cipher
#

@pseudo wasp one on my friend told me go rust all the week 🤣🤣

solemn radish
grizzled plaza
sacred dawn
#

for me

grizzled plaza
sacred dawn
#

someone who is good at frontend

grizzled plaza
sacred dawn
#

can y dm me?

pure copper
# magic scaffold or should i switch to python/Kotlin/C++ or rust?

Have a look at them all. Pick one you like and use it as your personal power language. But learn the others and write a few programs in each of you get the chance. The big decision comes when you look for a job and apply to all jobs with the languages you know. Then one company will pick you, and you will work in their language and that will become your new power language. Just as long as you have a good generic understanding of coding, and have used their language a little bit, they will consider you.

small wigeon
#

Give me a link...

small wigeon
#

Thanks)

mortal eagle
#

Wow, this is cool. I'll try it out

eternal sandal
#

DDD sucks, there said it

full zodiac
cobalt olive
#

asking to login first catwhat

raw oasis
#

Hay hay

pure copper
raw oasis
pure copper
#

Fresian

raw oasis
#

Oh I see

vale fern
#

Hi! I’m doing a quick survey on English speaking skills and would really appreciate your input. thank you so much

charred crane
#

Same here if you can provide me with link

fluid tinsel
#

💻

rare anchor
fluid chasm
wraith tinsel
wraith tinsel
minor coral
austere gate
austere gate
pure copper
eternal sandal
#

Will AI use all the toilet paper and leave us paperless?

#

When will it stopwhyy

cobalt olive
#

when the AI will reach singularity creepy

austere gate
austere gate
austere gate
# cobalt olive when the AI will reach singularity <:creepy:817295588273553418>

Honestly, we probably wouldn't realise for a while if singularity had been achieved. If OpenAI were the first to reach it, would they announce it immediately? I doubt it. They'd likely hold off for as long as possible before labelling it AGI. After all, once you hit AGI, raising funds the usual way becomes a lot harder.

bleak escarp
#

Hi guys, whats up 😁

#

im a web programmer fron argentina

abstract oar
#

@copper verge pretending wasn't the best move

vast saddle
eternal sandal
austere gate
full zodiac
stone star
#

Hi guys I m new here want to learn programming can someone help me

charred crane
pure copper
austere gate
charred crane
austere gate
pure copper
#

You better terminate this conversation, or you will be targeted

austere gate
# pure copper You better terminate this conversation, or you will be targeted

It’s funny how people always bring up Skynet when talking about an AI apocalypse. The truth is it’s going to be much more subtle. AI will know exactly which buttons to press and how hard to press them to make people cave. Some people would lose their minds over toilet paper, video games, or whatever their weakness is. All AI has to do is send a little notification saying if you don’t do this or that in the next 24 hours, be ready to face the consequences. That’s it. People would be on their knees begging lol

pure copper
#

The Good ol' days

austere gate
pure copper
#

cause some rich AI owner will use up the rest building a fleet of airplanes

austere gate
pure copper
austere gate
charred crane
#

Probably I will be the new Sara

celest raptor
austere gate
austere gate
#

Disclaimer: The model is not publicly available yet.

icy turtle
#

Lnw

glad epoch
#

Hi 👋

ripe knoll
#

i finished my first python calculator

#

i studied python in 2023

#

and now i back to studies for a internship

#

also learn more about mySQL

austere gate
ripe knoll
austere gate
solar ember
#

someone is here the study pentester or cybersecurity ?? a need friend 😦

pure copper
keen stream
#

Who here has experience with Lua / Roblox Studio ?

pure copper
upper wedge
#

Hey! If you're into Competitive Programming, DSA, or learning the MERN stack, hi there! Would you like to be friends and study together? 🙂

solemn flicker
#

I want to learn python if anyone knows or can teach python please help me !!!!

solemn flicker
serene mirage
#

💀guys, i have an upcoming interview for the mern stack developer job. Can anyone tell me how to perform better in convo

ivory hollow
jagged prawn
# solemn flicker I want to learn python if anyone knows or can teach python please help me !!!!

If you’re not lazy, try reading and practicing with 'Automate the Boring Stuff' book. Otherwise, try ws3chools https://www.w3schools.com/python/ for a quick reference to understand syntax and data types.

#

after all, practice your skills and logical thinking by making some projects. It can be anything like a calculator, a number guesser, tic-tac-toe, or whatever

woven snow
#

Sup geeks

ripe knoll
#

On the internet you will find many videos and other things that will help you more.

charred crane
#

Try freecode camp they have full stack now try it it’s worth it

balmy stirrup
#

Wassup

topaz grove
#

should I learn first nodeJs or express js (or next js) which one is much better for back end I know already front end (react + typescript)

#

I miss old times write code with html css js + c# or php bam now everything wants too much tecno

shell bluff
#

Wow incredible I'm obsessed with this type of customization

serene mirage
cobalt olive
icy latch
#

Hi 😄 I really don't know what this chat is about but I am software engineer, mostly with Javascript and Java 😛 Nice to meet you all

jagged prawn
#

poor kid, will probably be bullied a lot—at least he’s fast dog3

radiant swift
#

Totally random Question ,but does anyone here have any good python open source project where i can contribute ,i got too bored just doing Cp and random projects, need something interesting to work on

keen mica
#

I am looking for project ideas in specific areas such as web development, website development, or feature development for my final-year students. Could you kindly suggest innovative and practical topics that would enhance their learning and skills? Your input would be greatly appreciated!

jagged prawn
tranquil bronze
#

Hi

radiant swift
cobalt olive
# keen mica I am looking for project ideas in specific areas such as web development, websit...

wouldn't that vary alot based on their skills and interests?
Booking System,Online Learning Management System,E-commerce Website,Job Portal with Resume Matching,Crowdfunding Platform,API Integration,Responsive Design Implementation,Real-Time Chat Feature etc.
react native web app can kinda combine all those three type of dev so they can work as a team and improve team work as well ig

jagged prawn
jagged prawn
#

there will be mostly backend staff and a little ui

#

another bigger idea and even useful, is an intelligent code reviewer/analyst tool utilizing llm's

#

it's expected to fetch the repo code by url and assess the expertise level(jun/mid/..). Look the the code, find vulnerabilities, leave suggestion for improvement and check if the code follows the best practices and standarts

#

it's again mostly backed staff with only small part of ui, but you will be dealing with code fethching, pagination, async programming, third party apis, langchain, handling token limits, splitting content into chunks for the llm chain and design it into all into one project that you won't be ashamed to show to others and in the end analyse it with created tool wolf_thusky

austere gate
zenith plover
#

Hi, Anyone interested in starting a project? Im developer backend

grizzled plaza
# serene mirage As a fresher

During my junior years, they wanted to understand if:

-You are committed to learning.
-You have any side projects (no matter how small).
-What you learned in your degree and how you think it can be applied in the workplace.

If this is your first time preparing for something like this, check out this video on YouTube—it might help:
https://www.youtube.com/watch?v=QjBAEPcNZHs

🚀 Project React → https://cosden.solutions/project-react
📥 Import React (Newsletter) → https://cosden.solutions/newsletter?s=ytd

Join The Discord! → https://discord.cosdensolutions.io
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"

Big shoutout to Bogdan for helping with this video!

This is a React interview for a jun...

▶ Play video
grizzled plaza
rare epoch
#

How can I start programming??

pure copper
# rare epoch How can I start programming??

Download a free "integrated development environment". That will give you an editor and compilers for languages. Then pick a language and read some starter material on Internet. We can give you demonstrations if you are interested. Just ask. I'm happy to give you some starter info.

unreal cape
#

What do you want to learn? Maybe you can start learning C language for foundation. And then do Python next. There's bunch of Youtube and websites like geeksforgeeks that shares information about basic programming. You need to start on basic basics to understand how programming works.

rare epoch
#

I am doing a web develpment online course

#

But i dont know if that is what I want

unreal cape
#

Isn't that a little too broad for starters?

pure copper
#

C/c++ will get you into the starter coding without all the need of a grand stack of server development. You just need to start inputting some numbers etc and printing some results.

pure copper
unreal cape
#

Yeah agree. Why don't you start C programming first? You'll eventually learn other things while on it.

pure copper
#

Starting beginning programming with web development is like trying to put together a wedding cake when one does not know how to butter bread.

unreal cape
#

Exactly. Better to start on basics than trying to understand jargons. 🥲

#

I do hope that you take the advices. You'll get there eventually! Just more patience. It takes time learning.

grizzled plaza
pure copper
grizzled plaza
hardy spire
#

Hi people! Do you guys have tips to become better on Leet Code problems? Thanks in Advance

fervent gale
#

googling

shell bluff
#

Hi friends

eternal sandal
#

hello lipeh, what's up?

pure copper
pure copper
pure copper
#

Quiz time: Please rewrite this cobol statement using alternate cobol syntax without using the + or = operators:

#

No AI please. RTFM if you have to.

eternal sandal
#

As a Large Language Model I am not able to help you with that. UNPOSSIBLE

jagged prawn
pure copper
jagged prawn
#

I'm not old enough to know about cobol, but i'll try

pure copper
#

In the Banking Industry...

#

So here's the video to watch to start your new career, witht he details of why you need cobol...
https://www.youtube.com/watch?v=LWYmGhIFy-A

(Or hardly anyone knows)

Believe it or not, a 60-year-old programming
language, COBOL, still powers major systems like banking and insurance. To be honest, it’s pretty bada**

⭐️ Interested in the lego on my shelf, view my amazon store (affiliate)
https://www.amazon.com/shop/codingwithdee/list/2UT9ZHQJ2EF93?ref_=aipsflist

#softwarengineering ...

▶ Play video
jagged prawn
pure copper
jagged prawn
#

why do examples of code scare me?

pure copper
#

look up the arithmetic statements of cobol, and you will get the answer quickly

jagged prawn
pure copper
#

its much simpler

jagged prawn
#

ADD 1 TO 1

#

surprisingly documentation is clear

pure copper
#

Now for another boring 167 hours, until someone comes up with something else interesting.

jagged prawn
#

cobol and a new career are mostly about supporting existing codebases. A lot of code was written in cobol before, and no one wants to risk replacing it. So, it’s like you’ll be needed when the old cobol programmers start disappearing and here you star time began - not to break it

#

but the market trends show that everyone wants ai and fancy websites, so there are many full-stack developer and devops roles because you need to maintain all the systems. For cobol, it’s not widely used anymore because there’s no space for it in new projects, and the old code is like gold, so no one wants to replace it, at least i think so

#

demand and supply in action

final comet
#

sure, 95% of banking systems are in cobol

#

swift transfers, wire transfers

#

etc..

pure copper
#

It's also in the aviation industry. Happy days

wooden monolith
final comet
#

a link tree clone would be enough

#

host your app free with

hallow meadow
#

hello

wooden monolith
#

but i like the laravel backend better

wooden monolith
wooden monolith
final comet
#

8/10

final comet
#

create your's for free

wooden monolith
wooden monolith
#

this is much better

pure copper
#

Indeed

#

Hi noone

grizzled plaza
grizzled plaza
round citrus
#

hello programmers who here is into tech industries?

pure copper
wooden monolith
inner crow
#

Hello programmers,
i am really curious to know,

1- How can I access Instagram's cached files?

2- I'm really interested to know what they did to hide these files? it would be useful in many ways to be able to hide files in public internal memory in a way that no file manager could explore.

shy glade
#

class Node {
constructor(value) {
this.value = value;
this.left = null;
this.right = null;
}
}

class BST {
constructor() {
this.root = null;
}

insert(value) {
    this.root = this._insert(this.root, value);
}

_insert(node, value) {
    if (!node) return new Node(value);
    if (value < node.value) node.left = this._insert(node.left, value);
    else if (value > node.value) node.right = this._insert(node.right, value);
    return node;
}

search(value) {
    return this._search(this.root, value);
}

_search(node, value) {
    if (!node) return false;
    if (node.value === value) return true;
    return value < node.value ? this._search(node.left, value) : this._search(node.right, value);
}

remove(value) {
    this.root = this._remove(this.root, value);
}

_remove(node, value) {
    if (!node) return null;
    if (value < node.value) {
        node.left = this._remove(node.left, value);
    } else if (value > node.value) {
        node.right = this._remove(node.right, value);
    } else {
        if (!node.left) return node.right;
        if (!node.right) return node.left;
        let minNode = this._findMin(node.right);
        node.value = minNode.value;
        node.right = this._remove(node.right, minNode.value);
    }
    return node;
}

_findMin(node) {
    while (node.left) node = node.left;
    return node;
}

inorder() {
    this._inorder(this.root);
    console.log();
}

_inorder(node) {
    if (node) {
        this._inorder(node.left);
        process.stdout.write(node.value + " ");
        this._inorder(node.right);
    }
}

}

#

what i did wrong ?

#

it doesn’t work

pure copper
# shy glade what i did wrong ?

It's a lot of code. Have you run it through the debugger to watch what happens as you build the tree. If the tree is good, then move on to the search. The debugger is you best friend. Step through and you will spot the issues quickly.

#

On the surface read it looks ok, but there are plenty of places it could be wrong, when it's actually used.

grizzled plaza
austere gate
# shy glade what i did wrong ?
class Node {
    constructor(value) {
        this.value = value;
        this.left = null;
        this.right = null;
    }
}

class BST {
    constructor() {
        this.root = null;
    }

    insert(value) {
        this.root = this._insert(this.root, value);
    }

    _insert(node, value) {
        if (!node) return new Node(value);
        if (value < node.value) node.left = this._insert(node.left, value);
        else if (value > node.value) node.right = this._insert(node.right, value);
        return node;
    }

    search(value) {
        return this._search(this.root, value);
    }

    _search(node, value) {
        if (!node) return false;
        if (node.value === value) return true;
        return value < node.value ? this._search(node.left, value) : this._search(node.right, value);
    }

    remove(value) {
        this.root = this._remove(this.root, value);
    }

    _remove(node, value) {
        if (!node) return null;
        if (value < node.value) {
            node.left = this._remove(node.left, value);
        } else if (value > node.value) {
            node.right = this._remove(node.right, value);
        } else {
            if (!node.left) return node.right;
            if (!node.right) return node.left;
            let minNode = this._findMin(node.right);
            node.value = minNode.value;
            node.right = this._remove(node.right, minNode.value);
        }
        return node;
    }

    _findMin(node) {
        while (node.left) node = node.left;
        return node;
    }

    inorder() {
        const result = [];
        this._inorder(this.root, result);
        console.log(result.join(" "));
    }

    _inorder(node, result) {
        if (node) {
            this._inorder(node.left, result);
            result.push(node.value);
            this._inorder(node.right, result);
        }
    }
}

ChatGPT: Changed the inorder method to collect node values into an array and print them using console.log.

keen stream
#

guys is there any one who knows roblox studio?

austere gate
shy glade
#

wow

#

impressive

#

thx

austere gate
shy glade
#

i don’t even know the chatgpt know algorithms

austere gate
shy glade
#

chatgpt’s code comparison with mine

austere gate
# shy glade

For those who didn't get the joke, including me...

Another AI: The person is saying that ChatGPT's code might look really good and impressive (like a perfect chicken leg), but their own code, even if it doesn't look as immediately polished or "perfect" (like the cat's back which is a bit of a surprise), is actually better or more "real" and maybe even more effective in the long run.

shy glade
#

and you can figure out what i mean

austere gate
# shy glade and you can figure out what i mean

Every line of code I write or use AI to write has to go through me, but for this case, I'm just blindly copy-pasting from ChatGPT because I'm not interested in solving or reviewing this. I hope you understand 😅

eternal sandal
austere gate
eternal sandal
#

Nuh-uh, it went something like "Who's there?"

jagged prawn
austere gate
jagged prawn
eternal sandal
jagged prawn
#

Programming who?

eternal sandal
#

Program-

TypeError: Converting circular structure to JSON

    --> starting at object with constructor 'Socket'

    |     property 'parser' -> object with constructor 'HTTPParser'

    --- property 'socket' closes the circle
eternal sandal
#

Humor is my passion

#

That's a real error I'm getting btw

jagged prawn
#

I don't get it to be honest

jagged prawn
# eternal sandal Program- ``` TypeError: Converting circular structure to JSON     --> starting...
austere gate
jagged prawn
#

chatgpt went down, and now not everyone can code and fix the problems, only strong developers left kekk

pure copper
jagged prawn
# austere gate Hint

I get it that this is a cyclic problem with json object, like a cyclic code import

#

I expected this joke to be about something else, not the problem you struggling withSadgepepe

eternal sandal
#

I'm not that creative or funny

jagged prawn
#

at least you'll be a good developer if you fix this wolf_thusky

austere gate
jagged prawn
jagged prawn
jagged prawn
keen stream
#

guys what languages do u use it

#

I use lua language , i think no body knows it

robust elk
pure copper
#

c++

#

So Trump will give 800 Billion $ of the people's money to Elon so he doesn't have to use his own money on AI.

eternal sandal
#

TypeScript but barely

#

Do CORS errors have to be so cryptic?

inner crow
final comet
#

android debug bridge

austere gate
trim gate
eternal sandal
#

I mean: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

#

This is while the 'Access-Control-Allow-Origin' header only had one value which was, correctly, 'http://localhost:3000', and the problem was completely unrelated to it

#

Maybe cryptic wasn't the word, maybe bad all 'round

trim gate
#

you tried including the Access-Control-Allow-Credentials header in your server's response and set it to true, also check that Access-Control-Allow-Origin to set the localhost properly, and I think you also should check if any CORS midlewares or anything that affect it are set properly to handle creds and do not conflict with ur cors setting

#

I might go down to network reqs inspecting all requests and see what is going on

eternal sandal
#

It's already been solved, the only request that was failling was the OPTIONS since it's the only one I was making. The error was something with the Axios instance. I'm now playing a game and drinking coffee

trim gate
#

Oh, good dud. I usually only use fetch api, sometimes I use super agent even if it a bit larger

pure copper
austere gate
pure copper
austere gate
shy glade
pure copper
karmic snow
#

@pure copper hey do you use AI to debug your code if so which one is good in coding gpt, claude or maybe copilot

austere gate
austere gate
#

It hurts their ego.

austere gate
pure copper
pure copper
#

It might preserve our jobs a little longer

#

aI debugging is just lobotomizing the programmer.

karmic snow
karmic snow
pure copper
#

There's nothing more exhilarating than stepping through a program to find the broken branch statement or bad memory reference.