• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:11
CEST 11:11
KST 18:11
  • 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 Finalists14[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced52026 GSL Tour plans announced14Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid23
StarCraft 2
General
MaNa leaves Team Liquid Maestros of the Game 2 announced 2026 GSL Tour plans announced Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Team Liquid Map Contest #22 - The Finalists
Tourneys
GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament 2026 GSL Season 1 Qualifiers 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] Ro16 Preview Pt2: All Star Data needed ASL21 Strategy, Pimpest Plays Discussions BGH Auto Balance -> http://bghmmr.eu/ RepMastered™: replay sharing and analyzer site
Tourneys
[ASL21] Ro16 Group D [ASL21] Ro16 Group C [ASL21] Ro16 Group B [Megathread] Daily Proleagues
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
Dawn of War IV Starcraft Tabletop Miniature Game Nintendo Switch Thread General RTS Discussion Thread Battle Aces/David Kim RTS Megathread
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 Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
Formula 1 Discussion 2024 - 2026 Football Thread McBoner: A hockey love story 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: 1135 users

The Big Programming Thread - Page 623

Forum Index > General Forum
Post a Reply
Prev 1 621 622 623 624 625 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.
meatpudding
Profile Joined March 2011
Australia520 Posts
April 26 2015 06:48 GMT
#12441
I'm starting a new graphics app, any suggestions on where to start?

I'm going for cross-platform compatibility, so it will be using OpenGL. I'm comfortable using native code, but a windowing library might be nice. I have been using SDL which hasn't quite lived up to my expectations.

Be excellent to each other.
fmod
Profile Blog Joined November 2013
Cayman Islands330 Posts
April 26 2015 13:14 GMT
#12442
On April 26 2015 15:48 meatpudding wrote:
I'm starting a new graphics app, any suggestions on where to start?

I'm going for cross-platform compatibility, so it will be using OpenGL. I'm comfortable using native code, but a windowing library might be nice. I have been using SDL which hasn't quite lived up to my expectations.


I recommend doing it yourself, if you don't want third party library which has tons of features you don't need. Here are some links from the opengl wiki.
https://www.opengl.org/wiki/Creating_an_OpenGL_Context_(WGL)
https://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX). Note these tutorials are for 3.0 which isn't the latest version but it should be very obvious how to make them work for higher gl versions. For the extensions I personally use this: https://bitbucket.org/alfonse/glloadgen/wiki/Home. Just tell it which opengl version you want and it generates the required header and implementation.
I don't particularly like you.
iaretehnoob
Profile Joined June 2004
Sweden741 Posts
April 26 2015 14:03 GMT
#12443
GLFW is good for (cross-platform) window handling and at least basic input and timing.

Get a library for texture loading. Maybe stb_image.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
April 27 2015 16:40 GMT
#12444
Hey guys.

I currently have 2 intership offers and I don't know what to choose.

Company A: a small company of about 3 programmers and 2 front end developers. Having reasonable ok clients like Royal Dutch Shell and universities.
Company B: an huge company. If I choose them I most likely be working on renewing their code base from COBAL to C#, Luckly the chances are low I will ever work with COBAL. Also I have to choose to work in with only a handful devolopers on a side project of theirs.

The people at company A are people where I can mesh with very well, have similair intrestest and have similair preferences.
At company B so far if have seen most people are relatively old and experainced.

I wont be getting any money at company B, currently talking to company A.

Any tips on what I should pick?
The harder it becomes, the more you should focus on the basics.
Manit0u
Profile Blog Joined August 2004
Poland17730 Posts
Last Edited: 2015-04-27 17:21:10
April 27 2015 17:19 GMT
#12445
On April 28 2015 01:40 sabas123 wrote:
Hey guys.

I currently have 2 intership offers and I don't know what to choose.

Company A: a small company of about 3 programmers and 2 front end developers. Having reasonable ok clients like Royal Dutch Shell and universities.
Company B: an huge company. If I choose them I most likely be working on renewing their code base from COBAL to C#, Luckly the chances are low I will ever work with COBAL. Also I have to choose to work in with only a handful devolopers on a side project of theirs.

The people at company A are people where I can mesh with very well, have similair intrestest and have similair preferences.
At company B so far if have seen most people are relatively old and experainced.

I wont be getting any money at company B, currently talking to company A.

Any tips on what I should pick?


So far I've had better work relations and learned more working for smaller companies. Big companies usually care a lot less about their interns (especially those that work on some small side projects that are of little immediate value to the company). It can also be really painful if some of the employees are spread across different cities/countries/continents, makes communication a lot harder (and sometimes leads to misunderstandings which turn into huge frustrations).

