[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.




File: bloat_'edition'.webm (1.03 MB, 1268x690)
1.03 MB
1.03 MB WEBM
>Free beginner resources to get started with HTML, CSS, JavaScript and PHP
https://eloquentjavascript.net/Eloquent_JavaScript.pdf - A modern introduction to JavaScript
https://developer.mozilla.org/en-US/docs/Learn - A good starting point to learn about web dev fundamentals
https://javascript.info/ - Quite a good JS tutorial
https://www.freecodecamp.org - Curriculum including HTML/CSS/JS, React, Node.js, Express, and MongoDB
https://www.theodinproject.com - Curriculum including HTML/CSS/JS, and either Ruby on Rails / SQL, or Node.js / MongoDB
https://fullstackopen.com/en/ - Requires you to have basic web dev, db and git knowledge
https://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex/grid in CSS
https://phptherightway.com/ - A decent PHP resource
https://www.phptutorial.net - A PHP tutorial

>List of design resources
https://github.com/bradtraversy/design-resources-for-developers

>All useful documentation in one place
https://devdocs.io

>Need help? Create an example and post the link
https://jsfiddle.net - if you need help with HTML/CSS/JS
https://3v4l.org - if you need help with PHP/HackLang
https://codesandbox.io - if you need help with React/Angular/Vue

We have own website: https://wdg.one
Submit your project progress updates using this format in your posts, the scraper will pick it up:
:: my-project-title ::
dev:: anon
tools:: node, react, etc
link:: https://my.website.com
repo:: https://github.com/user/repo
progress:: Lorem ipsum dolor sit amet


Previous: >>87446867
>>
File: 1655472055615.jpg (100 KB, 784x560)
100 KB
100 KB JPG
js
>>
>>87468876
we have us own website
english please?
>>
>pretty lazy week
>work at much 3 out of 8 hours
>check commit log
>still do more things than any of my coworkers

I'm working remote and they're at the office. I wonder what they actually do during the whole day.
>>
>>87469339
Talk about how much they hate you and wish management would force you to come back to the office.
>>
>>87469453
sneed
>>
>>87469463
That’s what happened to me at my last job. I ended up quitting when they ask me to go back. I haven’t left my house for work since covid started. This feels amazing. I will continue to job hop to stay remote.
>>
Do I need to learn flexbox? I learned the box model a while ago when I learned the rest of css and I guess flexbox is completely different convention for how elements behave?
>>
>>87469508
Yea it’s apart of css.
>>
>>87469480
I'll do exactly the same if they want me to go back.
>>
>>87469514
Alright thanks I'll be sure to look into that stuff
>>
My next Js challenge in my course… make a script that will create 2 different random numbers that represent 2 6 sided dice and then combined the total. I already feel lost :)
>>
File: 142114251152.png (22 KB, 457x160)
22 KB
22 KB PNG
redditors are seething at react core devs because of react 18
>>
>>87469564
Not talking shit man, but are you really having trouble with that?
>>
>>87469592
I haven’t started. After the lecture from yesterday that was the exam afterwards. Decided to put it off until later today. Been thinking about it since. Maybe I’m over thinking it. Maybe I’m just not going to make it.
>>
post it
>>
>>87469609
Buddy just google how to generate a random number. Then do that twice and add them together. That will take maybe 10 minutes
>>
>>87469581
What's the big news and changes in React 18?
I saw some Nextjs documentation that mentioned I should add some code if I wanted to use that feature with React 18.
>>
>2.5 years working here
>Boomer central, barely learnt shit
>Realize I can't opt for the big money jobs

That's it anons, I'm establishing hermit mode starting this weekend and I'm going to do nothing but study and work out on my free time.
It's not like I have anything better to do.
>>
>>87469667
Right before the release of Monster Hunter Rise Dlc and Digimon Survive? Bold of you.
>>
File: 241242141.png (29 KB, 505x157)
29 KB
29 KB PNG
>>87469659
they are unhappy because react docs advise against fetching in a useEffect
>>
>>87469727

>>87469646
Thanks I’ll try to believe in myself.
>>
>>87469508
Flexbox is piss easy. Also learn CSS grid, it's super helpful for responsive layouts.
Two fun links to practice: https://flexboxfroggy.com/ and https://cssgridgarden.com/
>>
>>87469727
Since when?
I've always done API calls there.
>>
>>87469727
>they are unhappy because react docs advise against fetching in a useEffect
What? Then what I am supposed to do?
Where and/or how do you fetch, if not in a useEffect if you need to populate the page when the user navigates to it.
>>
>>87469771
>>87469783
see abramov's reply
https://www.reddit.com/r/reactjs/comments/vi6q6f/comment/iddrjue/?utm_source=share&utm_medium=web2x&context=3
>>
>>87469758
make sure you're using a cryptographically secure source of randomness anon. You don't want your professor to catch you using loaded dice
>>
>>87468876
Based 'cado edition
>>
>>87469723
For the better and for the worse I'm burned out of video games.
>>
>>87469874
>see abramov's reply
>https://www.reddit.com/r/reactjs/comments/vi6q6f/comment/iddrjue/?utm_source=share&utm_medium=web2x&context=3
>>87469874
Thanks, I'll read the whole thing later.
I skimmed thought and I didn't see any explanation about what's the correct way to do data fetching though.
>>
where do I find freelance work? do I need an example portfolio for that too?
>>
>>87469944
>I skimmed thought and I didn't see any explanation about what's the correct way to do data fetching though.
Seems like they say, use a third party library like SWR.
https://github.com/facebook/react/issues/24502#issuecomment-1118867879
>>
>>87469982
Fuck, I'm studying react right now because there's lot of demand but it morphs into a bigger clusterfuck every year.
>>
How many uncles do you have?
>>
>>87470034
Nice try farming my personal data glowie AI basterd bitch
>>
>>87469970
>do I need an example portfolio for that too?
of course not, people will hire you without even seeing what you can do.
>>
>>87469970
Just look up after peoples portfolios and calm there stuff as your own.
>>
>>87469783
You’re “supposed” to use an external library like react-query if you don’t want to over-complicate things. Otherwise you’re supposed to write a bunch of logic to cache and clean-up the duplication from strict-mode. That’s the right way to do it apparently, it’s kinda crazy.

