|
if u got a programming problem u cant fix with a hex dump and a slide rule then the problem is u
|
# ? Jun 11, 2013 02:19 |
|
|
# ? May 16, 2024 17:46 |
|
protip \d doesn't match -
|
# ? Jun 13, 2013 23:43 |
|
https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/hJHCAaiL0soquote:Gofmt was written to reduce the number of pointless discussions about
|
# ? Jun 14, 2013 02:18 |
|
colorforth is the answer
|
# ? Jun 14, 2013 02:26 |
|
dont like the syntax highlighting, just rewrite your os and editor. its only 500 bytes anyway
|
# ? Jun 14, 2013 02:26 |
|
why are they talking about syntax highlighting in terms of colors when you want to talk about groups of lexemes. and isn't it basically parens keywords numbers strings operators? i guess you could split it into exposed identifiers vs internal, lol
|
# ? Jun 14, 2013 04:55 |
|
FamDav posted:why are they talking about syntax highlighting in terms of colors when you want to talk about groups of lexemes. and isn't it basically i believe syntax highlighting perl is turing-complete certainly it's irritatingly difficult because a regex can be delimited with almost any character you want and the escaping rules inside it are different depending on the delimiter
|
# ? Jun 14, 2013 10:59 |
|
also if you use braces as the delimiter you close them s{burp}{fart}
|
# ? Jun 14, 2013 14:49 |
|
best practices BITCH
|
# ? Jun 14, 2013 14:49 |
|
uG posted:best practices BITCH thats what we call the sucker charged with enforcing our coding standards
|
# ? Jun 14, 2013 15:10 |
|
qntm posted:i believe syntax highlighting perl is turing-complete perl can parse differently depending on BEGIN blocks. the one proof i've seen relied on conditionally defining a sub in a begin block. thats not so bad compared to c++. c++ is undecidable except that the standard requires compilers to limit template expansion depth. you have to either be ok with using ambiguous parses for syntax highlighting or you have to instrument the compiler i think tef said a toy language is one where the most complex software written in the language is its compiler. c++ is a toy language
|
# ? Jun 16, 2013 01:54 |
|
qntm posted:i believe syntax highlighting perl
|
# ? Jun 16, 2013 01:57 |
Nomnom Cookie posted:a toy language is one where the most complex software written in the language is its compiler. ignoring the fact that 'toy language' isnt really even a defined thing, this statement is very wrong
|
|
# ? Jun 16, 2013 01:58 |
|
OBAMA BIN LinkedIn posted:ignoring the fact that 'toy language' isnt really even a defined thing, this statement is very wrong good thing tef didn't actually say it! tef posted:a toy language: a language where the only substantial program written in it, is the compiler.
|
# ? Jun 16, 2013 02:33 |
|
[citation needed]
|
# ? Jun 16, 2013 03:04 |
|
a toy language: all of them
|
# ? Jun 16, 2013 03:34 |
|
PleasingFungus posted:good thing tef didn't actually say it! mines better
|
# ? Jun 16, 2013 03:41 |
|
Nomnom Cookie posted:perl can parse differently depending on BEGIN blocks. the one proof i've seen relied on conditionally defining a sub in a begin block. thats not so bad compared to c++. c++ is undecidable except that the standard requires compilers to limit template expansion depth. you have to either be ok with using ambiguous parses for syntax highlighting or you have to instrument the compiler template expansion has nothing to do with syntax highlighting. that just makes c++ compilation undecidable. while c++ has some wonky context sensitive issues (object instantiation vs function declaration), there's really nothing worse about highlighting it than python or haskell. also, what more do people want out of syntax highlighting?
|
# ? Jun 16, 2013 03:59 |
|
FamDav posted:template expansion has nothing to do with syntax highlighting. that just makes c++ compilation undecidable. idk if post about something that isnt java or linux its probably wrong quote:also, what more do people want out of syntax highlighting? intellij highlights bad code, its not perfect but it catches a depressing %age of my employer's codebase
|
# ? Jun 16, 2013 04:39 |
Nomnom Cookie posted:idk if post about something that isnt java or linux its probably wrong pretty sure 95% of syntax highlighting is just regex of keywords anyway
|
|
# ? Jun 16, 2013 04:48 |
can we not sperg too much about why c++ is or isnt a bad language as i think we all agree that c++ isn't well designed but nonetheless its still p.much the most important and practical language that currently exists
|
|
# ? Jun 16, 2013 04:50 |
|
OBAMA BIN LinkedIn posted:can we not sperg too much about why c++ is or isnt a bad language as i think we all agree that c++ isn't well designed but nonetheless its still p.much the most important and practical language that currently exists no that's C
|
# ? Jun 16, 2013 05:15 |
|
OBAMA BIN LinkedIn posted:can we not sperg too much about why c++ is or isnt a bad language as i think we all agree that c++ isn't well designed but nonetheless its still p.much the most important and practical language that currently exists C++ hits the market that needs to be fast with the trade-off of being either super expensive or buggy. OSes for the former, games for the latter.
|
# ? Jun 16, 2013 08:50 |
|
PleasingFungus posted:no that's C
|
# ? Jun 16, 2013 19:04 |
|
OBAMA BIN LinkedIn posted:can we not sperg too much about why c++ is or isnt a bad language as i think we all agree that c++ isn't well designed but nonetheless its still p.much the most important and practical language that currently exists i can agree that p much every opinion you have is wrong
|
# ? Jun 16, 2013 20:24 |
|
So I'm a terrible programmer whose only done academia stuff so I have little knowledge about how "real" programs work. I'm trying to put together a very simple shipment notification app for the iPhone. I've dug through the APIs of the major parcel carriers and I believe I just need to make a XML parser class (I'd use a library one obviously) and then receive and send messages to their respective websites through the XML parser? Is this basically the gist of what I should do, or is there a way thats 10x easier that I don't know about.
|
# ? Jun 16, 2013 21:04 |
|
Papes posted:So I'm a terrible programmer whose only done academia stuff so I have little knowledge about how "real" programs work. 1. receive messages 2. send messages 3. parse XML separation of concerns. read up on SOLID then implement something with terrible design. if u can tell that ur doing something bad thats good enough for a babby dev. u get better with practice but u DONT get better from reading a text on UML and making diagrams for a month
|
# ? Jun 16, 2013 22:03 |
|
Nomnom Cookie posted:1. receive messages Alright sweet thanks, just wanted to make sure I was at least kind of on the right track.
|
# ? Jun 16, 2013 22:21 |
|
I am shite at Ada, some planes going to fall apart ... we're in trouble guy
|
# ? Jun 16, 2013 23:54 |
|
Also, you probably don't need to write your own xml-parser.
|
# ? Jun 17, 2013 07:04 |
|
zokie posted:Also, you probably don't need to write your own xml-parser. do it in regex ftw
|
# ? Jun 17, 2013 09:40 |
|
Papes posted:So I'm a terrible programmer whose only done academia stuff so I have little knowledge about how "real" programs work. would you say the time & money you spent learning "academia stuff" was worth it at all
|
# ? Jun 17, 2013 10:29 |
|
MeruFM posted:C++ hits the market that needs to be fast with the trade-off of being either super expensive or buggy. OSes for the former, games for the latter. and when you get lucky to work at a game studio with none of those problems it owns but given that most bugs found in games happen at a high level (things like broken transitions between states, or errors caused by level layout changes and such) and not specific to the way things are some in c++ you'd have games just as buggy if they were written in a diff language like java or c# or whatever else really
|
# ? Jun 17, 2013 10:33 |
|
my stepdads beer posted:do it in regex ftw ban
|
# ? Jun 17, 2013 13:14 |
|
just dump into into your sql server do and some CHARINDEX(LEFT(REPLACE(REVERSE(config_dump),4),2)) easy peasy
|
# ? Jun 17, 2013 13:16 |
|
polpotpi posted:just dump into into your sql server do and some CHARINDEX(LEFT(REPLACE(REVERSE(config_dump),4),2)) smdh if your SQL server doesn't have an XML column type and unctions to parse it
|
# ? Jun 17, 2013 15:08 |
|
Cocoa Crispies posted:smdh if your SQL server doesn't have an XML column type and unctions to parse it of course it does. i use the best of breed microsoft sql server 2012 why would you use xml datatypes tho? if certain operations are faster/easier with string parsing using xml is worthless
|
# ? Jun 17, 2013 15:41 |
use SOAP ure welcome
|
|
# ? Jun 17, 2013 15:44 |
|
use a lang with xml literals like scala thank me later
|
# ? Jun 17, 2013 17:12 |
|
|
# ? May 16, 2024 17:46 |
if ure looking for a standardised way of passing messages between things in a fun and user friendly xml type fashion and you're not using soap then welp
|
|
# ? Jun 17, 2013 17:33 |