• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:04
CET 17:04
KST 01:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners8Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! 5.0.15 Patch Balance Hotfix (2025-10-8) Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
$5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1696 users

The Big Programming Thread - Page 917

Forum Index > General Forum
Post a Reply
Prev 1 915 916 917 918 919 1032 Next
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
Profile Joined November 2017
9 Posts
Last Edited: 2017-11-11 03:25:13
November 11 2017 03:23 GMT
#18321
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.
Manit0u
Profile Blog Joined August 2004
Poland17420 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.
Time is precious. Waste it wisely.
Thaniri
Profile Blog Joined March 2011
1264 Posts
November 11 2017 05:18 GMT
#18323
Programmer2 I have some advice that I wish I followed when I was beginning to learn programming.

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
Profile Blog Joined May 2003
24492 Posts
November 11 2017 16:20 GMT
#18324
Thoughts on prolog?

I am starting to have to do projects in it soon. It's a lot different than any other language I have used.
Acrofales
Profile Joined August 2010
Spain18109 Posts
November 11 2017 17:19 GMT
#18325
What do you mean thoughts? I love it. But within its rather small niche of applications (logical deductions). It takes some getting used to.

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
Profile Joined September 2010
Austria831 Posts
November 12 2017 12:50 GMT
#18326
I'm suprised that you're surprised. I've had prolog at uni too and feel like that's exactly the right place to get in contact with it.
waffelz
Profile Blog Joined June 2012
Germany711 Posts
November 13 2017 02:15 GMT
#18327
Prolog is very commonly used as part of an introduction to alternative programming languages (or called something along those lines). It might be niche but when I learned stuff that I would most likely never use again in CS, most of the time the different approach to problems it forced on me was well worth it.
RIP "The big travis CS degree thread", taken from us too soon | Honourable forum princess, defended by Rebs-approved white knights
dekibeki
Profile Joined June 2011
Australia34 Posts
November 13 2017 02:56 GMT
#18328
I loved prolog,

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
Profile Blog Joined August 2004
Poland17420 Posts
November 14 2017 11:08 GMT
#18329
[image loading]

It seems that "We'll contact you soon" takes on a completely new meaning in this day and age...
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4733 Posts
November 14 2017 13:59 GMT
#18330
I hope this is some kind of joke.
Pathetic Greta hater.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
November 14 2017 18:27 GMT
#18331
seconded

hopefully that is a lawsuit they couldn't win. i'd expect a countersuit for time and costs would win, though.
IyMoon
Profile Joined April 2016
United States1249 Posts
November 14 2017 19:05 GMT
#18332
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
Something witty
Manit0u
Profile Blog Joined August 2004
Poland17420 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).
Time is precious. Waste it wisely.
WolfintheSheep
Profile Joined June 2011
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.
Average means I'm better than half of you.
TMG26
Profile Joined July 2012
Portugal2017 Posts
Last Edited: 2017-11-14 23:31:34
November 14 2017 23:29 GMT
#18335
What? You don't have experience in erlang?
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.
Supporter of the situational Blink Dagger on Storm.
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
November 15 2017 02:49 GMT
#18336
This letter isn't mine

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
Time is precious. Waste it wisely.
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
November 15 2017 12:21 GMT
#18337
I have peeked at one of our front-end developer's screen today:


const sth = val === null
? ''
: val === ''
? ''
: isNaN(val)
? val
: parseFloat(val).toFixed(2)


My eyes bled...
Time is precious. Waste it wisely.
bo1b
Profile Blog Joined August 2012
Australia12814 Posts
November 15 2017 13:40 GMT
#18338
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.
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
Last Edited: 2017-11-15 15:12:20
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.
Time is precious. Waste it wisely.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
November 15 2017 16:06 GMT
#18340
Let's face it, if they're sending out invoices like that it's probably a sham company.
Average means I'm better than half of you.
Prev 1 915 916 917 918 919 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 572
BRAT_OK 90
Codebar 41
Livibee 31
StarCraft: Brood War
Jaedong 1495
GuemChi 1465
EffOrt 1325
Stork 698
Light 607
Larva 417
Snow 411
Mini 356
Rush 223
Barracks 222
[ Show more ]
Leta 119
hero 112
sSak 111
JYJ47
Aegong 37
Backho 34
sorry 29
zelot 26
soO 23
Terrorterran 16
HiyA 15
scan(afreeca) 12
Bale 9
Dota 2
qojqva3422
420jenkins258
syndereN218
Other Games
singsing2199
Sick375
DeMusliM352
crisheroes342
Lowko284
Hui .257
Liquid`VortiX150
oskar109
KnowMe96
XcaliburYe58
QueenE29
Trikslyr17
Organizations
Counter-Strike
PGL201
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2491
• WagamamaTV466
League of Legends
• Nemesis4280
• Jankos3067
• TFBlade809
Upcoming Events
LAN Event
1h 56m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
Korean StarCraft League
10h 56m
CranKy Ducklings
17h 56m
IPSL
1d 1h
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
1d 1h
BSL 21
1d 3h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 6h
Sparkling Tuna Cup
1d 17h
WardiTV Korean Royale
1d 19h
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
[ Show More ]
LAN Event
2 days
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.