• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:36
CET 13:36
KST 21:36
  • 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
Team Liquid Map Contest #22 - Presented by Monster Energy5ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13
Community News
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool31Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains18
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Potential Updates Coming to the SC2 CN Server Weekly Cups (March 2-8): ByuN overcomes PvT block Weekly Cups (August 25-31): Clem's Last Straw? Weekly Cups (March 9-15): herO, Clem, ByuN win
Tourneys
World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea JaeDong's form before ASL BSL Season 22
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours Small VOD Thread 2.0 IPSL Spring 2026 is here!
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread Mexico's Drug War
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10678 users

The Big Programming Thread - Page 972

Forum Index > General Forum
Post a Reply
Prev 1 970 971 972 973 974 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.
Manit0u
Profile Blog Joined August 2004
Poland17695 Posts
Last Edited: 2018-09-15 00:40:24
September 15 2018 00:40 GMT
#19421
Purely a design question. Imagine you have a single system (console application for example). You have multiple objects in there but would like to keep them updated regularly based on a global timer (think heartbeat). Do you think that a pub-sub could do that? Then you'd just need one class that would broadcast a heartbeat event at regular intervals.
Time is precious. Waste it wisely.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
September 15 2018 13:39 GMT
#19422
On September 15 2018 09:40 Manit0u wrote:
Purely a design question. Imagine you have a single system (console application for example). You have multiple objects in there but would like to keep them updated regularly based on a global timer (think heartbeat). Do you think that a pub-sub could do that? Then you'd just need one class that would broadcast a heartbeat event at regular intervals.