In any way, it's always better to choose a workplace where you'll be doing something you like. If, for example, company A develops all/most of its software in Ruby and you like that, and company B wants you to work in COBOL and you don't like it then there's no point in even trying to get into company B. That's how I see it, the decision is up to you.
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18266 Posts
April 27 2015 17:43 GMT
#12446
The way you talk about them it sounds like you already know where you want to go.
Ben...
Profile Joined January 2011
Canada3485 Posts
April 27 2015 18:18 GMT
#12447
On April 26 2015 23:03 iaretehnoob wrote:
GLFW is good for (cross-platform) window handling and at least basic input and timing.

Get a library for texture loading. Maybe stb_image.

Yeah GLFW is the way to go. It's fairly simple to use and it works great.

And yes, get something separate for texture loading and handling. Doing that yourself is a huge pain to deal with.
"Cliiiiiiiiiiiiiiiiide" -Tastosis
meatpudding
Profile Joined March 2011
Australia520 Posts
April 28 2015 00:07 GMT
#12448
Ok, looks like GLFW has the most support. I'll take a look and see how it goes.
Be excellent to each other.
phar
Profile Joined August 2011
United States1080 Posts
April 28 2015 02:19 GMT
#12449
On April 28 2015 01:40 sabas123 wrote:
Hey guys.

I currently have 2 intership offers and I don't know what to choose.

Company A: a small company of about 3 programmers and 2 front end developers. Having reasonable ok clients like Royal Dutch Shell and universities.
Company B: an huge company. If I choose them I most likely be working on renewing their code base from COBAL to C#, Luckly the chances are low I will ever work with COBAL. Also I have to choose to work in with only a handful devolopers on a side project of theirs.

The people at company A are people where I can mesh with very well, have similair intrestest and have similair preferences.
At company B so far if have seen most people are relatively old and experainced.

I wont be getting any money at company B, currently talking to company A.

Any tips on what I should pick?

How common are unpaid tech internships in the Netherlands?
Who after all is today speaking about the destruction of the Armenians?
helpman169
Profile Joined April 2015
28 Posts
Last Edited: 2015-04-28 08:34:13
April 28 2015 08:19 GMT
#12450
Why do most graph algorithms work with adjacency matrices instead of incident matrices?
teamamerica
Profile Blog Joined July 2010
United States958 Posts
April 28 2015 10:16 GMT
#12451
On April 28 2015 17:19 helpman169 wrote:
Why do most graph algorithms work with adjacency matrices instead of incident matrices?


Smells like HW but I'll bite since I'm curious.

Most work on adjacency matrices? I've seen most based on adjacency lists. But then again I don't actually ever use these graph algorithms, this is just what I remember from class.

Most of these graph algorithms are basically iterating through all the nodes reachable from one node in some form (they all have some concept of a frontier of nodes to examine that I know).

