• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:20
CET 16:20
KST 00:20
  • 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
RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation10Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
RSL Season 3 - RO16 Groups A & B Preview Mech is the composition that needs teleportation t [TLMC] Fall/Winter 2025 Ladder Map Rotation Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time?
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Revival: Season 3 Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? BW General Discussion Brood War web app to calculate unit interactions [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
Current Meta Simple Questions, Simple Answers PvZ map balance How to stay on top of macro?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason Should offensive tower rushing be viable in RTS games?
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
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
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
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1626 users

The Big Programming Thread - Page 951

Forum Index > General Forum
Post a Reply
Prev 1 949 950 951 952 953 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.
Excludos
Profile Blog Joined April 2010
Norway8163 Posts
March 11 2018 11:31 GMT
#19001
On March 11 2018 15:26 spinesheath wrote:
Show nested quote +
On March 11 2018 10:32 Hanh wrote:
On March 11 2018 02:00 nunez wrote:
i assumed the idempotency was defined wrt resources, and not responses. the resource, on the server, or the state of the server itself, does not change, but the response sent back to the client is different every time.

consider f.ex. the inclusion of a date-field in the response: it might differ for each corresponding request.


An easy way to reason about GET vs POST is to remember that the client (browser) is allowed to cache the response of a GET query. If that affects your expected behavior, GET should be avoided.

I have been wondering about this, too. I'm working on something that is similar to a forum in a SPA. The content of a thread necessarily changes over time. So when I request a certain thread (all its comments), do I use a GET (bad because of caching) or a POST (doesn't seem to be what POST is supposed to be for).


Absolutely a GET here. If you're requesting information that doesn't change anything on the server, it's always GET. If you're telling the server to change something, it's one of the other (POST, PUT, DEL). Just because the content you're requesting changes over time or from user to user doesn't change the fact that the command itself doesn't change anything on its own (Logging excluded).
berated-
Profile Blog Joined February 2007
United States1134 Posts
March 11 2018 12:31 GMT
#19002
On March 11 2018 02:00 nunez wrote:
i assumed the idempotency was defined wrt resources, and not responses. the resource, on the server, or the state of the server itself, does not change, but the response sent back to the client is different every time.

consider f.ex. the inclusion of a date-field in the response: it might differ for each corresponding request.


I'm not sure I've seen much in the way of respsonses as an official term in REST discussion. I assumed (maybe incorrectly) that what you're calling a response was a resource.

Which thinking while typing... Might be where the disconnect is coming. When we are writing our apps we want them to do something - that's why we think in algorithm and operations. To make it RESTful we have to stop thinking about what we're doing and more about what we're managing - our resources.

This was a pretty good read about resource modelling.
resource modelling
nunez
Profile Blog Joined February 2011
Norway4003 Posts
March 11 2018 22:03 GMT
#19003
a neat thing: gccfilter.
conspired against by a confederacy of dunces.
TheEmulator
Profile Blog Joined July 2010
28093 Posts
March 13 2018 18:33 GMT
#19004
https://insights.stackoverflow.com/survey/2018/

Always a good read.
Administrator
Liebig
Profile Joined August 2010
France738 Posts
March 13 2018 18:38 GMT
#19005
ocaml second high paying techno after F# :O
TheEmulator
Profile Blog Joined July 2010
28093 Posts
March 13 2018 18:41 GMT
#19006
Dirty finance devs
Administrator
Liebig
Profile Joined August 2010
France738 Posts
March 13 2018 19:35 GMT
#19007
yeah makes sense, jane street must be like 75% of all industrial ocaml dev lol
Manit0u
Profile Blog Joined August 2004
Poland17432 Posts
March 16 2018 07:32 GMT
#19008
Regarding OCaml: https://arxiv.org/abs/1803.02796
Time is precious. Waste it wisely.
teamamerica
Profile Blog Joined July 2010
United States958 Posts
Last Edited: 2018-03-16 11:58:18
March 16 2018 11:55 GMT
#19009
edit: sry, wrong thread.
RIP GOMTV. RIP PROLEAGUE.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 19 2018 23:42 GMT
#19010
I have run into a strange bug(?) while templating with Pug and AWS Lambda.

sometext
someothertext



When I render this on a localhost with Pug as the view engine for Express it gets templated just fine, as two separate lines of code.

When I render this on Lambda I retrieve the file from S3 with whitespace intact, and then lose the whitespace as soon as I render.

From what I've been reading Express shouldn't be the difference maker. Does anyone know why else this might be happening?

In Express my rendering is:


res.render("index")


and in Lambda it is:


pug.render( data.Body.toString() )

where data is a retrieved s3 object.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17432 Posts
March 20 2018 01:48 GMT
#19011
I wonder if it's a Pug issue or Lambda issue...

Does any of that help?

https://pugjs.org/language/plain-text.html#whitespace-control
Time is precious. Waste it wisely.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 20 2018 02:22 GMT
#19012
Yeah, I've been having a hard time tracking down which side to actually blame.

That link might explain my problem but I'm having a hard time wrapping my head around what they mean. Some experimenting I did in their sand box suggests that only a few elements, like <em>, are actually inlined. Also, it seems like a lot of their documentation is wrong - for example, white space in the middle of a line is not retained. In fact, it seems like all of point 2 is incorrect. Am I misunderstanding their documentation?
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
Last Edited: 2018-03-22 03:00:31
March 21 2018 23:14 GMT
#19013
I have it working:

https://9ayj4z17y9.execute-api.ca-central-1.amazonaws.com/Test