Depends a bit on what type of pub/sub system you're using, but generally yes. Some pubsub systems have spesific implementations to do exactly this.
Manit0u
Profile Blog Joined August 2004
Poland17695 Posts
September 15 2018 19:18 GMT
#19423
I was thinking about creating a not-so-simple (but still relatively simple) old school text adventure game. I am now pondering different ways of implementing a kind of "world heartbeat" to make it seem alive (NPC's moving about, corpses disappearing etc.) and it seems wasteful for every location to keep internal track of heartbeats if I can have it in just one place.

And I don't really have a specific plot or anything in mind. I am more interested in creating a basic platform for creating text adventure games with quest and combat systems etc.
Time is precious. Waste it wisely.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
September 15 2018 19:55 GMT
#19424
On September 01 2018 05:59 travis wrote:
so, my buddy is in the air force, he is doing a CS program online through Regis University.
He sent me his homework assignment. It is due Sunday, he just looked at it. His class started on monday.

Quick note: he has no experience with C, and no experience with automata
Here is the assignment (pdf): https://ufile.io/ituhz


Is this not completely absurd? I saw this and I started laughing and told him he's screwed and his teacher is insane. But maybe one of you has a different opinion? But just to go over it, they expect him to understand what a DFA is, how to make the DFA correctly, and how to do literally all those things in C. All in well less than a week.

Curious about opinions on that.

The assignment says youre not allowed to use any predefined structures like linked lists and that you should implement your own.

If the students are not on a level where that would be trivial, then this assignment looks way too difficult.

If they are, then it's just tedious.

I also hope they just took DFA's as an arbitrary subject for an assignment and not because they are teaching DFA's along with programming in C. Because those two things have nothing to do with each other.
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
September 16 2018 01:17 GMT
#19425
I know it may sound like a dumb question but is neurocomputing a CS or EE heavy course?
Age of Mythology forever!
phar
Profile Joined August 2011
United States1080 Posts
September 16 2018 23:24 GMT
#19426
On September 16 2018 10:17 mantequilla wrote:
I know it may sound like a dumb question but is neurocomputing a CS or EE heavy course?


Probably depends on the specific course. I would hazard a guess that it's not much to do with EE. I would guess it's quite a bit of linear algebra.

But, look at the curriculum to get a better idea.
Who after all is today speaking about the destruction of the Armenians?
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2018-09-16 23:31:43
September 16 2018 23:30 GMT
#19427
On September 14 2018 11:52 Thaniri wrote:

Coming from Java this seems pointless when my compiler should know that I only have one Card struct. It's not like I rewrote the math package and need to specify that I want to use MY math package instead of the default math package.


Bear in mind where golang is coming from. For sufficiently large codebases, ambiguity is the fucking devil, so making an explicit requirement about using fully qualified packages isn't outrageous in that context.

It may seem obvious to you now which Card is which, but what about some random dev 4 years from now who had to go cave diving into your old code? The more pointers they have about what exactly you're talking about, the easier of a time they're gonna have.

Google C++ also generally prohibits the "using" keyword, which is the same-ish idea.
Who after all is today speaking about the destruction of the Armenians?
Qwyn
Profile Blog Joined December 2010
United States2779 Posts
September 17 2018 06:08 GMT
#19428
On September 01 2018 05:59 travis wrote:
so, my buddy is in the air force, he is doing a CS program online through Regis University.
He sent me his homework assignment. It is due Sunday, he just looked at it. His class started on monday.

Quick note: he has no experience with C, and no experience with automata
Here is the assignment (pdf): https://ufile.io/ituhz


Is this not completely absurd? I saw this and I started laughing and told him he's screwed and his teacher is insane. But maybe one of you has a different opinion? But just to go over it, they expect him to understand what a DFA is, how to make the DFA correctly, and how to do literally all those things in C. All in well less than a week.

Curious about opinions on that.


That's kind of insane.

As tofu said, generally a data structures/algorithms class is a prerequisite for 300-400 level classes on formal language theory. Most schools will begin teaching you C/C++ around the same time you take a "real" class on algorithms (or operating systems).

If he's only in his second year, are you sure he signed up for the correct class? This seems like a bit too much to ask for a second year student who has never been exposed to C/C++ before. IE, my OS class got us warmed up to C by building a shell.

The DFA part of this seems perfectly reasonable, but if you're just starting to learn about C you're gonna be freaking out about pointers and malloc/free and all that sort of stuff.

However, if this really is a higher level class and your buddy bit off more than he can chew (and as tofu said)...

This does seem fairly reasonable for any class on formal language theory. For a senior student, that it is required to be written in C is more tedious than anything else.

Since it has been a couple weeks, how did his code end up looking? What did he learn?
"Think of the hysteria following the realization that they consciously consume babies and raise the dead people from their graves" - N0
shz
Profile Blog Joined October 2010
Germany2687 Posts
September 18 2018 18:16 GMT
#19429
[image loading]

Productive day @ work...
Liquipedia
tofucake
Profile Blog Joined October 2009
Hyrule19196 Posts
September 18 2018 22:14 GMT
#19430
wait....hero sidebar?

aren't those mutually exclusive?
Liquipediaasante sana squash banana
shz
Profile Blog Joined October 2010
Germany2687 Posts
September 18 2018 22:16 GMT
#19431
Haha, the hero has a sidebar (not for navigation, but information).
Liquipedia
Manit0u
Profile Blog Joined August 2004
Poland17695 Posts
September 19 2018 00:45 GMT
#19432
On September 19 2018 03:16 shz wrote:
[image loading]

Productive day @ work...


https://chris.beams.io/posts/git-commit/

Required reading
Time is precious. Waste it wisely.
Qwyn
Profile Blog Joined December 2010
United States2779 Posts
September 19 2018 02:41 GMT
#19433
On September 19 2018 09:45 Manit0u wrote:
Show nested quote +
On September 19 2018 03:16 shz wrote:
[image loading]

Productive day @ work...


https://chris.beams.io/posts/git-commit/

Required reading


Great read, thanks for sharing! And shz I can practically taste the frustration from those commits.
"Think of the hysteria following the realization that they consciously consume babies and raise the dead people from their graves" - N0
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
September 19 2018 15:44 GMT
#19434
Anyone else practice clean git history?

Essentially you use git tools (interactive rebase, etc.) to rewrite your private history before changes are pulled into upstream so that the commit log is readable, understandable, and doesn't contain broken or extraneous commits.

It's pretty useful for several reasons and helps avoid stuff like:

- Make the change
- Fix the change
- Other work
- Fix the change fix
- Spelling errors in other work
you gotta dance
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
September 19 2018 17:41 GMT
#19435
That sounds like a good thing to do I should do it
TRUEESPORTS || your days as a respected member of team liquid are over
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
September 19 2018 17:43 GMT
#19436
No...I mean from now on: yes
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
September 20 2018 03:02 GMT
#19437
Isn't there something like git squash to reduce a series of commits to one commit when merging to another branch?
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17695 Posts
Last Edited: 2018-09-20 09:57:39
September 20 2018 09:39 GMT
#19438

git fetch -p # sync with remote heads, prune deleted branches
git rebase [origin/master] -i # rebase your work interactively (allows you to squash commits)


This is something I'm using quite often. Another useful thing is cherry-pick (when you want to commit stuff separately as it doesn't make sense to have them as a part of one commit).

