Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

eschaton posted:

that's because its creators were once smart but dropped out of the industry in the late 1970s and don't believe anything done since has any worth

in other words, they're arrogant idiots

but I thought everything good in computer science was first done in the '60s and only now starting to trickle down to common langs

checkmate????

Adbot
ADBOT LOVES YOU

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

Mahatma Goonsay posted:

I just got to the point of learn you a haskell where they try and implement javascript truthiness and it made me think of this thread.

on a side note, what exact is the use case for haskell? I remember someone here was using it to parse out some weird lisp or something like that.

https://github.com/Gabriel439/post-rfc/blob/master/sotu.md

its really good at parsing & writing compilers, also pretty good at writing servers, and i love it for scripting instead of something like python. it's also used as a research language i guess which is why it gets some p esoteric features especially in the ghc extensions, but it isn't crazy like a real research language

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

pokeyman posted:

but I thought everything good in computer science was first done in the '60s and only now starting to trickle down to common langs

checkmate????

most of the major advances in programming happened in the mid to late 1970s through the early 1980s at places like MIT AI and SAIL and Xerox PARC

that was after the original C & UNIX creators stopped paying attention to the outside world

there's a reason modern UNIX derives from the huge improvements added by UCB and Carnegie Mellon rather than the poo poo AT&T came up with (last good AT&T UNIX was v7)

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

fart simpson posted:

https://github.com/Gabriel439/post-rfc/blob/master/sotu.md

its really good at parsing & writing compilers, also pretty good at writing servers, and i love it for scripting instead of something like python. it's also used as a research language i guess which is why it gets some p esoteric features especially in the ghc extensions, but it isn't crazy like a real research language

you had me right up until that last clause

Haskell is pretty crazy, and would be better written with more uniform syntax like one built out of s-expressions

Asymmetrikon
Oct 30, 2009

I believe you're a big dork!
A large subset of Haskell's syntax is uniform and very good (anything dealing with function application), though it would've been better if (|>) and (>>) had been invented before ($) and (.)

Notorious b.s.d.
Jan 25, 2003

by Reene

eschaton posted:

there's a reason modern UNIX derives from the huge improvements added by UCB and Carnegie Mellon rather than the poo poo AT&T came up with (last good AT&T UNIX was v7)

att had the grace and humility to know when they were licked. svr4 was the final admission that sun and ucb were right all along

people who went on trolling about system v sucking in the 90s and 2000s were just weirdy beardies. realistically, the war ended in 1988

CPColin
Sep 9, 2003

Big ol' smile.

Valeyard posted:

does it "just work" and is actually useful?

With "Build Automatically" and "Synchronize on Build" both turned on, updated class files get to my remote server in like two seconds after I hit save. Not bad.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.

pokeyman posted:

doesn't mean browsers all do the same/correct thing

Yeah, this is the issue with failing gracefully, is that in the real world it's not graceful at all, SOMETHING depends on that HTML being correctly formed, CSS or Javascript. I wasn't part of the meeting that 'rejected' XHTML, but the fact that we can accept 'use strict' as a thing, but not a <doctype> for new sites that rejects broken html rather than rearranging it is basically nuts.

Shaggar
Apr 26, 2006
web "developers" also like javascript. its basically a lost cause

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

eschaton posted:

you had me right up until that last clause

Haskell is pretty crazy, and would be better written with more uniform syntax like one built out of s-expressions

maybe but actual research languages can get even weirder

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

eschaton posted:

please, that's web "devs"

if they were actual developers, requiring HTML to be valid XML wouldn't be a problem, it would be something they'd demand because then they could build tools to work with it

imagine if CAD software couldn't impose validity constraints on models because designers insisted they couldn't keep track of that, that's what web "devs" whining about document validity sounds like

the biggest source of problems was ads. putting ads on your page means letting the absolute bottom of the barrel inject arbitrary js (or back then flash) into your website. most ad networks just outright didn't support xhtml at all because they used document.write to inject their ads, and the only way you could actually guarantee that your site would work with ads was if you hand-curated them all, which is practical for approximately 0% of ad-supported websites

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

pokeyman posted:

ime this is specified in excruciating detail with test cases already written for you, so if you've genuinely found some unspecified case that's prolly a bug in the spec.

doesn't mean browsers all do the same/correct thing

it has thankfully been years since i've followed such things so maybe they gave up on this, but early on the goal was to produce a "total" specification that would precisely detail the error recovery such that every stream of bytes read from /dev/random would have an unambiguously correct way to parse it. this would still leave a lot of room for rendering inconsistencies, but it would nearly eliminate inconsistencies due to malformed markup

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Plorkyeran posted:

the biggest source of problems was ads. putting ads on your page means letting the absolute bottom of the barrel inject arbitrary js (or back then flash) into your website.