While lists are bad b/c you're following pointers over memory I guess, I'd also guess the memory efficiency on sparser graphs + having all the data you need stored already is worth it relative to adjacency matrix (although I don't know much about efficient storing spare matrix, I'm sure there's a lot of work on that field).

For an incident matrix you can't even perform a simple operation like adjacent(v1, v2) in constant time since you need to check all the edges v1 and v2 are incident upon. To get the list of nodes from a single node then you go from O(V) (for an adjacent matrix, this is already stored for you in list) to O(VE) since finding for a single node was O(E). And these are the most common operations in graph algorithms, so why slow them down?

My question would be, why would you prefer an incident matrix? I'm asking because this isn't something I work with so idk.
RIP GOMTV. RIP PROLEAGUE.
helpman169
Profile Joined April 2015
28 Posts
April 28 2015 12:24 GMT
#12452
I'm actually not very versed in computer science, I was just going through the MIT linear algebra course and there the lecturer was going through graphs and incident matrices and how this leads to some fundamental insights for applied maths.
Then I realized that most computer algorithms use adjacent represenation and wondered why this might be, but your explanation makes sense, thanks!
FFGenerations
Profile Blog Joined April 2011
7088 Posts
April 28 2015 23:19 GMT
#12453
well i just submitted my Perfect Verification Studio shit attempt + shit report

if you're interested in what it is check out http://www.eschertech.com/tutorial/tutorials.php

its a programming language/software for designing (constructing) code and verifying it against specifications that you also have to construct

ive literally never seen something so difficult to understand. i got to the end of the Basic tutorial understanding nothing and then suddenly they stop giving full code samples and i'm just laughing in disbelief

i've never felt that something is so plain out of my capabilities as this. i just hope he gives me 40/100 so i dont have to do it again, its just flat out beyond me
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2015-04-29 00:06:57
April 28 2015 23:56 GMT
#12454
--- Nuked ---
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
April 29 2015 00:02 GMT
#12455
Read the page where it shits all over Java and was pretty amused.
I'll always be your shadow and veil your eyes from states of ain soph aur.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
April 29 2015 00:50 GMT
#12456
On April 29 2015 08:56 Nesserev wrote:
Hmmm, that looks interesting, but I always thought that mathematically proven code/certified code was limited to the realm of functional programming. I only glossed over the tutorial, is this the same thing?

Show nested quote +
On April 29 2015 09:02 Blitzkrieg0 wrote:
Read the page where it shits all over Java and was pretty amused.

Where do they shit on Java? Do you mean the page 'A Java Example' in the tutorial?


http://www.eschertech.com/tutorial/tutorial1/perfect_oo_differences.php

All their examples are why java is a terrible language.
I'll always be your shadow and veil your eyes from states of ain soph aur.
teamamerica
Profile Blog Joined July 2010
United States958 Posts
Last Edited: 2015-04-29 02:17:05
April 29 2015 01:50 GMT
#12457
On April 29 2015 09:50 Blitzkrieg0 wrote:
Show nested quote +
On April 29 2015 08:56 Nesserev wrote:
Hmmm, that looks interesting, but I always thought that mathematically proven code/certified code was limited to the realm of functional programming. I only glossed over the tutorial, is this the same thing?

On April 29 2015 09:02 Blitzkrieg0 wrote:
Read the page where it shits all over Java and was pretty amused.

Where do they shit on Java? Do you mean the page 'A Java Example' in the tutorial?


http://www.eschertech.com/tutorial/tutorial1/perfect_oo_differences.php

All their examples are why java is a terrible language.


What about Java are they calling out? I don't get why people complain about == String comparison in Java. It's very simple.
1) Are both Strings declared in code or result from interned()? == works
2) Else no, use .equals.

Java isn't only one to use pass by reference and basically requiring overriding some sort of equals method to compare two custom objects.

No destructors? Well you signed up for GC so you wouldn't have to worry about destructors.

What defines a terrible language? I am really curious why you dislike Java so much. Google/all web scale companies , financial trading firms/your TV/atm/phone/microwave all get good use out of it.

- Hmmm, that looks interesting, but I always thought that mathematically proven code/certified code was limited to the realm of functional programming. I only glossed over the tutorial, is this the same thing?

Glancing over tutorial it seems to be coding with contracts which are a useful thing to have but don't constitute being formally verified itself.

A lot of formally verified code is in stuff like C/Ada/C++ (Paris train system, L4 microkernel, fly by wire systems are written in these languages).

Now there's some newer stuff written in ML languages (Coq in OCaml comes to mind) that is used to help verify.

Not that I know a lot about all this stuff, this is again half remembered class + 5 minutes googling.

edit:
was helping friend with Swift, realized I don't really understand garbage collection on final (or effectively final in Java 8 life) references in Java. Say I have like.

public class Test {

public static void test(String s) { //s now effectively final since we don't change
((Runnable) () -> System.out.println(s)).run(); //when is s collected!
}

}
.
So I was reading final variables are converted to implicit instance variables? Else when is the s that's passed into my lambada eligble for GC? When lambada terminates?
RIP GOMTV. RIP PROLEAGUE.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
Last Edited: 2015-04-29 02:22:39
April 29 2015 02:21 GMT
#12458
On April 29 2015 10:50 teamamerica wrote:
Show nested quote +
On April 29 2015 09:50 Blitzkrieg0 wrote:
On April 29 2015 08:56 Nesserev wrote:
Hmmm, that looks interesting, but I always thought that mathematically proven code/certified code was limited to the realm of functional programming. I only glossed over the tutorial, is this the same thing?

On April 29 2015 09:02 Blitzkrieg0 wrote:
Read the page where it shits all over Java and was pretty amused.

Where do they shit on Java? Do you mean the page 'A Java Example' in the tutorial?


http://www.eschertech.com/tutorial/tutorial1/perfect_oo_differences.php

All their examples are why java is a terrible language.

What defines a terrible language? I am really curious why you dislike Java so much. Google/all web scale companies , financial trading firms/your TV/atm/phone/microwave all get good use out of it.


Terrible language is vague, but when your description says Java does this and Perfect does not this then the creator clearly didn't like the conventions of Java and think it is a terrible language. I said I found this amusing, not that I disliked java.
I'll always be your shadow and veil your eyes from states of ain soph aur.
dae
Profile Joined June 2010
Canada1600 Posts
April 29 2015 05:34 GMT
#12459
On April 28 2015 01:40 sabas123 wrote:
Hey guys.

