For example:
I started the program and the button order is this:
button1 button2
button3 button4
Then I close it and run it again and the order changed to this:
button4 button1
button2 button3
so the order changes each time you run the program.
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Programmer2
9 Posts
November 11 2017 03:23 GMT
#18321
For example: I started the program and the button order is this: button1 button2 button3 button4 Then I close it and run it again and the order changed to this: button4 button1 button2 button3 so the order changes each time you run the program. | ||
Manit0u
Poland17202 Posts
November 11 2017 04:22 GMT
#18322
On November 11 2017 12:23 Programmer2 wrote: How do you make it so the button order is randomized each time you start the program? using visual studio and C# For example: I started the program and the button order is this: button1 button2 button3 button4 Then I close it and run it again and the order changed to this: button4 button1 button2 button3 so the order changes each time you run the program. https://stackoverflow.com/questions/273313/randomize-a-listt https://stackoverflow.com/questions/108819/best-way-to-randomize-an-array-with-net Also, you should really work on naming stuff. number1, number2, button1, button2 don't make for good variable names and they have no real semantic context. Think about you leaving your program to do something else and then returning to it after a year. Will you be able to understand what's going on at a glance? It's way better to name things accordingly: button_cancel, button_ok, button_back etc. | ||
Thaniri
1264 Posts
November 11 2017 05:18 GMT
#18323
Given that it seems like you're doing procedural style programming, don't stress too much. You will run into limitations doing code design like this, it's just the nature of the game. Make the game as best (and simple!) as you can under a certain deadline. Maybe a month or so. Then when you're bored/tired/frustrated enough, save the program somewhere safe and find a tutorial online for programming. After the next couple of months of doing some boring and unrewarding online course try to make a new project with the new things you've learned. Repeat this process ad infinitum. You'll find that even simple code design concepts like object oriented design will expand your ability to think about and tackle problems by 1000%. I think that people learn best when they're thrown into the deep end of the swimming pool and told to just survive. Then pulled out of the deep end and thrown into an even scarier pool. | ||
Deleted User 3420
24492 Posts
November 11 2017 16:20 GMT
#18324
I am starting to have to do projects in it soon. It's a lot different than any other language I have used. | ||
Acrofales
Spain17852 Posts
November 11 2017 17:19 GMT
#18325
Is this part of the standard curriculum at your uni? I'm a bit surprised! It's pretty niche with about 90% of its applications in AI,and the other 10% in weird optimization problems. Not something most people need to know. | ||
Khalum
Austria831 Posts
November 12 2017 12:50 GMT
#18326
| ||
waffelz
Germany711 Posts
November 13 2017 02:15 GMT
#18327
| ||
dekibeki
Australia34 Posts
November 13 2017 02:56 GMT
#18328
We had to write a prolog program to solve some magic square (all columns, rows and diags sum to the same value). I ran into a problem with the addition not being as general as most functions ( you could only go forwards). So I wrote a small C program to generate a list of all 4 single digit combinations and then ran prolog on that. Got full marks for speed and no marks for whatever they called using the language as intended. Fond memories | ||
Manit0u
Poland17202 Posts
November 14 2017 11:08 GMT
#18329
![]() It seems that "We'll contact you soon" takes on a completely new meaning in this day and age... | ||
Silvanel
Poland4692 Posts
November 14 2017 13:59 GMT
#18330
| ||
Deleted User 3420
24492 Posts
November 14 2017 18:27 GMT
#18331
hopefully that is a lawsuit they couldn't win. i'd expect a countersuit for time and costs would win, though. | ||
IyMoon
United States1249 Posts
November 14 2017 19:05 GMT
#18332
What would you guys recommend for interview prep? I've done one working website for a company in the time I have worked at my current job, and work on other side projects with friends but I really have no idea what to expect from interviews seeing how the job I have now had a really really tiny tech interview portion and focused more on culture fit. My main coding skills are in rails so is there something else I should really dive into to learn before I go out looking for work? Thanks for any advice, I know this isn't really a specific code question but I figured this would be the best place to ask for advice | ||
Manit0u
Poland17202 Posts
November 14 2017 19:13 GMT
#18333
On November 15 2017 04:05 IyMoon wrote: So question for everyone here. Right now I've worked in fin tech for about a year and a half (first job) and really hate it. I might be moving cross country to follow my GF who is in the process of negotiating salary on a new job and if I move I really want to get back into web dev work (I learned coding through one of those web dev bootcamps) What would you guys recommend for interview prep? I've done one working website for a company in the time I have worked at my current job, and work on other side projects with friends but I really have no idea what to expect from interviews seeing how the job I have now had a really really tiny tech interview portion and focused more on culture fit. My main coding skills are in rails so is there something else I should really dive into to learn before I go out looking for work? Thanks for any advice, I know this isn't really a specific code question but I figured this would be the best place to ask for advice Rails is amazing but people rarely use it for enterprise or almost-enterprise level apps. You could get some knowledge in that area by learning at least the basics of some more "enterprisy" framework (PHP Symfony or Java Spring come to mind). Also, APIs. RESTful APIs are everywhere now. And React and other bullshit JS frameworks for front-end (screw front-end, just focus on the back-end). | ||
WolfintheSheep
Canada14127 Posts
November 14 2017 20:17 GMT
#18334
On November 14 2017 20:08 Manit0u wrote: It seems that "We'll contact you soon" takes on a completely new meaning in this day and age... Send them back a counter-invoice. And make sure to expense travel costs and time. | ||
TMG26
Portugal2017 Posts
November 14 2017 23:29 GMT
#18335
That's an 80s language that is getting popular now because people finally understood state is evil, specially in the high concurrent and low processing environments erlang was designed for. FP rocks. Try Elixir if you like ruby. It's literally Erlang with ruby-like syntax. It runs on the BEAM VM like erlang and has full interoperability. Just remember, it only looks like ruby. | ||
Manit0u
Poland17202 Posts
November 15 2017 02:49 GMT
#18336
![]() And instead of Erlang or Elixir we're currently leaning towards Crystal when we need performance: http://www.akitaonrails.com/2016/05/31/flirting-with-crystal-a-rubyist-perspective | ||
Manit0u
Poland17202 Posts
November 15 2017 12:21 GMT
#18337
My eyes bled... | ||
bo1b
Australia12814 Posts
November 15 2017 13:40 GMT
#18338
| ||
Manit0u
Poland17202 Posts
November 15 2017 15:12 GMT
#18339
On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang. Atlassian maybe? Although from what I hear they're switching all of their architecture to Java now. | ||
WolfintheSheep
Canada14127 Posts
November 15 2017 16:06 GMT
#18340
| ||
| ||
![]() StarCraft 2 StarCraft: Brood War Dota 2 League of Legends Counter-Strike Super Smash Bros Heroes of the Storm Other Games Organizations
StarCraft 2 • Berry_CruncH284 StarCraft: Brood War• practicex ![]() • Light_VIP ![]() • AfreecaTV YouTube • intothetv ![]() • Kozan • IndyKCrew ![]() • LaughNgamezSOOP • Migwel ![]() • sooper7s League of Legends |
Wardi Open
Monday Night Weeklies
PiGosaur Monday
Code For Giants Cup
HupCup
Tenacious Turtle Tussle
The PondCast
SOOP
Dark vs MaxPax
PiG Sty Festival
Serral vs MaxPax
ByuN vs Clem
PiG Sty Festival
herO vs Zoun
Classic vs SHIN
[ Show More ] [BSL 2025] Weekly
PiG Sty Festival
Sparkling Tuna Cup
|
|