even more reason browser vendors should have just said HTML5 is XML and invalid documents don't render

you aren't selling me on your position here

ads = cancer

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed
it would be very easy to modify an adblocker plugin to just clear the entire page any time an ad is detected if that's what you really want

most people prefer to use browsers that can actually render the web, and html5 came around before google successfully took away people's ability to not upgrade

Valeyard
Mar 30, 2012


Grimey Drawer

CPColin posted:

With "Build Automatically" and "Synchronize on Build" both turned on, updated class files get to my remote server in like two seconds after I hit save. Not bad.

drat, this the dream right here. From 15 minute turnaround to 2 seconds

gonadic io
Feb 16, 2011

>>=
Terrible programmer status: deleted some useless code as part of some other changes. Everything stopped working and because it was my hobby project I had been lax about committing properly.

Now, 3 days later I found the same SO page I'd got it from in the first place readded the actually not useless code, and added a comment pointing out how it's necessary

qntm
Jun 17, 2009
there was a period of time when I served my website with the Content-Type: application/xhtml+xml HTTP header, which forces the browser to fail to render the page and give a parsing error if there's a mistake in your XHTML. I was able to do this because my markup is correct and my commenting system had a hand-written parser which would only accept a carefully-crafted subset of XHTML

but there were a bunch of odd browsers which couldn't understand the header and failed to render it anyway

what I'm saying is that you live in a world which has fallen short of my glorious perfection

Workaday Wizard
Oct 23, 2009

by Pragmatica
watched the jrebel video to the end https://zeroturnaround.com/software/jrebel/#video

~cringe~

suffix
Jul 27, 2013

Wheeee!

MALE SHOEGAZE posted:

go lives at a weird level of abstraction

make loving sure you use godep

it won't make the language any better, but at least you won't have to rewrite everything in three months when your dependencies have skewed irreparably out of sync

HoboMan
Nov 4, 2010

Maluco Marinero posted:

Yeah, this is the issue with failing gracefully, is that in the real world it's not graceful at all, SOMETHING depends on that HTML being correctly formed, CSS or Javascript. I wasn't part of the meeting that 'rejected' XHTML, but the fact that we can accept 'use strict' as a thing, but not a <doctype> for new sites that rejects broken html rather than rearranging it is basically nuts.

Speaking of HTML meetings, this video makes me mad:
https://www.youtube.com/watch?v=Q4dYwEyjZcY

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


HoboMan posted:

Speaking of HTML meetings, this video makes me mad:
https://www.youtube.com/watch?v=Q4dYwEyjZcY

whoa, how can a guy be so wrong?

FamDav
Mar 29, 2008
well he's old and white

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
i know ruby and all that but i got bit by awful behavior that i need to complain about

code:
2.1.5 (main):0 > require 'uri'
=> true
2.1.5 (main):0 > ohai = URI.parse('foo.com')
=> #<URI::Generic:0x007ffc89949b10 URL:foo.com>
2.1.5 (main):0 > ohai.scheme
=> nil
2.1.5 (main):0 > ohai.host
=> nil
2.1.5 (main):0 > ohai.port
=> nil
cool "fail silently" behavior

JawnV6
Jul 4, 2004

So hot ...

eschaton posted:

please, that's web "devs"

if they were actual developers, requiring HTML to be valid XML wouldn't be a problem, it would be something they'd demand because then they could build tools to work with it

imagine if CAD software couldn't impose validity constraints on models because designers insisted they couldn't keep track of that, that's what web "devs" whining about document validity sounds like

what CAD do you mean? VLSI DRC is tuned to be so obnoxious as to require waivers. EE CAD will let you route acute angles that will cause silkscreening issues, or run a ground trace right under a crystal. ME CAD systems have 'designer modes' with unrealizable 2d NURBS, even after being banged into a non-intersecting geometry you still need a DFM review by a tooling expert. i think solidworks still balks at an extruded figure-8's midpoint.

they're safety nets, and poor ones that still require human experts to cover the gaps

Jerry Bindle
May 16, 2003
what is the standard procedure for reviewing software design? I've got a class diagram, a sequence diagram, and a state chart that capture the idea well. i'd prefer to hook my laptop up to a projector and present the idea, but coworker wants a document. its a reasonable request, but i don't know what level of detail is needed, or what starting assumptions he may have about what the design is doing that need to be cleared up, or what concepts to focus on, you know, stuff that could be handled naturally by meeting in person.

HoboMan
Nov 4, 2010

does anyone know of a thing that will check my HTML in a strict way? i can't find anything obviously wrong with it, but it's a huge file.

qntm
Jun 17, 2009

HoboMan posted:

does anyone know of a thing that will check my HTML in a strict way? i can't find anything obviously wrong with it, but it's a huge file.

