|
Soricidus posted:is that like giving hitler due credit for the autobahns? more like ruby for the rails
|
# ? Sep 30, 2015 02:07 |
|
|
# ? Jun 11, 2024 07:16 |
|
Soricidus posted:is that like giving hitler due credit for the autobahns? lol no, symfony isn't remotely that good
|
# ? Sep 30, 2015 02:59 |
|
Symphony is the most enterprisey php has ever php'd note: i have no experience w/ zend stuff
|
# ? Sep 30, 2015 12:03 |
|
today I replaced a php script with a static file, and it felt good except it still has the extension .php because it's easier to tell the server to serve it as a plain file than it is to update urls in the clients I guess this should really go in the terrible programmer thread but hey we're talking about php here right?
|
# ? Sep 30, 2015 20:09 |
|
that's not at all uncommon and is why people have been saying not to use extensions in your urls for a very long time
|
# ? Sep 30, 2015 20:47 |
|
jony ive aces posted:that's dumb, instead of minifying just use a real programming language and compile to bytecode instead, problem solved
|
# ? Sep 30, 2015 21:14 |
|
Plorkyeran posted:that's not at all uncommon and is why people have been saying not to use extensions in your urls for a very long time /showthread.php?noseen=0&threadid=3481275&perpage=40&pagenumber=1171#pti5
|
# ? Sep 30, 2015 21:42 |
|
Bloody posted:/showthread.php?noseen=0&threadid=3481275&perpage=40&pagenumber=1171#pti5 savbb: not a bastion of best practices, news at 11
|
# ? Sep 30, 2015 22:32 |
|
Soricidus posted:today I replaced a php script with a static file, and it felt good one of these days I'm going to completely rewrite my site in Python and I'll have to continue serving the dynamically-generated RSS feed as "rss.php" just to avoid breaking old links deliberately breaking the relationship between URLs and server-side resources in such a brazen way is sort of liberating
|
# ? Sep 30, 2015 22:57 |
|
just 301 the links guys actually why don't browsers offer to update bookmarks when they get a 301
|
# ? Sep 30, 2015 23:05 |
|
"your bookmark returned an error 500 response. complain on facebook?"
|
# ? Sep 30, 2015 23:06 |
|
Bloody posted:/showthread.php?noseen=0&threadid=3481275&perpage=40&pagenumber=1171#pti5 who gives a poo poo what the url looks like. "restful urls" or whatever are stupid cause you can only put one meaningful bit of information in them and you gotta use a query string for everything else anyway
|
# ? Sep 30, 2015 23:59 |
|
Tiny Bug Child posted:who gives a poo poo what the url looks like. "restful urls" or whatever are stupid cause you can only put one meaningful bit of information in them and you gotta use a query string for everything else anyway
|
# ? Oct 1, 2015 01:10 |
|
i'm looking at some haskell posix bindings, and i noticed thath they have separate newtypes for user ids and group ids, but user names and group names are just strings i think that's just copied from types.h, but i'm wondering what people think is correct here. are string types in general less deserving of strong typing? i guess there's an argument that strings are more often mashed together with other strings to display to the user
|
# ? Oct 1, 2015 22:22 |
|
A name is a name. I don't see why a username and a group name should have fundamentally different types; in fact they often *are* the same. IDs are unique and two different kinds of IDs have two semantically unrelated (but syntactically overlapping) representations, so making them separate types makes sense. You should make two things be of different types if it is fundamentally bogus to use one in place of the other. Types shouldn't be used as labels---they are contracts. There's no need to establish contracts all over the place that don't provide any additional safety. Just use regular type aliases in that case. Domain-specific specializations of strings tend to be of a particular structure (i.e., the range of valid strings is much smaller than the range of all strings), so are usually best modeled through some other data structure that serializes to the desired string, rather than directly wrapping a string in a newtype.
|
# ? Oct 1, 2015 22:34 |
|
suffix posted:are string types in general less deserving of strong typing? They're also less deserving of implementation-hiding. A string is a string, but the integer type for some kind of id could be a 32-bit type, a 64-bit type, a pointer-sized type, or what-have-you.
|
# ? Oct 2, 2015 01:13 |
|
Soricidus posted:is that like giving hitler due credit for the autobahns? pepito sanchez posted:more like ruby for the rails
|
# ? Oct 2, 2015 01:44 |
|
i'm going through the spring tutorials, like https://spring.io/guides/gs/device-detection/ so far all of them have had this line "Did you notice that there wasn’t a single line of XML? No web.xml file either. This web application is 100% pure Java and you didn’t have to deal with configuring any plumbing or infrastructure." uh... sure? my guess is that spring was notorious for using xml for everything a decade ago and now they're overcompensating?
|
# ? Oct 2, 2015 12:21 |
|
Wheany posted:i'm going through the spring tutorials, like https://spring.io/guides/gs/device-detection/ maybe they're trying to make sure nobody mistakes them for struts
|
# ? Oct 2, 2015 12:58 |
|
Wheany posted:my guess is that spring was notorious for using xml for everything a decade ago and now they're overcompensating? this
|
# ? Oct 2, 2015 13:46 |
|
prefect posted:maybe they're trying to make sure nobody mistakes them for struts lol
|
# ? Oct 2, 2015 14:10 |
|
so this thread's hate for NULLs made me write an Optional<T> generic and a ValueOrError<T> generic for C++ and now I'm hooked and I'm using them everywhere "hackbunny you gigantic retard-human being why didn't you use Boost.Optional and C++11" well clever guy, boost is a huge dependency I'm trying to avoid and my platform's compiler is old stuck with optional C++0x extensions "hackbunny you feeble-minded turd-stealer why camel case arrrgh" it's a qt project and camel case is the standard project-wide
|
# ? Oct 2, 2015 14:56 |
|
goondolences
|
# ? Oct 2, 2015 14:57 |
|
actually I've never been happier, first time I get to use C++ professionally. blackberry 10 is a pretty good platform too (not the gui stuff though, worst toolkit I've ever seen)
|
# ? Oct 2, 2015 15:00 |
|
bloackberry? did you move to canada?
|
# ? Oct 2, 2015 15:01 |
|
$HUGE_CUSTOMER1 and $HUGE_CUSTOMER2 have a large blackberry userbase. seems it's the only realistic platform for mdm (except techies who go byod with their androids, and top management who get iphones because gently caress you) e: so of course we have to maintain four different applications for the four different platforms (blackberry 5/7 and blackberry 10 are two distinct platforms), and I'm the iphone developer too and every time I hear "vip" or "top management" my blood curdles and I scream internally BUT STILL at least I'm not the one writing java hackbunny fucked around with this message at 15:40 on Oct 2, 2015 |
# ? Oct 2, 2015 15:36 |
|
hackbunny posted:so this thread's hate for NULLs made me write an Optional<T> generic and a ValueOrError<T> generic for C++ and now I'm hooked and I'm using them everywhere isn't initial caps Pascal case? Camel case starts with a lower-case letter.
|
# ? Oct 2, 2015 15:37 |
|
LeftistMuslimObama posted:isn't initial caps Pascal case? Camel case starts with a lower-case letter. I'm ok with it I have great memories of turbo pascal and delphi, in fact pascal was my first Serious Language with Pointers
|
# ? Oct 2, 2015 15:42 |
|
kidding, I'm like a nun in a private school for special kids, I have loved all languages I've worked with, they're my retards
|
# ? Oct 2, 2015 15:44 |
|
hackbunny posted:kidding, I'm like a nun in a private school for special kids, I have loved all languages I've worked with, they're my retards lol
|
# ? Oct 2, 2015 17:02 |
|
http://www.gopherjs.org/blog/2015/09/28/surprises-in-gopherjs-performance/ I did like 4 or 5 double takes while reading this. This guy is pretending real hard that he can't see his emporers dick.
|
# ? Oct 2, 2015 17:27 |
|
hackbunny posted:I'm ok with it I have great memories of turbo pascal and delphi, in fact pascal was my first Serious Language with Pointers i made a naughts & crosses game in delphi in 10th grade with a really lovely brute force opponent that was just an endless chain of if's my teacher was super impressed though and wanted me to explain the algorithm in depth and i was like uhh yeah it just checks everything. like there's not a lot more to say
|
# ? Oct 2, 2015 17:38 |
|
pointsofdata posted:http://www.gopherjs.org/blog/2015/09/28/surprises-in-gopherjs-performance/ "goroutines" lol
|
# ? Oct 2, 2015 18:38 |
|
hackbunny posted:so this thread's hate for NULLs made me write an Optional<T> generic and a ValueOrError<T> generic for C++ and now I'm hooked and I'm using them everywhere having additional optional types at work has made our API's internally much nicer and I am no longer having a continual aneurysm now that the std::pair<optional<value>, optional<error>> type someone wrote before I got there is gone. also gently caress boost optional that poo poo includes 324 header files and that's just loving stupid.
|
# ? Oct 2, 2015 18:43 |
|
lhackbunny posted:$HUGE_CUSTOMER1 and $HUGE_CUSTOMER2 have a large blackberry userbase. seems it's the only realistic platform for mdm (except techies who go byod with their androids, and top management who get iphones because gently caress you) I like Java, very enjoyable to work with
|
# ? Oct 2, 2015 18:46 |
hackbunny posted:so this thread's hate for NULLs made me write an Optional<T> generic and a ValueOrError<T> generic for C++ and now I'm hooked and I'm using them everywhere Hell yeah, this sounds awesome. Is there any chance you could post the source somewhere? I'd love to read through it. edit: Slurps Mad Rips posted:also gently caress boost optional that poo poo includes 324 header files and that's just loving stupid. Jesus, why do they need so many header files? Personally I think the worst part about boost::optional is its implicit conversion to bool, which makes optional<anything_that_is_also_convertible_to_bool> a bad idea. In the past it has caused me some bugs like this. VikingofRock fucked around with this message at 19:07 on Oct 2, 2015 |
|
# ? Oct 2, 2015 18:59 |
|
pointsofdata posted:http://www.gopherjs.org/blog/2015/09/28/surprises-in-gopherjs-performance/ "The GopherJS project first caught my attention about 2 years ago, back when few parts of the Go spec were implemented." lol go 1.0 came out almost four years ago
|
# ? Oct 2, 2015 19:01 |
|
Sweeper posted:l look at this nerd, enjoying computers
|
# ? Oct 2, 2015 19:09 |
|
BRACKET ALL IF STATEMENTS YOU loving COWBOY CODERS gently caress gently caress FHDUOFDGF
|
# ? Oct 2, 2015 19:10 |
|
|
# ? Jun 11, 2024 07:16 |
|
VikingofRock posted:Jesus, why do they need so many header files? Personally I think the worst part about boost::optional is its implicit conversion to bool, which makes optional<anything_that_is_also_convertible_to_bool> a bad idea. In the past it has caused me some bugs like this. Boost optional was written long before C++11 in its current state was even a twinkle in Herb's mustache (according to Boost's version history, it was released on March 19th, 2003 for boost 1.30). It also has to support a bunch of workarounds for older, more broken, compilers and also makes use of the boost template meta programming library which is where most of those includes come from (this also affects boost variant which includes 370 something files and is just hell on earth for compile times) The implicit bool conversion is super stupid and I'm glad we have explicit operator bool which is only implicit in a boolean context
|
# ? Oct 2, 2015 19:19 |