The sliders got duplicated for whatever reason, some of the tags are messed up and it loads super slow. I don't know why any of these are problems.

I also found out 5 minutes ago that there is an automatic way to convert Express/Node apps into Lambda, but I was already done. Now I know for next time!
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17432 Posts
March 21 2018 23:27 GMT
#19014
Haha, is that Monopoly?
Time is precious. Waste it wisely.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 22 2018 03:06 GMT
#19015
Yup! My family got super into it over the Christmas break a few years ago so I wrote up a program that tells you which squares are best depending on the board state (number of houses, etc.) using a DTMC. Once my family found out I did this they coincidentally didn't want to play any more.

I would like to ask for feedback but the current version up there is so janky I'll try to fix it up before asking.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Excludos
Profile Blog Joined April 2010
Norway8163 Posts
March 22 2018 08:15 GMT
#19016
Very Janky, like duplicate slide bars. That said the main problem I have is I don't quite understand how to use it. It's not super user friendly, especially without instructions
deacon.frost
Profile Joined February 2013
Czech Republic12129 Posts
March 22 2018 10:29 GMT
#19017
I spent almost a decade on a non-objective programming language and I would like to get back into a shape. Thus I am looking for several tasks from easy to hard preferably already solved in JAVA to regain my lost powers. Are there any pages with a content like that? Obviously I am not creative enough to just start writing

Obviously my Google skill is low

Thanks!
I imagine France should be able to take this unless Lilbow is busy practicing for Starcraft III. | KadaverBB is my fairy ban mother.
Excludos
Profile Blog Joined April 2010
Norway8163 Posts
Last Edited: 2018-03-22 11:32:17
March 22 2018 11:28 GMT
#19018
On March 22 2018 19:29 deacon.frost wrote:
I spent almost a decade on a non-objective programming language and I would like to get back into a shape. Thus I am looking for several tasks from easy to hard preferably already solved in JAVA to regain my lost powers. Are there any pages with a content like that? Obviously I am not creative enough to just start writing

Obviously my Google skill is low

Thanks!


https://www.codewars.com is excellent for tasks. You can choose difficulty yourself, or just start off easy and let yourself "rank up" as you go along. After finishing/giving up on a task, you'll be able to see the solutions of other people (And then, inevitably, brood over how awful your code is compared to everyone else's..or maybe that's just me)
deacon.frost
Profile Joined February 2013
Czech Republic12129 Posts
March 22 2018 12:11 GMT
#19019
On March 22 2018 20:28 Excludos wrote:
Show nested quote +
On March 22 2018 19:29 deacon.frost wrote:
I spent almost a decade on a non-objective programming language and I would like to get back into a shape. Thus I am looking for several tasks from easy to hard preferably already solved in JAVA to regain my lost powers. Are there any pages with a content like that? Obviously I am not creative enough to just start writing

Obviously my Google skill is low

Thanks!


https://www.codewars.com is excellent for tasks. You can choose difficulty yourself, or just start off easy and let yourself "rank up" as you go along. After finishing/giving up on a task, you'll be able to see the solutions of other people (And then, inevitably, brood over how awful your code is compared to everyone else's..or maybe that's just me)

Thank you!!!
I imagine France should be able to take this unless Lilbow is busy practicing for Starcraft III. | KadaverBB is my fairy ban mother.
nimbim
Profile Blog Joined June 2009
Germany985 Posts
Last Edited: 2018-09-02 12:33:23
March 22 2018 15:24 GMT
#19020
Prev 1 949 950 951 952 953 1032 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Korean Royale
12:00
Group Stage - Group A, Day 2
WardiTV929
TKL 262
Rex125
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 262
Rex 125
SteadfastSC 54
MindelVK 11
StarCraft: Brood War
Britney 43457
Calm 4269
Rain 3629
Horang2 1231
Bisu 1069
firebathero 435
Flash 278
Soma 233
Snow 185
Zeus 171
[ Show more ]
Hyun 90
hero 75
Rush 74
Soulkey 53
Sea.KH 52
Killer 51
Mind 46
sas.Sziky 43
TY 22
Free 16
Movie 15
Terrorterran 15
Shine 12
Bale 10
JulyZerg 6
Dota 2
singsing5100
qojqva2924
Dendi1256
Counter-Strike
byalli426
oskar91
Super Smash Bros
Mew2King87
Other Games
B2W.Neo1318
hiko494
crisheroes430
Lowko324
RotterdaM237
Happy205
Sick162
Liquid`VortiX84
QueenE47
febbydoto6
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3484
League of Legends
• Nemesis4625
• TFBlade784
• Stunt763
Other Games
• WagamamaTV348
Upcoming Events
CranKy Ducklings
18h 40m
RSL Revival
18h 40m
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
20h 40m
Cure vs Reynor
Classic vs herO
IPSL
1d 1h
ZZZero vs rasowy
Napoleon vs KameZerg
OSC
1d 3h
BSL 21
1d 4h
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
1d 18h
RSL Revival
1d 18h
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
1d 20h
WardiTV Korean Royale
1d 20h
[ Show More ]
BSL 21
2 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
2 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
2 days
Wardi Open
2 days
Monday Night Weeklies
3 days
WardiTV Korean Royale
3 days
BSL: GosuLeague
4 days
The PondCast
4 days
Replay Cast
5 days
RSL Revival
5 days
BSL: GosuLeague
6 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
RSL Revival: Season 3
BLAST Rivals Fall 2025
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

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.