• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:15
CEST 05:15
KST 12:15
  • 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 - The Finalists12[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced10Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid20
StarCraft 2
General
Adeleke University 2026/2027 Admission Form is Out Baze University 2026/2027 Admission Form is Out. C Weekly Cups (April 6-12): herO doubles, "Villains" prevail MaNa leaves Team Liquid Oliveira Would Have Returned If EWC Continued
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly) $5,000 WardiTV TLMC tournament - Presented by Monster Energy
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
Pros React To: Tulbo in Ro.16 Group A ASL21 General Discussion BW General Discussion [BSL22] RO32 Group Stage mca64Launcher - New Version with StarCraft: Remast
Tourneys
[ASL21] Ro16 Group B Small VOD Thread 2.0 Korean KCM Race Survival 2026 Season 2 [BSL22] RO32 Group D - Sunday 21:00 CEST
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 General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
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 Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece 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
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2250 users

The Big Programming Thread - Page 589

Forum Index > General Forum
Post a Reply
Prev 1 587 588 589 590 591 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.
pedrlz
Profile Joined September 2012
Brazil5234 Posts
February 17 2015 13:40 GMT
#11761
On February 17 2015 09:32 Ropid wrote:
Show nested quote +
On February 17 2015 00:36 pedrlz wrote:
So I decided to start learning a programming language (again!). I decided that clojure doesn't have much material for starters and I get a little lost after doing the most tutorials that I found so I decided to change for python because it seems the most similar language from the mainstream (I might just be completely wrong, don't be too harsh with me pls).

I wanted a book to study instead of using web tutorials since I usually like to lie on my bed and read something before sleep. What books do you recommend for python? Think Python is good enough? Should I try others? Thanks.

Clojure is probably super different from normal mainstream stuff. Data is "immutable" by default, meaning it can't be changed after it's created, and people seem to try to keep that up as much as possible. They write "purely functional" code as much as they can.

In normal imperative thinking, you write code where you take a reference to data, then you run over the data and do the required changes.

In a functional style, your functions only look at the input data and do not touch it, the required changes only show up in the result of the function.

This should need help from the programming language itself or performance will be shit. If the compiler/interpreter knows that the things you work with are always immutable, it might be able to do something smart instead of making copies of everything all the time.