You only have to remember that after rebase you need to push --force to your branch.

Edit:

Some other tips:
Do not, ever, add compressed files to your repository (some .zip or whatever) since Git cannot track those well and your repository will grow to several GB in no time.

If you have a very big repo (4GB+) you won't be able to clone it via https (might be an issue on systems where you don't get ssh access to the repo).

It's useful to clean up your repo from time to time. Usually this involves commands like git gc --aggressive --prune=now and git repack -ad.

If you do end up with very large repo due to too many binary files, you can always clean it up:
https://github.com/18F/C2/issues/439
https://gist.github.com/dustinschultz/3289951
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
September 20 2018 09:45 GMT
#19439
Also when trying to fix one and the same problem over and over
 git commit --amend 
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17695 Posts
September 21 2018 11:41 GMT
#19440
https://blog.phusion.nl/2018/09/18/migrating-passenger-from-cxx-to-go/

Interesting read on how and why some projects are getting out of C++.
Time is precious. Waste it wisely.
Prev 1 970 971 972 973 974 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 3h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Rex 113
StarCraft: Brood War
Britney 41822
Sea 14303
Calm 6570
EffOrt 3277
Hyuk 2500
Horang2 1388
Jaedong 1205
BeSt 654
Flash 459
actioN 434
[ Show more ]
firebathero 394
Larva 309
Mini 232
Mind 220
Last 215
Light 213
Soma 203
Barracks 99
Rush 91
Aegong 81
Hm[arnc] 76
hero 61
Pusan 57
ToSsGirL 43
Sea.KH 39
Yoon 29
GoRush 23
zelot 22
Free 22
Terrorterran 20
sorry 20
IntoTheRainbow 19
Noble 16
910 16
Nal_rA 14
SilentControl 9
ivOry 9
Icarus 5
eros_byul 1
Dota 2
Gorgc3540
XaKoH 625
XcaliburYe230
BananaSlamJamma45
Counter-Strike
fl0m2706
Fnx 1581
x6flipin479
edward80
oskar37
Heroes of the Storm
MindelVK20
Other Games
singsing2583
B2W.Neo811
DeMusliM439
Fuzer 183
Hui .86
Organizations
Dota 2
PGL Dota 2 - Main Stream116
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH271
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1992
Upcoming Events
LAN Event
3h 24m
BSL
7h 24m
Replay Cast
20h 24m
Afreeca Starleague
21h 24m
Sharp vs Scan
Rain vs Mong
Wardi Open
23h 24m
Monday Night Weeklies
1d 4h
Sparkling Tuna Cup
1d 21h
Afreeca Starleague
1d 21h
Soulkey vs Ample
JyJ vs sSak
Replay Cast
2 days
Afreeca Starleague
2 days
hero vs YSC
Larva vs Shine
[ Show More ]
Kung Fu Cup
2 days
Replay Cast
3 days
KCM Race Survival
3 days
The PondCast
3 days
WardiTV Team League
3 days
Replay Cast
4 days
WardiTV Team League
4 days
RSL Revival
5 days
Cure vs Zoun
WardiTV Team League
5 days
Platinum Heroes Events
6 days
BSL
6 days
RSL Revival
6 days
ByuN vs Maru
WardiTV Team League
6 days
Liquipedia Results

Completed

Jeongseon Sooper Cup
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
CSL 2026 SPRING (S20)
CSL Season 20: Qualifier 1
Acropolis #4
IPSL Spring 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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 © 2026 TLnet. All Rights Reserved.