• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:34
CEST 19:34
KST 02:34
  • 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
[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists16[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0
Community News
2026 GSL Season 1 Qualifiers14Maestros of the Game 2 announced82026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid24
StarCraft 2
General
2026 GSL Tour plans announced Maestros of the Game 2 announced Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 522 Flip My Base The PondCast: SC2 News & Results Mutation # 521 Memorable Boss Mutation # 520 Moving Fees
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ ASL21 Strategy, Pimpest Plays Discussions Pros React To: ASL S21, Ro.16 Group C Data needed
Tourneys
[ASL21] Ro16 Group C [ASL21] Ro16 Group D [Megathread] Daily Proleagues [ASL21] Ro16 Group B
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Diablo IV Dawn of War IV Starcraft Tabletop Miniature Game General RTS Discussion Thread
Dota 2
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1597 users

The Big Programming Thread - Page 322

Forum Index > General Forum
Post a Reply
Prev 1 320 321 322 323 324 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.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
July 10 2013 12:25 GMT
#6421
On July 10 2013 21:04 darkness wrote:
I've been wondering why software uses Windows Registry. As far as I know, the same can be done with a simple .conf file, and it's even portable, while Windows Registry needs to be manually exported to the new computer. Maybe there's something I'm missing as a detail?

Edit: Maybe users are that dumb that developers decide to hide config within the registry so that config files aren't deleted? Or is there another advantage?


There are a few advantages:

1. Multiple users can use the same program and have their own profiles without cluttering the user folders. Just look at the home directory of a linux system, after some time it has tons of .someprogram folders. The registry avoids that, though you can argue about wether it's better or worse.

2. You can connect to the registry remotely, making it easier to maintain software across networks. Not relevant for home users but a significant advantage for businesses.

3. The registry has type safety and can also store binary data, making it easier to store potentially more complicated data and makes validation slightly easier.

4. If you want to move to a new PC or as a business you want to set up a new PC in a cluster and want to copy over all the program settings, the registry has a simple export for a whole branch, so you can just export your software branch and copy it all over in one go. With config files you have to go through each program, figure out where it stores it's config and then copy the config file over manually.

5. It's all in one place. You don't have to search for where the program in question stores it's settings, you can just search through the registry instead of having to google or search through your filesystem, e.g. wether it does store your settings in "My Documents", "App Data" or the program folder.

Of course there are also a ton of disadvantages but personally i think the idea of the registry is good. The problem is just that Microsoft messed up the implementation completely, turning it into a horrible mess.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2013-07-11 12:44:12
July 11 2013 12:43 GMT
#6422
Thanks for comments about Windows Registry. So far, the major advantages should be: network support & individual settings for each user at a specific location (Windows Registry).
Shazzam
Profile Joined March 2011
United Kingdom15 Posts
July 11 2013 18:14 GMT
#6423
So... I don't know if this is strictly a programming problem but I thought I'd ask it here anyway.

I've been employed as a software developer for about 4 years now after leaving university, my job to date has mostly been bug fixing and the occasional part of new development within the boundaries of our old solutions (vb6, C#, ssrs).

Lately I have been moved onto some more blue sky development along side one of our senior developers and I've been more and more discouraged by my inability to remember how to do simple tasks within the language (C#), the most obvious example lately was my senior sitting behind me and having to instruct me on how to use generics I wish I could say this was the only time this has happened but its occurring often and its really effecting my moral and is making me seriously consider my future in the field.

I'm just really not sure what to do about this, is it an experience thing? Every time I try and read programming books / blogs I find myself taking nothing from it because they don't relate to problems I'm trying to solve and I find myself increasingly reliant on Google and stack overflow.

No idea if you guys can help but I just needed to get this out there to people who might know what I'm going through !
My post is up here ^
ragz_gt
Profile Blog Joined April 2012
9172 Posts
July 11 2013 18:30 GMT
#6424
That's normal, don't worry about it. If you spent alot time working in one area, stuff you don't touch everyday will become unfamiliar, I bet you don't remember anything from you difeq classes either. As long as it gets done, who cares if you have to google it first.
I'm not an otaku, I'm a specialist.
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
July 11 2013 20:07 GMT
#6425
On July 12 2013 03:14 Shazzam wrote:
So... I don't know if this is strictly a programming problem but I thought I'd ask it here anyway.

I've been employed as a software developer for about 4 years now after leaving university, my job to date has mostly been bug fixing and the occasional part of new development within the boundaries of our old solutions (vb6, C#, ssrs).

Lately I have been moved onto some more blue sky development along side one of our senior developers and I've been more and more discouraged by my inability to remember how to do simple tasks within the language (C#), the most obvious example lately was my senior sitting behind me and having to instruct me on how to use generics I wish I could say this was the only time this has happened but its occurring often and its really effecting my moral and is making me seriously consider my future in the field.

I'm just really not sure what to do about this, is it an experience thing? Every time I try and read programming books / blogs I find myself taking nothing from it because they don't relate to problems I'm trying to solve and I find myself increasingly reliant on Google and stack overflow.

No idea if you guys can help but I just needed to get this out there to people who might know what I'm going through !

Using google and stackoverflow seems like almost required parts of working as a programmer nowadays, I can't even imagine how troublesome it must have been to work in the field before those were available.

Nothing wrong with using the internet to help you in your job, unless you have insane amounts of experience, you can't know how to do everything. Just read up on it and remember it for the future.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
July 11 2013 20:28 GMT
#6426
No big deal using google. You won't always remember the exact way to do things, or the exact syntax of a certain function call. The high-level abstract ideas are what's most important.
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
July 12 2013 14:10 GMT
#6427
On July 12 2013 03:30 ragz_gt wrote:
That's normal, don't worry about it. If you spent alot time working in one area, stuff you don't touch everyday will become unfamiliar, I bet you don't remember anything from you difeq classes either. As long as it gets done, who cares if you have to google it first.


That may be true but after 4 years you shouldn't need anyone to stand over you and instruct you, you should be able to look up a quick tutorial or look for examples in the source you're working on and figuring it out from there, going back to the idea of data processing skills over data retention, you don't need to memorize things but you shouldn't have any problems knowing roughly what to do and how to find out the rest on your own.

To be honest it sounds like a crappy job, 4 years in and you're not doing anything worthwhile? Find a new company. Change focus perhaps.

This pretty much summarises all the advise you can really get from someone who doesn't work with you or know your situation more intimately:
http://www.codinghorror.com/blog/2013/04/so-you-dont-want-to-be-a-programmer-after-all.html

Got to admit that I would be worried if I needed to relearn with guidance from senior devs after 4 years, then again I'm a software engineer not a developer so maybe things are different and you have different expectations.
Frudgey
Profile Joined September 2012
Canada3367 Posts
Last Edited: 2013-07-12 16:03:55
July 12 2013 16:00 GMT
#6428
Hi so I had (hopefully) a small question:

What is a good way to test if a number is a rational number? I'm trying to figure out how to do this in Python and so far what I have is:

if self.Poly[i] < i and self.Poly[i] > -1 and self.Poly[i] != 0:
GCD = GCD*self.Poly[i].abs #Not relevant to my question

The problem with what I have though, is that if somehow I have a rational number that is greater than one or less than negative one, it won't be detected as a rational number.

Sorry if this is a dumb question. This is my first summer working with Python so I'm still learning the things that I can do with it.

Also if this isn't the place to ask these kinds of questions please let me know.

Thanks!
It is better to die for The Emperor than live for yourself.
tofucake
Profile Blog Joined October 2009
Hyrule19204 Posts
Last Edited: 2013-07-12 16:09:20
July 12 2013 16:04 GMT
#6429
Testing if a number is rational is complicated at the best of times.

What you are doing looks like you're checking a number is -1 < n < i and n != 0 and then multiplying another number by it (guessing "greatest common denominator" here). -1 < n < i and n != 0 isn't a rationality check at all

edit: but of course this is Python so just import math
http://stackoverflow.com/questions/4266741/check-if-a-number-is-rational-in-python
Liquipediaasante sana squash banana
Frudgey
Profile Joined September 2012
Canada3367 Posts
July 12 2013 16:11 GMT
#6430
Oh, I realize that what I'm doing isn't a rationality check at all. I just wanted to know if Python (Specifically in this case Sage) had a simple way to check for rational numbers.

If it's a complicated matter than don't worry about it. I just wanted to know if there existed a method that I wasn't immediately aware of.

It is better to die for The Emperor than live for yourself.
Frigo
Profile Joined August 2009
Hungary1023 Posts
July 12 2013 16:42 GMT
#6431
On July 13 2013 01:00 Frudgey wrote:
Hi so I had (hopefully) a small question:

What is a good way to test if a number is a rational number? I'm trying to figure out how to do this in Python and so far what I have is:

if self.Poly[i] < i and self.Poly[i] > -1 and self.Poly[i] != 0:
GCD = GCD*self.Poly[i].abs #Not relevant to my question

The problem with what I have though, is that if somehow I have a rational number that is greater than one or less than negative one, it won't be detected as a rational number.

Sorry if this is a dumb question. This is my first summer working with Python so I'm still learning the things that I can do with it.

Also if this isn't the place to ask these kinds of questions please let me know.

Thanks!


It is unclear what exactly are you trying to do.

Computers can only explicitly store rational numbers - all integers, floating point numbers, bigints, etc, are by definition rational. Storing irrational numbers would involve storing an infinite non-repeating sequence, which is impossible.

Implicitly, you can have them in the form of a solution to an equation, or more specifically, to a polynomial. Solving them wouldn't work, you would only get an approximation, either because you can only store rational numbers, or because you can not solve them explicitly, only approximate their roots.

So you would definitely need to have a mathematically derived rationality check for such things.
http://www.fimfiction.net/user/Treasure_Chest
aksfjh
Profile Joined November 2010
United States4853 Posts
July 12 2013 16:44 GMT
#6432
Anybody have any advice on learning scripting languages? I know about plenty of tutorials, but I need reinforcing material to practice on. Any ideas?
tofucake
Profile Blog Joined October 2009
Hyrule19204 Posts
July 12 2013 18:31 GMT
#6433
Go script things. When things don't work, figure out why.
Liquipediaasante sana squash banana
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
July 12 2013 18:49 GMT
#6434
There's really not much different from a scripting language to a regular language.

The main part of learning a language is just write lots and lots of code. Some people prefer using all those Euler math problems, some prefer actually writing semi-useful programs. Think of a problem you have and solve it. Or think of a problem that has already been solved (for example, create a file browser), and then reproduce that for yourself.

Programming should be fun, and doesn't have to involve reinforcing material in the form of example questions and assignments. Reinforcing what you learned should be done via you solving a problem, and if the stuff you learned is relevant, applying the learned stuff to do it. If it's learning how lists work, just make yourself use lists, for example.
There is no one like you in the universe.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
July 12 2013 21:56 GMT
#6435
I need help. I went to try and play with changing drawings with pinches in iOS and I ran into what I feel is probably a basic problem with an easy answer.
It says ShipView doesn't have a type because it doesn't see that I declared it in the interface, but if I move the interface then I won't have the protocol's data to use when I need it for the interface >_<

I would be grateful for any help at all. >.>


//ShipView.h

@protocol ShipViewDataSource
- (float) ShipDisplay:(ShipView *)sender; //RedError: Expected ShipView to have a type
@end

@interface ShipView : UIView

@property (nonatomic) CGFloat scale;

-(void) pinch: (UIPinchGestureRecognizer *)gesture;

@property (nonatomic, weak) IBOutlet id <ShipViewDataSource> dataSource;
@end
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Shazzam
Profile Joined March 2011
United Kingdom15 Posts
July 12 2013 23:00 GMT
#6436
On July 12 2013 23:10 adwodon wrote:
Show nested quote +
On July 12 2013 03:30 ragz_gt wrote:
That's normal, don't worry about it. If you spent alot time working in one area, stuff you don't touch everyday will become unfamiliar, I bet you don't remember anything from you difeq classes either. As long as it gets done, who cares if you have to google it first.


That may be true but after 4 years you shouldn't need anyone to stand over you and instruct you, you should be able to look up a quick tutorial or look for examples in the source you're working on and figuring it out from there, going back to the idea of data processing skills over data retention, you don't need to memorize things but you shouldn't have any problems knowing roughly what to do and how to find out the rest on your own.

To be honest it sounds like a crappy job, 4 years in and you're not doing anything worthwhile? Find a new company. Change focus perhaps.

This pretty much summarises all the advise you can really get from someone who doesn't work with you or know your situation more intimately:
http://www.codinghorror.com/blog/2013/04/so-you-dont-want-to-be-a-programmer-after-all.html

Got to admit that I would be worried if I needed to relearn with guidance from senior devs after 4 years, then again I'm a software engineer not a developer so maybe things are different and you have different expectations.


Gotta say thanks to everyone that posted, and that link was a good read
My post is up here ^
aksfjh
Profile Joined November 2010
United States4853 Posts
Last Edited: 2013-07-13 00:02:10
July 13 2013 00:01 GMT
#6437
On July 13 2013 03:49 Blisse wrote:
There's really not much different from a scripting language to a regular language.

The main part of learning a language is just write lots and lots of code. Some people prefer using all those Euler math problems, some prefer actually writing semi-useful programs. Think of a problem you have and solve it. Or think of a problem that has already been solved (for example, create a file browser), and then reproduce that for yourself.

Programming should be fun, and doesn't have to involve reinforcing material in the form of example questions and assignments. Reinforcing what you learned should be done via you solving a problem, and if the stuff you learned is relevant, applying the learned stuff to do it. If it's learning how lists work, just make yourself use lists, for example.

Well yea. I reinforced C++ and Java through online programming competitions for fun. Scripting those doesn't seem as beneficial though, since you're taking an abstract language and applying it to (mostly) problems of efficiency. Maybe I'm just being too picky though. Thank you for your input though.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
July 14 2013 12:34 GMT
#6438
Are use-cases, statecharts, data-flow diagrams, FSM (Finite State Machines) and petri nets indeed used in professional Software Engineering or is this something universities try to teach?
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
July 14 2013 12:46 GMT
#6439
use cases and diagrams yes (based on my internship). the others idk, but it doesnt hurt learning them! haha
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
Zocat
Profile Joined April 2010
Germany2229 Posts
Last Edited: 2013-07-14 13:30:37
July 14 2013 13:29 GMT
#6440
Yes to all (dont know about petri nets, but I'd say some use those as well).
FSAs are very good to model a lot of problems (i.e. something simple as UI transitions)

Overall it really depends on what you do. It's similar to formal verification (where you mathematically prove that an algorithm is correct) - it's useful to have access to it, if you really need it. But it comes at a cost so you often (can) disregard it.
But the added robustness those methods offer is sometimes very useful.

If you program a game or some other random software and it crashes - who cares.
Now imagine if you program the control program of a nuclear power plant and it ends up in a garbage state, doesnt react to input commands anymore and everything blows up (or has to be shut down = massive costs). Or if your hospital software crashes and people die because of that. Or your stock market software fucks up and you lose billions.
In those cases it's worth the additional cost.
Prev 1 320 321 322 323 324 1032 Next
Please log in or register to reply.
Live Events Refresh
OSC
15:00
King of the Hill #245
SteadfastSC181
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 181
UpATreeSC 149
BRAT_OK 60
StarCraft: Brood War
Mini 595
Soma 276
firebathero 195
Soulkey 152
Hyun 55
Aegong 50
ProTech42
Sexy 24
HiyA 22
Barracks 22
[ Show more ]
Rock 18
Terrorterran 17
Shine 13
GoRush 10
Dota 2
Gorgc6267
qojqva2011
420jenkins0
Counter-Strike
fl0m2243
byalli1016
ceh9348
Super Smash Bros
Mew2King66
Heroes of the Storm
MindelVK9
Other Games
Grubby3073
FrodaN1439
B2W.Neo731
ArmadaUGS347
RotterdaM250
KnowMe169
QueenE127
crisheroes105
Sick65
Trikslyr65
C9.Mang062
Organizations
Dota 2
PGL Dota 2 - Main Stream14285
Other Games
BasetradeTV272
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 21 non-featured ]
StarCraft 2
• StrangeGG 75
• Dystopia_ 2
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Azhi_Dahaki26
• HerbMon 20
• 80smullet 11
• Michael_bg 6
• FirePhoenix4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV383
Counter-Strike
• Nemesis1494
Other Games
• imaqtpie486
• Shiphtur206
Upcoming Events
Replay Cast
6h 27m
Escore
16h 27m
RSL Revival
23h 27m
Replay Cast
1d 6h
WardiTV Map Contest Tou…
1d 17h
Universe Titan Cup
1d 17h
Rogue vs Percival
Ladder Legends
1d 21h
uThermal 2v2 Circuit
1d 21h
BSL
2 days
Sparkling Tuna Cup
2 days
[ Show More ]
WardiTV Map Contest Tou…
2 days
Ladder Legends
2 days
BSL
3 days
CranKy Ducklings
3 days
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Soma vs hero
Monday Night Weeklies
3 days
Replay Cast
4 days
Replay Cast
4 days
Afreeca Starleague
4 days
Leta vs YSC
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-04-22
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
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
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.