I currently have 2 intership offers and I don't know what to choose.

Company A: a small company of about 3 programmers and 2 front end developers. Having reasonable ok clients like Royal Dutch Shell and universities.
Company B: an huge company. If I choose them I most likely be working on renewing their code base from COBAL to C#, Luckly the chances are low I will ever work with COBAL. Also I have to choose to work in with only a handful devolopers on a side project of theirs.

The people at company A are people where I can mesh with very well, have similair intrestest and have similair preferences.
At company B so far if have seen most people are relatively old and experainced.

I wont be getting any money at company B, currently talking to company A.

Any tips on what I should pick?


Company A. For an internship, the better you like the people you work with, the more time you end up spending/chatting with them and the more you end up learning as a result.

It also will make you much happier, and make you enjoy your time there much more.
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2015-04-29 16:28:06
April 29 2015 16:26 GMT
#12460
On April 29 2015 11:21 Blitzkrieg0 wrote:
Show nested quote +
On April 29 2015 10:50 teamamerica wrote:
On April 29 2015 09:50 Blitzkrieg0 wrote:
On April 29 2015 08:56 Nesserev wrote:
Hmmm, that looks interesting, but I always thought that mathematically proven code/certified code was limited to the realm of functional programming. I only glossed over the tutorial, is this the same thing?

On April 29 2015 09:02 Blitzkrieg0 wrote:
Read the page where it shits all over Java and was pretty amused.

Where do they shit on Java? Do you mean the page 'A Java Example' in the tutorial?


http://www.eschertech.com/tutorial/tutorial1/perfect_oo_differences.php

All their examples are why java is a terrible language.

What defines a terrible language? I am really curious why you dislike Java so much. Google/all web scale companies , financial trading firms/your TV/atm/phone/microwave all get good use out of it.


Terrible language is vague, but when your description says Java does this and Perfect does not this then the creator clearly didn't like the conventions of Java and think it is a terrible language. I said I found this amusing, not that I disliked java.

You would have the right to dislike it though, it truly is terrible. Having coded for years in Java, I could argue for days about why it's terrible, and I also know why it's still so much used despite of that.


On another topic, I'm watching Build 2015 right now and they announced Visual Studio Code, a lightweight code editor which works on Windows, Mac and Linux for 12 languages with intellisense, debugging and all the goodies. Good shit :D
Prev 1 621 622 623 624 625 1032 Next
Please log in or register to reply.
Live Events Refresh
GSL
08:00
2026 Season 1: Qualifiers
IntoTheiNu 134
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 169
StarCraft: Brood War
Flash 2991
Jaedong 2618
Tasteless 273
Hyuk 257
Mini 242
910 159
Larva 138
Aegong 114
ToSsGirL 85
ggaemo 74
[ Show more ]
Sharp 58
Shine 43
Bale 18
Sacsri 6
Dota 2
XaKoH 384
ODPixel112
NeuroSwarm97
XcaliburYe52
League of Legends
JimRising 532
Counter-Strike
olofmeister2252
allub243
Super Smash Bros
Mew2King157
Other Games
summit1g6589
singsing1182
ceh9537
KnowMe157
crisheroes141
Trikslyr116
Livibee38
QueenE23
Organizations
Dota 2
PGL Dota 2 - Secondary Stream7413
PGL Dota 2 - Main Stream4636
Other Games
gamesdonequick543
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• LUISG 26
• Adnapsc2 7
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 16
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade828
• Stunt770
Upcoming Events
Afreeca Starleague
49m
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
1h 49m
herO vs Classic
SHIN vs Cure
Solar vs Percival
RSL Revival
1d
Replay Cast
1d 14h
The PondCast
2 days
KCM Race Survival
2 days
WardiTV Map Contest Tou…
2 days
Gerald vs TBD
Clem vs TBD
ByuN vs TBD
Rogue vs MaxPax
ShoWTimE vs TBD
CranKy Ducklings
2 days
Escore
3 days
RSL Revival
3 days
[ Show More ]
WardiTV Map Contest Tou…
4 days
Universe Titan Cup
4 days
Rogue vs Percival
Ladder Legends
4 days
uThermal 2v2 Circuit
4 days
BSL
4 days
Sparkling Tuna Cup
5 days
WardiTV Map Contest Tou…
5 days
Ladder Legends
5 days
BSL
5 days
Replay Cast
5 days
Replay Cast
5 days
Wardi Open
6 days
Monday Night Weeklies
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-04-20
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
IEM Atlanta 2026
Asian Champions League 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.