The W3C Markup Validator has always worked for me.

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

HoboMan posted:

does anyone know of a thing that will check my HTML in a strict way? i can't find anything obviously wrong with it, but it's a huge file.

https://html5.validator.nu/

FamDav
Mar 29, 2008

Blinkz0rz posted:

i know ruby and all that but i got bit by awful behavior that i need to complain about

code:
2.1.5 (main):0 > require 'uri'
=> true
2.1.5 (main):0 > ohai = URI.parse('foo.com')
=> #<URI::Generic:0x007ffc89949b10 URL:foo.com>
2.1.5 (main):0 > ohai.scheme
=> nil
2.1.5 (main):0 > ohai.host
=> nil
2.1.5 (main):0 > ohai.port
=> nil
cool "fail silently" behavior

ruby is very much so a fail silently language

code:
irb(main):001:0> a = []
=> []
irb(main):002:0> b = [nil]
=> [nil]
irb(main):003:0> a[0]
=> nil
irb(main):004:0> b[0]
=> nil
irb(main):005:0>

cinci zoo sniper
Mar 15, 2013




what do i do in python when i want to read more stuff than i have ram? i.e. from 80 gb file i can read whatever amount i want, but what do i do when that amount happens to be 20gb and im on a pc with 16gb of ram (simplying it but w/e)

Zaxxon
Feb 14, 2004

Wir Tanzen Mekanik

kalstrams posted:

what do i do in python when i want to read more stuff than i have ram? i.e. from 80 gb file i can read whatever amount i want, but what do i do when that amount happens to be 20gb and im on a pc with 16gb of ram (simplying it but w/e)

you will just use a lot of virtual memory and it will go slower.

cinci zoo sniper
Mar 15, 2013




Zaxxon posted:

you will just use a lot of virtual memory and it will go slower.
nah, it told me to gently caress off, yanking a MemoryError out, thought that might be feature of numpy or matplotlib, not necessarily the barebones python 2.7.11

HoboMan
Nov 4, 2010

so i have a javascript best practices (lol) question: should i try to do everything with jquery objects rather than just directly using dom objects when i'm messing with the html or should i prefer using dom objects over jquery or does it not matter at all?

b0lt
Apr 29, 2005

kalstrams posted:

nah, it told me to gently caress off, yanking a MemoryError out, thought that might be feature of numpy or matplotlib, not necessarily the barebones python 2.7.11

or you ran out of address space because you're using a 32 bit version of python

cinci zoo sniper
Mar 15, 2013




b0lt posted:

or you ran out of address space because you're using a 32 bit version of python
hm, thats a good call. ill check this and plugins, and maybe then i can plot obscene amounts of data at once

AWWNAW
Dec 30, 2008

HoboMan posted:

so i have a javascript best practices (lol) question: should i try to do everything with jquery objects rather than just directly using dom objects when i'm messing with the html or should i prefer using dom objects over jquery or does it not matter at all?

nothing matters hobo man

Valeyard
Mar 30, 2012


Grimey Drawer

HoboMan posted:

so i have a javascript best practices (lol) question: should i try to do everything with jquery objects rather than just directly using dom objects when i'm messing with the html or should i prefer using dom objects over jquery or does it not matter at all?

using jquery will make your life easier, and you will become good at using jquery specifically and not so much native javascript

as long as you arent doing anything whacky then you probably wont need to worry about the performance hit of using jquery selectors everywhere

Valeyard
Mar 30, 2012


Grimey Drawer
javascript best practice is to not use it at all

HoboMan
Nov 4, 2010

i figure jquery is good and has better defined behavior, but my biggest problem is with the .val() method.
it don't feel good to use
JavaScript code:
$("#myTurdColor").val("brown");
to assign when i could be doing
JavaScript code:
document.getElementById("myTurdColor").value = "brown";
i guess could just do
JavaScript code:
$("#myTurdColor")[0].value = "brown";
but i feel like that kinda defeats the purpose of using jquery

HoboMan fucked around with this message at 23:00 on Apr 29, 2016

Adbot
ADBOT LOVES YOU

Vanadium
Jan 8, 2005

Blinkz0rz posted:

i know ruby and all that but i got bit by awful behavior that i need to complain about

code:
2.1.5 (main):0 > require 'uri'
=> true
2.1.5 (main):0 > ohai = URI.parse('foo.com')
=> #<URI::Generic:0x007ffc89949b10 URL:foo.com>
2.1.5 (main):0 > ohai.scheme
=> nil
2.1.5 (main):0 > ohai.host
=> nil
2.1.5 (main):0 > ohai.port
=> nil
cool "fail silently" behavior

ohai.path

not everything that has .com in it is a website

  • Locked thread