I struggle with the stuff and can't come up with good examples that shows that it's an interesting idea (I'm just a noob trying to learn enough Haskell that I can do something actually useful with it). Working like this is pretty mind blowing in practice coming from a "normal" imperative background, so that's fun. For some reason, complicated ideas end up as super compact code compared to the usual imperative code. When you do changes to your code, you can kind of look at the code as if it's some sort of math/logic proof, and you can then often be very confident that something is still correct after your changes, and then it actually is correct and bug-free. I guess that's the big upside.

Clojure then also is some sort of Lisp and can do Lisp stuff. I guess the big deal with that is "meta-programming"? Here's stuff to promote Lisp:

http://www.paulgraham.com/avg.html (this is some general marketing for Lisp)
http://www.defmacro.org/ramblings/lisp.html (this is trying to explain metaprogramming and why it's neat)

I have no idea what other language with similar ideas to suggest with regards to a good, easy introduction. It's all very hard for me.

Were those even the reasons you started looking at Clojure?

I started with clojure because whenever I look at C or Java code seemed so alien, then I learned about Lisp and even though it was all brackets everywhere seems like it was cleaner to read and write. Then I read about Clojure being a lisp, more modern and with more support and even less brackets, so I start studying a little about it. But then I found a gap between the basic level tutorials and my imagination lol, it felt like if I wanted to improve I should start writing code and learning with reference guides, but it was really hard and since I don't have much experience I didn't know if what was trying to do was too complex or I was being obtuse.

To be fair half of the technical side still very gibberish to me, but since so many people praised Lisp I thought why not? In the end I think still would be better to learn first how these classic language like python works so I also can be delighted with Lisp too.

tl;dr: i choose clojure because the code looks like more cleaner and elegant. Also, because I read that learning how to Lisp could teach a lot that other languages couldn't.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
February 17 2015 19:28 GMT
#11762
On February 17 2015 09:32 Ropid wrote:
I struggle with the stuff and can't come up with good examples that shows that it's an interesting idea (I'm just a noob trying to learn enough Haskell that I can do something actually useful with it).

One of the most interesting things about it in a modern context is this: If nobody can change data, you know for certain that there won't be another thread changing data and breaking things while you're working with it. Immutability is just about the most awesome thing you could imagine when you're writing parallel code.

Then there also is the part where it's much more like math, but I don't know how many people are really attracted by that.
If you have a good reason to disagree with the above, please tell me. Thank you.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
February 17 2015 19:49 GMT
#11763
On February 17 2015 19:22 Manit0u wrote:
Show nested quote +
On February 17 2015 18:53 bypLy wrote:
hey i was wondering if there is way to get a domain registered for free, including emails, and all the stuff necessary to make an own website


If you want free hosting then I believe that you can get it with Amazon AWS. Some low-level EC2 instances are free of charge if they don't generate too much traffic (you start paying some low fees after exceeding transfer treshold, but it's relatively high for simple sites).

I think Microsoft Azure has a free option as well. Not entirely sure what it covers, though.
Average means I'm better than half of you.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-02-17 20:31:51
February 17 2015 20:27 GMT
#11764
@blisse
this is a good explanation on rvalue references: source
note that && is a reference qualifier, that applies to the (possibly const qualified) type on its left (or the implicit object in the case of reference qualified member function).

and there totally is operator precedence in play in the little snippet that was pasted, or any other expression with operators!
suffix increment has a higher precedence than dereference operator, hence the pointer is first iterated, and then the result of suffix increment (a copy of the pointer value before incrementation) is dereferenced (and assigned to if it's the lhs, or copied from if it's the rhs).
conspired against by a confederacy of dunces.
Days
Profile Joined February 2010
United States219 Posts
February 17 2015 20:30 GMT
#11765
Hi guys. I have a JAR (specifically, jaxws-api.jar) and it is compiled to run on 1.6

The problem is that on our live server, we are running 1.4

How do I go about recompiling this JAR and all of the classes inside, to be compatible with 1.4?

We are using Eclipse.
We buy things we don't need, with money we don't have, to impress people we don't like.
tofucake
Profile Blog Joined October 2009
Hyrule19203 Posts
February 17 2015 20:58 GMT
#11766
get the source and recompile it with 1.4
Liquipediaasante sana squash banana
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
February 18 2015 06:45 GMT
#11767
On February 17 2015 18:53 bypLy wrote:
hey i was wondering if there is way to get a domain registered for free, including emails, and all the stuff necessary to make an own website

If you're a student, I'd probably look at https://education.github.com/pack

You get $100 credit on Digital Ocean for hosting, as well as a .me domain and one-year SSL cert from Namecheap, along with some other stuff. From there it shouldn't be too hard to get a web/email server going.

I haven't used this myself, so I don't know if there's any additional hooks to it besides just trying to get you to start using services so that you'll keep paying for them later.

I figure the biggest advantage if you went this route is you can set up for free, and still get support from the service providers.

Full disclosure, I have very little web hosting experience, so if this is a bad idea, I'm sure someone will point it out.
you gotta dance
nunez
Profile Blog Joined February 2011
Norway4003 Posts
February 18 2015 13:14 GMT
#11768
i must profess my love for std::list:
a beautiful contraption.
conspired against by a confederacy of dunces.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2015-02-18 16:47:23
February 18 2015 16:46 GMT
#11769
--- Nuked ---
nunez
Profile Blog Joined February 2011
Norway4003 Posts
February 18 2015 18:27 GMT
#11770
vector is the marquee container no doubt,
and gets a lot of attention.
conspired against by a confederacy of dunces.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
February 18 2015 19:45 GMT
#11771
I need to create a small thick application in C#.net that will need to save its data locally on a client. I'd like to store it in a database, but I don't want to have to install anything on the client other than just the app itself. Is there a way to package the database mechanics all in one single program so the user doesn't have to go download SQL express or something similar?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
February 18 2015 19:56 GMT
#11772
--- Nuked ---
supereddie
Profile Joined March 2011
Netherlands151 Posts
February 18 2015 20:06 GMT
#11773
On February 19 2015 04:45 enigmaticcam wrote:
I need to create a small thick application in C#.net that will need to save its data locally on a client. I'd like to store it in a database, but I don't want to have to install anything on the client other than just the app itself. Is there a way to package the database mechanics all in one single program so the user doesn't have to go download SQL express or something similar?

Just use MS Sql Server Compact?
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
Manit0u
Profile Blog Joined August 2004
Poland17724 Posts
February 19 2015 10:29 GMT
#11774
On February 19 2015 01:46 Nesserev wrote:
Show nested quote +
On February 18 2015 22:14 nunez wrote:
i must profess my love for std::list:
a beautiful contraption.


I almost never use std::list. Stroustrup pointed out in one of his presentations that you should almost always prefer std::vector over std::list in practice, even though, theoretically, there are a lot of uses for lists.

The biggest disadvantage of std::vector is of course that insertion/deletion somewhere in the vector, requires the repositioning of all elements behind the inserted/deleted element(s). Note that insertion/deletion at the back of the vector is amortized constant time.

On the other hand, insertion/deletion is constant time anywhere in linked lists. The biggest disadvantage of linked lists is that it's rather bad at some very convenient stuff, like size(), or access through an index (which is why these are not provided by the stl).

Now here's the big hidden factor for why you shouldn't use lists: iteration.
It's the only way to access the elements in a linked list, and it's also possible to do in a vector.

If you iterate over all the elements of a vector, the iterator will just jump one object space further in memory to access the next element, which is very efficient. If you iterate over all the elements of a linked list, the iterator has to jump through memory to wherever the next element is. This form of access is very expensive, especially if you have list of millions of elements.

If one were to compare the frequency and cost of moving elements in a vector, to that of iterating the elements of a list, the conclusion would be that the list will always perform worse than the vector. Of course, the way I presented it probably leaves room for some fallacies and discussion, but trust me on this one.

From the point of view of a programming language, I very much do like the std::list class. Its interface is just so elegant. std::forward_list is an abomination though... first person I see using that class, gets a dropkick in the face.


The presentation you mentioned (for posteriority):

Time is precious. Waste it wisely.
Prillan
Profile Joined August 2011
Sweden350 Posts
February 19 2015 11:21 GMT
#11775
I just finished the first iteration of an actual program written in Haskell. Before starting it seemed impossible, but it was really easy. I end up doing maybe too much inside the IO monad, but whatever, it works and it can only be better from here.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
DetriusXii
Profile Joined June 2007
Canada156 Posts
February 19 2015 14:23 GMT
#11776
On February 18 2015 05:58 tofucake wrote:
get the source and recompile it with 1.4


Which would involve major difficulties if the 1.6 JAR used generics. Generics in Java weren't introduced until 1.5.
Manit0u
Profile Blog Joined August 2004
Poland17724 Posts
February 19 2015 15:56 GMT
#11777


Pretty cool stuff.
Time is precious. Waste it wisely.
LaNague
Profile Blog Joined April 2010
Germany9118 Posts
February 19 2015 16:01 GMT
#11778
I just saw the most ridiculous sourcecode, its really too bad that its confidential, so i cant upload it.
The company payed a decent 7 figure for it, too.


It was a C# project with about 500 different classes and interfaces doing nothing but creating each other and crossreferenzing so badly that they needed to use 2 outside frameworks that support devs in cross references.
Everything was an object that did nothing but create other objects and add a crapton of code to make sure the program is in the correct state and somewhere, when you search long enough, something actually does something every layers of objects.

And he best part is that it doesnt even compile as an exe, it needs an outside program that will use the whole shitty mess and create a 100% sequental program out of it (step 1: do x, step 2:do y,...).


It also didnt have a single line of commentary of course, bot that it would have helped.




Maybe i post some of the best lines this WE, but you really need to see the whole project to really appreciate the pure bullshit.
Eiii
Profile Blog Joined April 2009
United States2566 Posts
February 19 2015 16:28 GMT
#11779
On February 18 2015 15:45 Mr. Wiggles wrote:
Show nested quote +
On February 17 2015 18:53 bypLy wrote:
hey i was wondering if there is way to get a domain registered for free, including emails, and all the stuff necessary to make an own website

If you're a student, I'd probably look at https://education.github.com/pack

You get $100 credit on Digital Ocean for hosting, as well as a .me domain and one-year SSL cert from Namecheap, along with some other stuff. From there it shouldn't be too hard to get a web/email server going.

I haven't used this myself, so I don't know if there's any additional hooks to it besides just trying to get you to start using services so that you'll keep paying for them later.

I figure the biggest advantage if you went this route is you can set up for free, and still get support from the service providers.

Full disclosure, I have very little web hosting experience, so if this is a bad idea, I'm sure someone will point it out.


Just so no one get's the wrong idea, while setting up a web server is trivial, getting an email service up and running on a personal server takes a pretty significant amount of work. I bought a server on digital ocean and went through the process of getting a mail server set up a while back, and it took me about three days working on it on and off to get everything going.

It's an interesting process, but maybe not the best project to tackle until you're already really familiar with installing and configuring software on linux-y systems.

That said, the digital ocean/namecheap combo is a pretty good one. If you haven't looked into it yet, getting a nice little website up and running with that method is probably way cheaper than you think it is.
:3
The_Red_Viper
Profile Blog Joined August 2013
19533 Posts
February 19 2015 16:52 GMT
#11780
Ok so i just was on a very weird looking site and it showed me this as the source code, do i need to be worried now?
http://pastebin.com/dQgHU8r1 sry for the dumb question
IU | Sohyang || There is no God and we are his prophets | For if ‘Thou mayest’—it is also true that ‘Thou mayest not.” | Ignorance is the parent of fear |
Prev 1 587 588 589 590 591 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
uThermal 2v2 Circuit S2 Mar
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 184
ProTech140
ROOTCatZ 73
StarCraft: Brood War
GuemChi 6265
NaDa 45
SilentControl 19
ivOry 13
Dota 2
NeuroSwarm107
Super Smash Bros
hungrybox491
Other Games
summit1g13178
tarik_tv3770
C9.Mang0587
JimRising 472
Artosis401
ViBE150
Trikslyr144
Maynarde122
Livibee38
kaitlyn36
Organizations
Other Games
BasetradeTV299
Counter-Strike
PGL80
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH242
• EnkiAlexander 35
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt330
Upcoming Events
Escore
6h 45m
WardiTV Map Contest Tou…
7h 45m
OSC
11h 45m
Big Brain Bouts
12h 45m
MaNa vs goblin
Scarlett vs Spirit
Serral vs herO
Korean StarCraft League
23h 45m
CranKy Ducklings
1d 6h
WardiTV Map Contest Tou…
1d 7h
IPSL
1d 12h
WolFix vs nOmaD
dxtr13 vs Razz
BSL
1d 15h
UltrA vs KwarK
Gosudark vs cavapoo
dxtr13 vs HBO
Doodle vs Razz
CranKy Ducklings
1d 20h
[ Show More ]
Sparkling Tuna Cup
2 days
WardiTV Map Contest Tou…
2 days
Ladder Legends
2 days
BSL
2 days
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
IPSL
2 days
JDConan vs TBD
Aegong vs rasowy
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
3 days
RSL Revival
3 days
Afreeca Starleague
4 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
4 days
RSL Revival
5 days
Replay Cast
5 days
The PondCast
6 days
WardiTV Map Contest Tou…
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-04-15
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
Escore Tournament S2: W3
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
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.