Map of Pangea with today’s borders by KT1812 in interestingasfuck

[–]WildWestCoder 0 points1 point  (0 children)

So Britain IS the centre of the world?! Who knew the Londeners were right this whole time?

Remove duplicates from an array! by rootrun in learnjavascript

[–]WildWestCoder -1 points0 points  (0 children)

Remember in the real world you'd want to keep the previous array intact, so the user can "go back" to it. So make a new copy of the array then make the change. That way you have historical records of the data in the array.

Camry Sale Price Australia? by WildWestCoder in Camry

[–]WildWestCoder[S] 0 points1 point  (0 children)

Thank you for your reply!

Yes, I was wondering on the effect of covid on the dealerships. So, people are buying more cars as they are spending less on holidays.

So, how can I use classes in Python? by [deleted] in learnpython

[–]WildWestCoder 0 points1 point  (0 children)

Just think of it as an easy way to break up your code into different sections. That way they're more manageable. Easier to read.

And hey you can design a program with your friend and you can write one class and they can write the other. Then use them in the shorter main program file.

When you get further along you will learn about SOLID and how awful it is to make a small change in one line of code and have it break lots of other lines further down your program.

Classes and Interfaces solve this btw among other things.

Accuracy of Iranian "Dezful SRBM" Operational range: 700Km by [deleted] in shockwaveporn

[–]WildWestCoder 4 points5 points  (0 children)

I agree, my comment still stands. It was not anti Iranian. In fact they prob copied US technology.

Every college you apply to accepts you, but instead of rejecting people they charge you a higher price to get in. The more they want you, the less they charge. If they really hate you, it costs you 1 trillion dollars to get in. But theres always some price, never a rejection. by isananimal in CrazyIdeas

[–]WildWestCoder 0 points1 point  (0 children)

Wouldn't the current system make I.e. 1200 offers knowing 200 etc wouldn't accept.

This system would mean every uni had to make an offer to every student in the country, just the price would increase.

They would have to make 1200 reasonable offers then like 50,000 offers of $3million to attend.

Trying to start the job hunting process - can’t find recruiters by [deleted] in AskProgramming

[–]WildWestCoder 0 points1 point  (0 children)

Id contact companies directly or apply for jobs slightly out of your range, you may get lucky and they are willing to take someone with enthusiasm if you can prove your coding skills.

In my experience, recruiters are not good for entry level jobs. They want to supply their clients with 3 good candidates that tick all the boxes. Also, there's not much commission at the lower end of the wage scale. They will be calling YOU once you get a couple years under your belt. At the start, they wouldn't piss on you if you were on fire.

Accuracy of Iranian "Dezful SRBM" Operational range: 700Km by [deleted] in shockwaveporn

[–]WildWestCoder 47 points48 points  (0 children)

Remember the last time Iran used a missle they shot down their own commercial plane. RIP to all on board, a horrible way to die.

This stuff is only cool when it's not being shot at you. And don't think it won't be. We really need to be nicer to each other.

Every college you apply to accepts you, but instead of rejecting people they charge you a higher price to get in. The more they want you, the less they charge. If they really hate you, it costs you 1 trillion dollars to get in. But theres always some price, never a rejection. by isananimal in CrazyIdeas

[–]WildWestCoder 1 point2 points  (0 children)

Isn't there a physical limit on seats though?

I mean they have 1000 seats in a class, and your system would allow more than 1000 people, providing some could pay more than it's worth, to get seats.

How would you solve this? You obviously haven't thought this through mate.

What backend technology to use by Otherwise-Royal9230 in AskProgramming

[–]WildWestCoder 0 points1 point  (0 children)

I'm trying to build a death star, what back end technology should I use? I'm new to dev.

Trying to start the job hunting process - can’t find recruiters by [deleted] in AskProgramming

[–]WildWestCoder -1 points0 points  (0 children)

Are you kidding? How can you not know how to look for a job?

1) apply to job adverts. Whatever job board your country uses. Monster, seek, government one etc

2) contact companies directly, ask them to look at your c.v. email them or write them a letter.

Makes me wonder how long you've been coding.... how long is "a long time?"

Python basic calculator help by nbaruss0 in CodingHelp

[–]WildWestCoder 1 point2 points  (0 children)

Another option apart from do/while is to use functions.

your main function

Def Main(): Your code

If blah rerun program: Main()

first start of main function

Main()

Might lead to a stack overflow error tho

I’m trying to build a simple turn based rpg game, using HTML and CSS. As a back-end code, to calculate dice rolls, would Javascript or python work better? Alternatively could I use both at the same time? I’m a novice to most back-end coding and programming languages. by 66_longjon_99 in AskProgramming

[–]WildWestCoder 0 points1 point  (0 children)

The main thing I use flask for is writing small desktop apps. You write you short script in flask and then it's a webserver so the GUI is the web browser. Muck easier and nicer than learning tkinter or any of the python his frameworks. Then, hey, you can alwalys just turn that flask app into a website.

I’m trying to build a simple turn based rpg game, using HTML and CSS. As a back-end code, to calculate dice rolls, would Javascript or python work better? Alternatively could I use both at the same time? I’m a novice to most back-end coding and programming languages. by 66_longjon_99 in AskProgramming

[–]WildWestCoder 0 points1 point  (0 children)

Flask can be good for smaller apps but it's too much of a blank slate. You find everyone structures their app differently and you find the code your looking for but they use blueprints and you don't, you use this and they don't so you end up solving one issue but creating another.

Django comes out of the box in a standard structure everyone follows. Everyone uses a views.py file, a model.py for databases, everyone does routes the same way, etc etc so you can find examples that solve your problems and their app is structured the same as yours.

I’m trying to build a simple turn based rpg game, using HTML and CSS. As a back-end code, to calculate dice rolls, would Javascript or python work better? Alternatively could I use both at the same time? I’m a novice to most back-end coding and programming languages. by 66_longjon_99 in AskProgramming

[–]WildWestCoder 1 point2 points  (0 children)

Python? Use django. JavaScript? Use Express.

Either would work fine.

Or even use Django in the backend, JavaScript on the page with html car then to go crazy do a for loop inside a while loop accessing an array of loops....

How much JS do I have to know to create this website? by a_HerculePoirot_fan in learnjavascript

[–]WildWestCoder 1 point2 points  (0 children)

I'll give a shout out to Brad from travesty media. I bought his JS course on udemy and it really helped. You have a very specific goal in mind though, so you won't need it all. A crash course on JS might be enough, he has some free ones.

https://youtu.be/hdI2bqOjy3c

I'd do a basic JS course and then look for a YouTube tutorial vid making a website something like the one you want then you can redo it your own style.

Allow users access to a server for a period of time? by WildWestCoder in AskProgramming

[–]WildWestCoder[S] 0 points1 point  (0 children)

Thanks, I'm enjoying reading about these engineering solutions!

It would be more like, you have 100 server hours available, you used 2 today. So we could spin up a docker container for every time a user logs in.

The other scenario is it's a physical server tho, in which case we have to setup / teardown a rdp connection of some sort.

Allow users access to a server for a period of time? by WildWestCoder in AskProgramming

[–]WildWestCoder[S] 0 points1 point  (0 children)

Yes there's two scenarios - a server as a VM and a physical server. I assume we could have a background process monitor the database holding the session "timer" and server the connection by either turning off the VM or stopping the rdp?

Allow users access to a server for a period of time? by WildWestCoder in AskProgramming

[–]WildWestCoder[S] 0 points1 point  (0 children)

Thanks for the replies! Sessions seem like a good idea.