Or you could just turn strict-mode off and say fuck it and continue using useEffect to fetch data.
>>
What am I doing wrong?
const die1 = Math.floor(Math.random() * 6) + 1;

const die2 = Math.floor(Math.random() * 6) + 1;


When I type die1 or die2 I get a number but it never changes unless I run the const for die1 or die2 again. I thought it was supposed to provide a random number whenever I type in die1 or die2. If that makes sense...
>>
>>87470564
You're creating a variable and storing a (pseudo)random value in it. What you want is a function that will return a random value whenever you call it, simulating a die roll
>>
File: file.png (9 KB, 560x173)
9 KB
9 KB PNG
>need to do multiple checkboxes
>i can only show 10 checkboxes for page
>the next checkbox page will depend on which checkboxes the user choose before
>i want to die
What am i supposed to do? I'm using React + Chakra UI. How can i store the values that the user choose? Fuck, i got out of the back end development to have a good time in the front-end, but this shit is driving me insane.
>>
>>87470637
Thanks
>>
>>87470801
Also, depending on the options that the user choos before, there will be an specific amount of pages that we'll only know after the back return that amount. Fuck, i'm going insane with this shit
>>
>>87470801
HTMLFormElement.elements
>>
>>87470801
Also you can throw this layout out of the window since it won't work on mobiles.
>>
>>87468876
Senior web dev here. Let OP's webm be a warning to all you noobies. If you get into web coding your belly will look like his. I used to code C++ and I was in perfect shape, then I switched to web development and I grew gyno tits and a pop belly. I can no longer see my cock when I look down.
>>
File: 1651948357545.jpg (6 KB, 412x314)
6 KB
6 KB JPG
>>87470846
The system only works in desktop, it won't be used in mobile. Also, that print isn't from the system i'm working on. Unfortunately i can't share with you guys, it's a form for a big company, i don't want to get fired now that my wife is pregnant, lol.
>>
>>87470564
You can easily turn this into a function (>>87470637 is right, that's what you need) just by sticking "() =>" at the start, that's "fat arrow syntax" and is a shorthand for making a function:

const die = () => Math.floor(Math.random() * 6) + 1
>>
>>87470864
I currently work 2 jobs. I'm trying to get a webdev job so that I can get paid enough and only work 1 job. The plan? Use the time freed up from not having to work second job to go back to the gym and lift like I did in my early 20s. I also need to stop drinking.
>>
>>87470928
my fucking eyes
>>
>>87470564
>>87470637
>>87470897
Something went very wrong during his learning process if he doesn't know how to invoke functions properly. Instead of helping him I'd just recommend he go read/watch a full beginner's tutorial on how to code.
>>
File: ee8xshsobzv71.jpg (31 KB, 937x712)
31 KB
31 KB JPG
>>87470928
>>
>>87469564
Have you considered business management?
>>
>>87470946
Anon, he's writing a program for class that generates two random numbers and adds them. It's safe to say he just started learning
>>
>>87470946
The issue I believe is that the course hasn't gone over functions yet. Just variables and strings, and literals. I was overthinking it. I was just suppose to only worry about making this:
`You rolled a ${die1} and a ${die2}. They sum to ${die1 + die2}`
to get my solution for the die1 and die2 vars.
>>
I have a huge advantage over most programmers because I learned C/C++ during my early teens. C++ beat my ass for 4 years, so I never made anything of value with it. By the time I got into uni, it was super easy to learn higher level languages like Python and Java.

C++ is good for teaching you the fundamentals but beginners should stay away from it. Not everyone is about that life.
>>
>>87471051
I took a class in uni for it 2 years ago. Final was to make a text based game. I wanted to kill myself.
>>
>>87470946
I don't know the problem is invoking functions, it seems to be not knowing when to declare a function -- what he did would work with pure functions, but random() isn't pure
>>
>>87471077
Lol same here, my final project was a basic rogue like game, wanted to kill myself writing it.
>>
>>87468876
OP as a web dev who has been doing this for over 13 years. I'd hate to be getting into web coding in 2022. Back in the day all you needed to know was DOM, jQuery, CSS floats, and some asynchrounous coding. Now you're expected to be a full stack developer. So you have to know:

>Callback hell, Promises, Async await, Observables
>React, Angular, or Vue
>Nodejs
>Webpack
>Es6 or Typescript
>Mongodb or Mysql
>Expressjs or Laraval
>JQuery
>Flexbox, Floats, or Grid
>MVC, MVVC
>Web Components
>Bootstrap or Material design
>Twoway data binding or unidirectional data flow
>Dependency injection, inversion of control, SOLID principle
>Functional reactive programming, RxJs
>Redux
>Linux, Bash, AWS
>>
>>87471172
I made a "choose your adventure" game with the setting being about zombies and you wake up in a hospital (original story trust me). After all the loops and shit and repetitive nature I really questioned if programming was for me..
>>
Lol making games in C++ is the worst career outcome unless you have a personal investment in the game you are making.
>>
>>87471375
Yeah, so many new coders google what language is most popular in game development and they stubble upon C++. Little do they know the C++ is going to beat the shit out of them for 2 to 4 years. I wonder how many new indie games died because of people using C++.
>>
>>87471198
u lyin' nigga
>>
Please explain to me how this line works 'this.selectionStart = this.selectionEnd = this.value.length;'
From this answer:
https://stackoverflow.com/a/10576409/19315471
>>
>>87471198
Docker is mandatory now as well. Don't forget Git and patterns like DDD and EDD.
>>
>>87471843
I forgot Docker and Git.
>>
>>87471198
Reminds me of a call from a recruiter I got yesterday.
It is stated on my linkedin profile that I'm a front end developer.
She sent me a message saying they were looking for someone willing to learn, and I'm putting emphasis on this, learn, the MERN stack.
Well, when we talked she also asked if I had experience in the following:
>react native
>web cloud
>kubernetes
>docker
>cybersecurity
>golang
>node
>bash
>seo

That's a learning position for you.
>>
I thought this would be a teach noobs how to code thread. Not a do my work/homework for me.
>>
>>87471198
>TDD
>CI/CD, GitHub Actions
>>
What is that programme called that let's you turn your projects into a bootable exe?
>>
>>87472382
Compiler?
>>
>>87472440
Like that but I've seen one that you can use for JS and php. Can't remember what if is called.
>>
>>87471791
it's setting both boundaries to an end value, so it's a single cursor at the end and not a text selection from selectionStart to selectionEnd
>>
>>87472302
what do you mean sir?
>>
How do I host an android app online? I need to show my portfolio sirs
>>
>>87472472
Electron anon.
>>
>>87472590
That's the one, thank you based anon.
>>
>>87472484
Too many people are just asking for help with their homework assignment. I thought this thread would be about learning. You don't really learn from getting other people to do the work for you.
>>
File: 1233.png (232 KB, 3742x1075)
232 KB
232 KB PNG
New to Vue, why am I getting this

app.js:43338 [Vue Router warn]: No match found for location with path "/storitve"

error, when I cleary defined it.

And yes, I did add Route::get('/storitve').. into web.php file.
>>
>>87472482
thanks a lot
>>
>>87470801
Keep a state/multiple states of rows that look like {a: 1} {b: 5} or whatever, to show which one is selected.
Instead of using input checkbox, use divs.
Create the divs dynamically, with a condition where if it matches the state, it adds a class so that it looks selected.
Every div has a click event that all it does is change the state to know which one was clicked, you can use classes for this like the a row of divs have classes a1, a2 etc, then use the number on the click event.
>>
>>87472795
You don't have a directory called storitve?
>>
I made a calendar but used about 20 for loops to make it, it basically generates the days for whatever month and year you pick

Is this shit code, using that many for loops? I literally don't know a thing about making your code efficient, what are the best practices for things like this?
>>
>>87473440
>20 for loops
>Is this shit code
Yes

Wite some functions, create an array, use if statements.
>>
laravel + livewire or phoenix + liveview?
>>
>>87473499
Why though? I genuinely want to know
>>
>>87473440
Because of time complexity. Imagine how inefficient your app would be if they added another day to the end of the month
>>
>>87473532
Cleaner, simpler code.
You can writ a few functions with if else statements with less code.
>>
>>87473440
If you don't do so already, I would recommend getting away from the keyboard and thinking about the problem and knowing exactly how you're going to solve it before you start writing anything. I think if you did it that way, you wouldn't naturally come out with things like 20 for loops
>>
>>87473564
what? lol

>>87473594
I've got it down to 8 loops now.. can't really see any room for improvement, is there definitely not some kind of best practice for writing JS code I can read?

>>87473604
Well I'm learning as I go, I just wanted to get something out and now I'm backtracking and cleaning it all up a bit
>>
>>87473594
Also don't know why you are finding days based on years seen as apart from Feb they are always the same?

 if(month = January) {
return days[0]
}
>>
>>87473705
Make a jsfiddle so we can see the code.
>>
>>87473705
Also, since you're using JS, use the Date object. There's no reason to "generate" the days for months and years. The dates are already there, just look them up.
>>
>>87473705
I understand. When I started coding, I would sit down and just let it organically come out and then clean it up too. It's more fun that way and you learn some things like that, so it's okay.
>>
>>87473720
Actually you could create a function for each month using that if statement.

Then have one function that calls them all based on the year.
>>
Make a new 4chan

Slay the evil mods and all like them

Rule your world absolute
>>
The world needs REAL free speech.

Replace 4chan!


Destroy subversives!
>>
>>87473791
>>87473812
Kys
>>
>>87473440
>>87473705
If a function has more than 4 FOR loops it's most likely doing something wrong. Try to break down the logic into smaller functions. Same thing applies to IF statements. If I see too many IFs in a file it is usually tightly coupled, spagethi coded garbage.
>>
>>87473705
Do
>>87473727

Just paste your code here and share the link
https://jsfiddle.net/
>>
>>87473887
>>87473727
https://jsfiddle.net/tuxf4b3s/2/

this is more or less it, although I've realised I'm using other for loops for picking the month and adding the right class so it can be picked up by this function properly
>>
>set up docker-compose file
>just werks
>ff 1 month
>different machine
>git clone
>nginx: permission denied, primary script unknown
reproducible setup my ass
>>
>>87473359
I'm fucking idiot,

I had php artisan serve running and canceled and started it again thinking that's done to save certain changes.

turns out I fucking completely forgot to run 'run npm dev' command or 'run npm watch'

works fine now
>>
>>87473816
he's right though
you can't even post a pic of Emma Watson's tits here without getting banned
>>
Love codecademy, but don't bother with the databases courses there. I love a good spoonfeed, but I've wasted so much time when I could have learned it faster from a book or something most likely
>>
>>87474483
>blue board
>wonders why he gets banned for posting tits

Go back or learn the difference between a blue board and a yellow board. Basically anything 4channel is a blue board. Anything 4chan is a yellow board.
>>
>>87468876
I just started chapter 2 of eloquent JavaScript. What’s up fellas
>>
>>87474677
Hello, I am discovering conditionals in Js.
>>
someone at instagram pushed some shit code to prod hours ago and now the platform is riddled with bullet points showing wherever there are lists. What a shitshow of a platform
>>
File: 1629151907275.jpg (70 KB, 405x405)
70 KB
70 KB JPG
>>87473812
the worst part is that you're not wrong, the bad news is the alternative is tor chans where you'd be wishing the glowies would protect you from it, I know I'm not going there
>>
>>87474235
>>87474235
let me guess, Red Hat derived distro?
>>
>>87474742
funny thing is, it worked fine on fedora, the issue is on ubuntu
>>
>>87469783
>Then what I am supposed to do?
from the thread
>Do you need to rewrite your data fetching not to use effects?
>You can (if you'd like) but please don't do it because of React 18!
you continue doing what you've been doing. it's a nothingburger.
>>
>>87474758
wow, literally the opposite of my experience, fedora was always being a cunt and debian just werkd
>>
>>87474113
This approach could probably be refactored, but the time complexity isn't actually bad. Nested for-loops can typically run in O(n^2) but in your case, n is the total number of days you're displaying, so your runtime is O(n).
Do you need to create 4 separate Dates, or can you use tempDate and just calculate the other values you need from that?
Use a <select> instead of typing the month name directly into the HTML.
>>
>>87474659
Back in my day there was no such thing as a blue board. You don't even realize there's a boot on your neck yet
>>
>>87474807
yeah, didn't expect that either. i can start up project on fedora workstation, but project on ubuntu just gives me permission denied nonsense. while running nginx as root. same config, same everything.

using laravel, if that makes any difference
>>
>>87473440
>Is this shit code
yes. look up day of the week algorithms and leap year calculation.
you only need to figure out if it's a leap year and what day of the week the first day falls on. you can generate a full calendar in one loop using this.
>>
File: 1427820103132.jpg (81 KB, 1024x1113)
81 KB
81 KB JPG
>using the Windows file explorer to drag and drop config files from one WSL distro to another
thanks Bill Gates
>>
>>87474818
>This approach could probably be refactored, but the time complexity isn't actually bad. Nested for-loops can typically run in O(n^2) but in your case, n is the total number of days you're displaying, so your runtime is O(n).
What is all of this lingo from? I genuinely haven't heard of any of it although I can get the gist of what it is you're saying. I would like to know more as I'm kind of refactoring aimlessly at the moment
>Do you need to create 4 separate Dates, or can you use tempDate and just calculate the other values you need from that?
True, that is unnecessary.
>Use a <select> instead of typing the month name directly into the HTML.
How dodgy would it be making the function read the content of a clicked anchor tag? that would help me avoid using more loops
>>
>>87474892
Seconding this.
>>87475008
>How dodgy would it be making the function read the content of a clicked anchor tag? that would help me avoid using more loops
Don't do that. If it was deployed to an actual website, no user is gonna want to use inspect element to change the HTML. Use the input elements that were created for user input, (e.g. <input>, <select>)
>>
>>87474892
but why is that better? that's what I'm trying to get at
>>
>>87474687
Interesting I don’t know what those are, unless you mean if and else.

I have a question for anyone, say I loaded up my Twitter in a browser, chrome or Firefox, and I wanted to write a js program that would automatically follow users and then automatically unfollow them later. How could I do that? Are there browser plugins to run JavaScript on websites? Is grease monkey one?
>>
>>87474827
>not being able to post porn is a boot on your neck
It’s more like a stool attached to your foot so you can reach farther. Porn never helped anyone do anything, it only hurts people.
>>
>>87475284
Yea, if, else, else if. This theroy stuff is fun but I can't wait to use js with html and css and build real shit.
>>
>>87475455
I have edited some js.app programs before now for work but I never studied js, just hacked around. So a lot of the first few chapters are really clicking for me now.
>>
>>87475195
One is a refined, more computationally efficient solution that's easy to read, the other is a convoluted mess

>>87475284
You will most likely be flagged as a bot and banned
>>
>>87475660
>you will be flagged as a bot and banned
My sweet summer child
>>
>>87475713
If you run some babby level implementation of a follow / unfollow script, yeah, you will be banned
Try it out and let me know how it goes for you
Nobody disputes that twitter has bots everywhere otherwise
>>
>>87475284
greasemonkey, tampermonkey, violentmonkey, there are a few these autists use, but the thing is, if you can reduce a follow/unfollow to an url call, you can do just fine with bash/batch scripting, if you can't do that then you'll need to fuck arround with the browser and need those

but 2bh, I've never used somethingmonkey ever, maybe I should, good luck, sure there are people in here that know about this
>>
>>87475660
>One is a refined, more computationally efficient solution that's easy to read, the other is a convoluted mess
Yeah now that I think about it this is way simpler and would be a lot nicer to look at

How were you able to come up with this solution so quickly? I literally spent hours typing up this useless shit for no reason.
>>
how do i convert a json into an html nested list?
>>
>start (second) dev job as full stack engineer
>only tasks for the past few weeks is updating copy strings and fiddling with css
>pay is 6 figure annual
>>
>>87475858
Not him, but that anon didn't "come up with" that solution. That algorithm has existed already and it's your responsibility as a programmer to search the internet for efficient, existing algorithms that solve the problem you're trying to solve, because 99% of the time, your use case isn't unique.
Research and understand your problem first, before you start writing code and you'll save yourself hours of writing poor quality code.
>>
>>87475860
with some instructions, google createElement, createTextnode, attachChildren, getElementsByClassName
>>
>>87475858
>I literally spent hours typing up this useless shit for no reason.
Well, I wouldn't beat yourself up that much
As a beginner you learn a lot through trying to solve problems. But yeah, as >>87475896 says it's much better to think about and break down the problems first before you just start writing mindlessly

As you gain experience you just obtain a better general grasp of how you should approach certain things
>>
>>87475896
I definitely will from now on, lol I feel like such a fucking idiot. and yes I'm aware he didn't write these algorithms himself you dick
>>87475960
It still bothers me, it's my time I'm wasting after all. I'm still worried about what the best way to generate this in the dom is, I feel like I need to read up on some theory before I do anything more honestly
>>
HTML bros.. did you know that the DIV element literally has no meaning? It is used as a last resort for when you do not have an appropriate element to accurately describe the content it is containing.

I know no one in modern web dev cares about HTML semantics but a web page is literally a document that you use HTML to describe the contents of that document so wrapping everything in divs is very wrong.
>>
>>87471198
it's not that bad
>>
I want to remove the trailing elements from the array, e.g.
[1, 2, 3] -> [1, 2, 3]
[1, 2, 3, 3, 3] -> [1, 2]

How do I do better?
  function removeTrailing(array) {
const last = array[array.length - 1];
const next = array[array.length - 2];
if (last !== next) {
return;
}
while (array[array.length - 1] === last) {
array.pop();
}
}
>>
>>87475896
he's still learning, these things will come with time
>>
>>87476198
P.S. It's guaranteed that there would be no out-of-bounds, so the length of input parameter > 2.
>>
Far too many take this shit job way too seriously, not in any way that matters of course, obsessing over performance meanwhile loading up 150 trackers and ad networks
>>
>>87476106
I am a 90s kid, I am using tables, baby
>>
>>87475740
Well I guess I’m beyond you because I’ve done it before without getting banned. I always get banned later for saying something based and redpilled. I used imacros. I’ve never once been banned for being a bot they just want me to verify with a phone.
>>
>>87476198
What's preventing you from just converting it to a set
>>
>>87476355
Because by converting into a set only retains the unique values, and I need to remove the trailing elements (if they are trailing, of course).
>>
>>87475907
How do i even upload the json
>>
>>87476292
based. Back in the day I thought table-based layouts looked pretty good
>>
File: 1546495698906.jpg (443 KB, 1125x1090)
443 KB
443 KB JPG
Looking to try and make a move after my current job to something a little more modern, my current job is a lot of legacy code and I'd prefer to be working with newer stuff

When I start applying for stuff am I going to need projects that showcase that I know newer stuff (Rust, TypeScript, Redis, Docker, etc) or will my experience be enough and then I would just be expected to pick everything up on the job?
>>
>>87471843
git is learn-as-you-go. docker is actually really good to know no matter what sector of software youre in - its a really elegant containerisation platform.
>>
File: file.png (416 KB, 640x666)
416 KB
416 KB PNG
>>
Is message passing by using an array and a lock idiomatic Python, idiomatic "Python if you don't want to use any external libraries" or bad design?
>>
how do i get good with algorithms? i cant grind leetcode for shit because im a brainlet
>>
File: ow .png (15 KB, 113x95)
15 KB
15 KB PNG
the google mainframe o.o
>>
>>87476722
No way around it. You can read theory but you have to actually practice if you want to be able to get good enough to do something useful or pass a technical interview.
>>
>>87476722
This book, but use grokking algorithms if you are a noob.
https://doc.lagout.org/science/0_Computer%20Science/2_Algorithms/Introduction%20to%20Algorithms_%20A%20Creative%20Approach%20%5BManber%201989-01-11%5D.pdf
>>
I can no longer code after covid fried my brain.
I am a retard now.
I remember all the syntax and various tricks and the usefulness of many frameworks, but I can no longer comprehend how to put a project together, can't understand project structure. And also I forget what I'm supposed to be doing every 30 seconds, which makes it impossible to code because you are often trying to accomplish something that requires hundreds of steps, and my brain can no longer determine what the next step is.

I almost died. I hate this. I caught covid from a 450lb black man in a mobile scooter in Walmart. That's about the worst way to get it, he probably had a super-strain.
>>
>>87476968
The end result of this is me staring at the screen in a hypnotic state not doing anything other than staring at code which I forget what I'm even looking at every 30 seconds and have to remember what it is again, hundreds of times until I give up.
>>
>>87476992
i feel you anon. except i started feeling this way after i took the vaxx. covid only made me permanently fatigued, the vaxx literally left with me permanent brain fog
>>
>>87477001
I'm now wondering if children born after the pandemic will grow up to be normal and then view us as absolute retards compared to them, without understanding a virus/vax fried our brains. 15+ years from now is going to be a strange world.
>>
File: 1654036440282.jpg (30 KB, 385x390)
30 KB
30 KB JPG
>>87468876
I'm in college to take computer programming. I thought it was gonna be a whole lot of fizzbuzz type assignments but they're actually teaching web development. IMO the course should be called web development. I had a conception of programmers as coding really well in 1-2 languages. People specialized to work in different areas, working together. Now I'm being taught how to make fucking databases and network protocols? Are you fucking kidding me? Why throw 50 topics at a student instead of delving deep into a small number? Does the industry actually want people who are bad at 50 things and good at none? Please help.
>>
>>87477086
>Does the industry actually want people who are bad at 50 things and good at none?
yes, hence job listings requiring 5 years of experience with 10 different tech stacks
just focus on the programming fundamentals, frameworks & libraries are easy to learn
>>
>>87477028
bro children born after the pandemic will exclusively use nocode platforms, nocode platforms ran by covid brains
>>
doing the odin project and i am being fucking filtered by react. i dont know if theyre explaining it poorly, but the CV project is drowning me. how do i learn this shit? im understanding the very basics of it and then i google how to do something (passing state handling function into props on child component) and get 15 different answers and none of them work for me.
>>
>>87476968
can you try retraining your brain using memory palace techniques?

if not possible, can you try to write everything? 30seconds should be enough for you to comprehend a series of graphs in the top level, then switch to another page for deeper graphs, etc, etc?
>>
>>87477321
You're gonna have to find a different resource to learn React from than Odin. Not saying Odin is bad, but there's not 1 resource on the net whether that's FreeCodeCamp, Odin, TeamTreeHouse, your favorite Youtube coder or the best-selling course creator on Udemy that can explain EVERYTHING in web development perfectly.
>>
i want to ask the brain-fog anon if he stops after 30 seconds to think about something specific (a certain topic or thing), or if its just forgetfulness. it would be okay to stop and re-read the last sentence, or read again from the top, if you forget. its okay to do that
>>
okay then. enjoy suffering i guess :(
>>
>>87476992
im still here if you want help
>>
File: 1655524712559.gif (346 KB, 220x220)
346 KB
346 KB GIF
I don't know if I should start applying for jobs after I learn React and build a few decent-sized projects, or if I should spend a few more months learning Python/Django + SQL. I'm already very comfortable with vanilla HTML, CSS, and JavaScript, and have a few various-scale projects already built.

I'm thinking of applying for Jr. Frontend roles after I learn and build with React, and then diving deeper into full-stack technology once I'm employed.

I also need to brush up on my DSA/Leetcode for interviews.
I'm thinking of glossing over SQL & Django, just to get some familiarity with the technology, but I will not start working with them until I land a Jr. FE position.

Thoughts?

tl;dr: Is HTML, CSS, JS, and React all you need for a Jr. position? Or would it be worthwhile to spend a few more months learning full-stack development?
>>
>>87477560
yeah i think i'm just going to stick to FE for now
>>
>>87477399
>>87477432
>>87477442
didn't ask n ur mentally ill
>>
>>87477644
seems like my mental state is better than yours. i wanted to know a little (bit) more about what youre experiencing - it could have helped to have talked about it some. there are things you can do
do them yourself though

just know that the brain is powerful and can heal itself if you just give it time. theres also no need to be mean
>>
>>87477670
do not expect civility here, this website is infested with mentally ill faggots
>>
>>87477442
>im still here if you want help
that other guy wasnt me. i have to go to sleep now but i appreciate it.
>>
im a mentally ill faggot, faggot
>>
>>87476968
>>87476992
Yeah, I’ve heard about long covid, shit is pretty scary and doctors don’t what to fucking do about it because there’s basically no solid research on the topic. I’ve heard of cases where people can have symptoms of brain fog for a year or more. Hang in there anon.

>>87477321
How good is your JavaScript knowledge? A lot of people make the mistake of trying to pickup JavaScript and React at the same time.
>>
>>87477707
no you werent. you were being mean so that i could lash out at you, and youd say "well hes mean so im glad im not going to take his advice" so that you can enable your isolated, regressed, coping lifestyle
you can do that if you want
and goodnight
if youre going to be alone then do fix it yourself

only saying so because i already didnt lash out like usual to filter that... so i may as well!
>>
i need an automtaed way to order free SIM cards from the phone providers websites
i know you can fill out forms etc. with VBNet but i want something proper

can you do this with javascript? what would or SHOULD you do this with?

how much would it cost?

(i am thinking it might be sending POST to the website with whatever it is, where a completed form is sent with the fields filled out to the site. if i could have that send out to the phone providers automatically, hopefully then without forms, then i would be happy)
>>
>>87477743
you can try contacting them and see if they have an api or an automated ordering method, otherwise maybe puppeteer or selenium
>>
>>87477743
example:
https://shop.ee.co.uk/price-plans/free-sim?
^ this is how the URL came, with the ? also

note the yellow highlighted pack at the top. any pack can be selected and theres no CC verification
note also the option to get 2x free SIM cards
>>
checkem desu
>>
>>87477769
no
>>
File: 1654954090783.gif (264 KB, 200x200)
264 KB
264 KB GIF
>>87477777
>>
>>87477781
all a part of my plan anyway, which worked. it worked on purpose, my plan
>>
>>87477777
checkem!
>>
File: 1655025738455.gif (7 KB, 56x56)
7 KB
7 KB GIF
>feeling good about a project i finished
>find random senior dev on github
>check out his portfolio
>his projects BRUTALLY mog mine
>feel like shit again
it feels like the month i spent working was pointless, i feel like i'm still at square 1
>>
>>87477777
well done
>>
>>87477777
Bump for basedness.
>>
>>87477805
a lot of artists (people in the "creative" areas) say to other artists NOT to do this, because its so easy to look at someone elses work and put your own down for it. they have been doing it for a long time
its a common pitfall
you just have to keep going, and one day you will be even stronger than he is - and when you get there, the technology will be better and so your things can do more stuff and be more better

again, this is common and "artists" have it happen to them often
>>
baseddprogrammers checked em
>>
bump
>>
>>87468876
what are some of the risks to you (and not the website) for running a website/server from your systems at home?
>>
what are your thoughts on this thing /wdg/
>>
File: 1465843932597.jpg (12 KB, 324x325)
12 KB
12 KB JPG
>be me
>learning javascript in current year
>look up how to do something in javascript
>all of the code examples are in shitty fucking jquery
>>
are there any hidden costs for AWS if the thing is locked on a $0.30 a month budget and gets 0 traffic
>>
if you were paid for 50-60 hours a weeks worth of work, and you came in to sit at your computer for however long (50-60 hours), but you only did 15 hours worth of work a week, then how much work would you get done and would you care?
>>
I want to start learning Javascript
I haven't done programming in about 3 years so I'm a bit rusty, is Eloquent Javascript a good intro for me?
I'll look at the Mozilla document because I don't know anything about web dev
>>
bump
>>
File: Linus2.gif (72 KB, 356x280)
72 KB
72 KB GIF
>>87477777
Very nice
>>
what are some web developments
>>
some technologies
>>
thoughts on web?
>>
thoughts?
>>
bump
>>
and the thing (the "weapon") was something that nibbles from them, so it hurts everyone. i just dont think its too good to have people able to make those decisions and actually do them, or anything. very foolish.
>>
what are some developments?
>>
Who you talking to nigga
>>
the beta energy beta male cucks here obviously "nigga"
>>
Nigga shit the fuck up retard. Stop shitting up the thread.
>>
File: ow2 (2).png (11 KB, 125x88)
11 KB
11 KB PNG
okay, but only because i want to stop and will go to do some technology now
so bye
>>
software engineer
>>
Jiren
>>
>>87478336
Chin up.
>>
>>87471970
From my own experience, you should treat it as a wish list from a company - you don't have to know everything that's on there.

Also: HR is always retarded.
>>
>>87478349
So html, css, js, and react is enough? I’m trying to start applying for jobs asap. Maybe by December. I just started studying this month. I have html and css/bootstrap down pretty good. On Js currently. Right now I make $30k. I’ll be happy to double my salary.
>>
>>87477777
Ain't no way
>>
the most powerful of GETs today
>>
>>87473440
Why the fuck do you need 20 loops for 1 array?
>>
>>87478445
Why not?
>>
>>87476431
fetch()
>>
>>87476198
Iterate from the end, save the index of the first non-trailing item and then slice.
>>
>>87476968
Just shit out pure functions on every whim. 30 seconds is enough time to write a docstring for it.
>>
How
>>
>>87478369
yeah, seems so
html css js + any framework (you'll have to learn the company's entire full stack tech stack on the job anyways so they just want to know that you know how to use a framework, your choice isn't very important)
host a few projects that YOU actually made (not copied from youtube) onto your githuh account, maybe make a very basic portfolio, and start applying
from what i heard, all companies expect from a jr dev, is for you to have half a brain, and be willing to learn
you do not need to be a master programmer to be a jr dev, start applying as soon as you've built a few projects with a relevant tech stack
job requirements are BS, check off the "do you have X years of experience?" boxes as yes, and apply anyways
>>
>>87477086
>student fag actually has to study
Good. It’ll be easy for you to land a high paying job by the sounds of it. You should be thanking your profs.
>>
>>87477920
jQuery isn’t shitty you dumb fucking zoomer. It made a lot of things really easy when js sucked even worse than it does now:
>>
>>87478545
What should as I expect to do as a junior dev anyway?
>>
Are there any commonly suggested websites to try to copy
Or should I just not bother until I'm comfortable working with javascript?
Basically I just want something to test my knowledge of HTML and CSS while I work on my javascript
>>
>>87478578
Pornhub.
>>
>>87478571
Yeah it made writing imperative procedures riddled with side effects super easy.
>>
>>87478586
>>
Should I use bootstrap with some css to make it look not so bootstrappy to make my portfolio? Or should I do it the hard way with pure css?
>>
>>87478583
:(
>>
bump
>>
>>87478574
petty tasks, basically
>>
Is freecodecamp actually any good?
Seems like I could just do it a lot quicker with the w3 tutorials
>>
any good books or guides to learn design philosophy and similar for frontend, i feel like my pages feel too empty
>>
>>87478969
"Design" is unironically bloat.
Put on the site exactly what needs to be there. Nothing more and nothing less.
>>
>>87478571
i just mean it's shitty because it's obsolete now, nothing against it for when it was the only way to do things in the past. however, it's going to take a long time for SO and shit to creep into being updated so it's annoying now.
>>
>>87478983
if i didnt want bloat on my site i would have presented it as a plain html file.
>>
>>87478996
>present it as a plain html file
This is literally the optimal way. 99.9999999999% of website have no need for anything more. And your website is 100% included in this number.
>>
>>87478969
Just look at your site at 360px width (the baseline mobile width) and you will always have the space problems to deal with.
>>
how to get AWS cert if I don't have a job?
>>
i had been seeing people on here shilling a webserver to use with C# instead of IIS but now I can't remember the name and searches are just turning up the regular stuff like Nginx, Apache, etc.
anyone happen to know what i'm talking about?
>>
File: 1653595252402.png (1.61 MB, 3840x2160)
1.61 MB
1.61 MB PNG
Making a pointer to my question from dpt >>87479250
There's an offer for frontend python intern that I'm desperate for.
I used python for school, but since then I forgot everything but about how I had to fight the variable types.

Is it possible to relearn python within this weekend?
What's the best book to do so quickly, possibly with as many projects or exercises as possible?

They don't mention js but I already use it at work and I got the general idea on es6 it possible to be a frontend without html/is and python only?
>>
>>87479443
Maybe this, if you're already familiar with a few programming langs
https://learnxinyminutes.com/docs/python/
>>
>>87479349
it wont help you get a job but you pay the money and do the thing then you get a cert. maybe some certs require other certs, its like a pyramid scheme but really good and you can collect them all. theyre okay to have
you might want to start on the aws website
>>
>>87479443
>frontend python intern
what did i just read
>>
>>87477777
Noice boi
>>
>>87477777
WHERE IS PATRICK BATEMAN WHEN WE NEED HIM THE MOST
>>
check these digits also
>>
>>87477777
why would you say something so controversial yet so brave?
>>
>>87479443
I wish there was a pic like that but web dev oriented.
I'm bad at coming up with challenges.
>>
>>87478620
Bootstrap is very customizable through variables, so it's highly productive. I would rather go with something like Tailwind nowadays, also customizable through configuration and better developers experience in my opinion.
>>
Do you guys think that web dev is the easiest type of programming to get an entry level job with?
>>
>>87480020
Most likely yes, IoT is also very in demand and pretty easy, cryptocurrenciies have a ton of work as well and smart contracts are pretty easy to work with but I'd say we dev remains the easy point of entry.
>>
Is there money to be made with web dev in crypto?

some of the people that just make shitcoins for a living make an insane amount of money. They pump put like 3 or 4 a year and pull in 6 figures a year or more, they just make something somewhat legit and make bank on everyone basically playing roullette with their token. niggas like this would definitely want someone white to make them a clean, good-looking website and I reckon they'd pay a lot
>>
>>87480190
Thanks anon
Would you say the main things you really need are HTML, CSS and JavaScript?
If I've done programming in the past but don't know any of these three should I try to learn something else to set myself apart or is HTML, CSS and JavaScript basically just expected of every developer?
I was looking at doing the Eloquent Javascript textbook for a start
Also I have some experience with SQL and python, would that influence anything?
>>
File: Screenshot_4.png (34 KB, 928x509)
34 KB
34 KB PNG
>>87468876
What the fuck is wrong with Angular, this code block completely fucks up the entire component but there are no errors or anything, in fact it should display the same thing it displayed before.
Help I'm retarded.
>>
>>87480288
I added the second *ngIf with prioritize.
>>
>>87480218
It hasn't not much to do with "web dev" but rather cryptoscams, making the website is just a part of the scam, you can also make a ton of money developing smart contracts and creating the React websites that comes with it, it's a real business and it pays very well.
>>
>>87480387
Well that would be just making a straight up scam, I just wanted to make websites for these people, it's none of my business what they use it for.
I guess they're technically scams but they're at least not rugpulls, I think anyone that puts money into projects like this understands that it's basically gambling, it's the ones that pretend they're revolutionary and make empty promises that are fucked up
>>
File: 1522862187406.png (341 KB, 749x650)
341 KB
341 KB PNG
Here's a tip for people that are looking to get a job in web dev in the future.
Unless you need the money badly, don't ever accept a job dealing with ancient code, spaghetti code or anything that gives pajeet vibes. And if you do, only to find about it later, quit that very moment.
It will kill any interest and passion you feel about coding and you won't learn shit.
>>
>>87479443
> Is it possible to relearn python within this weekend?
No, because python is a "convenient" language, but this convenience is aimed at people with no programming experience.

You WILL constantly stumble upon its falsy/truthy rules, dict/object/class/list/tuple differences, json conversion rules, type hints (and lack of thereof), error handling, tooling, import rules, lambdas and everything else basically. Writing in python feels like talking to an anglo - despite the syntax being simple enough even for niggers, the process is full of annoying passive-aggressive gotchas.

Also "frontend python" is not a thing, unless they meant writing shitty django/flask/twig templates. In that case you will never "learn" python enough because all of these are DSLs over HTML with almost similar but incompatible idiosyncratic rulesets.
>>
>>87481218
why do you have to be so racist? I legit felt sick reading your post
>>
>>87481240
Drink some onions milk to calm yourself down then.
>>
>>87478557
I guess I wasn't mentally prepared for it. I hope what you say is true. I'm commuted at this point.
>>
>>87480841
Is that Hikaru Nakamura?
>>
>>87468876
I have a kind of a naming issue going on.

I have types for database record(s). These are just called User, NewUser.

I also have separate types for HTTP API responses that are mapped to database types. Now, these are also called User, NewUser.

And there's namespace conflicts if both are imported. I would hate to add a prefix or append anything to either of the names. I now use `db::User` and `api::User`, as in, using the module path to import them so they don't conflict.

How do you usually name things in this situation? I also can't let them be the same thing since one requires different annotations.
>>
File: 1655418570323.png (1.04 MB, 1106x1012)
1.04 MB
1.04 MB PNG
Is Github pages disabled for anybody else? I have 14 pages hosted on my account. I tried to host a 15th page, and it won't work. It says "GitHub Pages is currently disabled. Select a source below to enable GitHub Pages for this repository." Yet, no matter what I do, the "Save" button is still disabled.
I am very confused. There doesn't seem to be a limit. My pages feature just is not working.
>>
File: 1655805139477.png (2.01 MB, 2550x2436)
2.01 MB
2.01 MB PNG
>“Below the surface of the machine, the program moves. Without
effort, it expands and contracts. In great harmony, electrons scatter
and regroup. The forms on the monitor are but ripples on the water.
The essence stays invisibly below.”
>>
>>87480841
How would I know before accepting a job?
>>
>>87481735
You can just tell it from some signs. Their tech stack, the job description, the technical interview.
>>
>>87481760
Sorry I’m still very green. What should I remember to look out for?
>>
>>87481770
If you know anything whatsoever about good practices in development in the current year it should be glaringly obvious when you see what kind of tech stack / workflow they're using
>>
>>87481770
Old technologies, no mentions of upgrading / refactoring / sunsetting / modern technologies in general.
>>
>>87481556
Fuck, has nobody ever had this issue before? I can't find anything about it online.
>>
>>87481556
>>87481832
is the repo same as your username isnt that how it works
>>
I have a interview for some place called Durga solutions for a software developer position. I looked them up and they seem to have a youtube channel.
>>
>>87481894
xDDDDDDDDD
>>
File: checked.jpg (52 KB, 600x600)
52 KB
52 KB JPG
>>87477777
>>
(you)
>>
>>87476106
>I know no one in modern web dev cares about HTML semantics but a web page is literally a document that you use HTML to describe the contents of that document so wrapping everything in divs is very wrong.
I always thought HTML was that pesky thing you just had to initialize to be able to use/download the JavaScript!?
>>
>>87476106
div these nuts
>>
>>87482448
Present them.
>>
>>87481873
The love web page has its own URL based on the name of the parent repo. Normally I can set up a live page with a few clicks. It seems that there was an error on Github's end. Very strange. I ended up just hosting my page on Netlify.

>>87481832
>>87481556
>>
Quick python question

If I call an api and put the results in a variable, does everytime I interact with the variable do another call or are the responses saved in memory?
Example, say if I called an api and the response.json() is in a variable and I want to iterate through it. Is everytime I iterate through the variable a separate api call? I want to avoid needing to save the json response to the disk
>>
>>87482487
nigga you gay
>>
>>87468876
When recruiters check your portfolio, do they care about the specific technologies being used or just your general ability to make stuff (as long as it's in the ballpark of what they're looking for)?
>>
>>87482754
Recruiters don't know the difference between Java and JavaScript.
When it comes to interviews, being able to explain why you made such choices is always a plus, for example I have a cool side project and I explained why I went for basic solutions that I know don't scale and what is my vision for scaling afterwards, being able to explain that kind of things shows that: you're able to pick the right tool to deliver quickly while avoiding early optimization, and also aware of the limitations and solutions for the future.
>>
>>87476106
well html and css are turboshit
>>
>>87482801
So if I say I used bootstrap because it’s a time saver it wouldn’t be a bad look?
>>
>>87482754
Both, they expect you to know all the modern stack but also the exact details of their own legacy stack and do it for cheap.
>>
>>87482847
You just need to phrase it in the correct way
"Wanted to make a quick working model to demonstrate X" blablabla
>>
>>87482720
I am. Let’s meet up this evening at Flex or Midtowne Spa. ;)
>>
>>87482847
It absolutely would if you apply for a frontend job. If only because there is more complicated equivalent of bootstrap.
>>
>>87482847
I don't recall any interview where my choice of CSS framework came up, they're more interested in CSS methodologies and tools.
>>
>>87482847
There's no (or almost) bad tool, just bad choices.
>>
I haven't done shit since I got a job two years ago and my github profile is really lacking.
Do you guys know any website where I can get ideas, challenges, whatever?
I don't want to go through tutorials.
>>
>>87482652
anyone?
>>
>>87482927
This is a stupid question and you should learn programming first.
>>
>>87482972
okay yes I'm stupid, but can I get an answer please?
>>
>>87482978
This is the webdev general. Might need to ask programming. I don’t use python.
>>
>>87482652
Variables are stored in memory.
>>
Am I still in time for the golang train if I start today? Getting a decent job with it I mean
Give me a beginner backend project to start with
>>
>>87483004
>Am I still in time for the golang train if I start today?
What the fuck is that supposed to mean?
>>
>>87483002
thanks friendo
>>
>>87483018
I've heard jobs are many but still not that many and pay well, for now
Usually that changes if there's more in the pool no?
>>
>>87483047
What job?
>>
>>87483060
junior backend
>>
Anyone took the GO pill?
Is it worth it?
>>
let it be known that I've broken into the shiny rock mecca of "I'm being paid more per month than most people make in a year" and I'm still kind of dumb. fake till you make it is absolutely wonderful, people believe anything you tell them if it sounds even slightly believable.
I'm ready to receive my "I literally hate poor people" membership card in the post
>>
>>87482913
>Do you guys know any website where I can get ideas, challenges, whatever?
make me a robot waifu



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.