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.
 
  • Post
  • Reply
Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
python ceased to be cool the minute an advertising company bought up everything related to it

Adbot
ADBOT LOVES YOU

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Ronald Raiden posted:

nice troll post




but seriously lambdas own. I do kind of wish python could also do anonymous classes, that's one thing that java can do that is kind of nice. That said its way more necessary in java. But still.

wait are classes in python not just objects?
code:
      f = Class.new(::BlankSlate)
      f.reveal :instance_variable_set
      unless f.instance_methods.include? :class
        f.reveal :class
      end
      f.new

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

http://docs.python.org/tutorial/index.html :toot: just install it and mash around it's not like real programming where you have to make an effort, except for lining poo poo up so it's indented
it's true p-languages are so friendly you'll actually program for free 'cause you'll be having fun

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

volkadav posted:

I'm glad that you like writing performant server-side code, good on you, but realize that node is only (sort of, in some situations) fast because it embodies a particular design pattern, not because it happens to be javascript.

lol @ anyone who thinks writing js is writing performant server-side code

but that's not actually important if your business is a normal for-profit business and not some valley vc "web scale" bullshit that requires suckling at a constant teat of investors to keep functioning: http://37signals.com/svn/posts/1509-mr-moore-gets-to-punt-on-sharding

dhh posted:

The general advise on sharding is that you don’t until you have to. It’s similar to Martin Fowler’s First Law of Distributed Object Design: Don’t distribute your objects! Sharding is still relatively hard, has relatively poor tool support, and will definitely complicate your setup.

Now I always knew that the inevitable day would come where we would have no choice. We would simply have to shard because there was no more vertical scaling to be done. But that day seems to get pushed further and further into the future.

Bigger caches, more reads
Our read performance is in some aspect being taken care of by the fact that you can get machines with 256GB RAM now. We upgraded the Basecamp database server from 32GB to 128GB RAM a while back and we thought that would be the end of it.

The box was maxed out and going beyond 128GB at the time was stupid expensive. But now there’s 256GB to be had at a reasonable price and I’m starting to think that by the time we reach that, there’ll be reasonably priced 512GB machines.

So as long as Moore’s law can give us capacity jumps like that, we can keep the entire working set in memory and all will be good. And even if we should hit a ceiling there, we can still go to active read slaves before worrying about sharding.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Rufo posted:

i do still rly enjoy digging my teeth into a problem and am mad into maths+cs+coding but i dont tend to do it in my free time for fun any more. how am i supposed to differentiate myself in the eyes of an interviewer from some useless shitlord that knows nothing

like are there any interviewers out there who will actually give me a pencil + paper and let me play about with ideas and solve some problems rather than asking me about poo poo i dont even remember

my interview for current position was good like that: a tour of my github, i describe how and why i wrote some things certain ways, etc.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

CaptainMeatpants posted:

to weed out the undesirables we always ask:

for a given string, output a list of unique characters and their number of occurrences

like 90% of applicants can't figure it out

if they use a bloom filter you can disqualify them on account of then you know they read hacker news

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
code:
Set.new(youre_post.chars).to_a

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

trex eaterofcadrs posted:

i think perl/ruby are wrong here cause it's confusing as poo poo (even tho they are implemented with hashing algos)

map is the perfect name cause it's what we've been calling that concept (function from X->Y) since set theory got all hollywood

well "map" is already taken by the first half of the "map-reduce" concept

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Sweevo posted:

every criticism of c++ is literally "bloo bloo syntax"
same as perl

it turns out that some syntaxes are bad and c++ and perl have bad syntaxes

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

i barely GNU her! posted:

did u know: template metaprogramming is turing-complete

man if only i could do that with other languages

code:
class Integer
  def factorial
    (1..self).inject(:*)
  end
end

cprog = <<EOF
#include "stdio.h"
int main() {
  puts("#{4.factorial}");
  return 0;
}
EOF

File.open('/tmp/prog.c', 'w'){|f| f.write cprog}
`cc -o /tmp/prog /tmp/prog.c`
File.delete '/tmp/prog.c'

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Tiny Bug Child posted:

it is a language that lets you tell a computer how to do things

it is a programming language

and since it's not implemented by incompetents, it's not nearly as problematic as php

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

CaptainMeatpants posted:

i didnt actually think all yall would try to solve that thing over and over

you should know better

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Ronald Raiden posted:

so is

do your resume in latex and make sure that's typeset

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Ronald Raiden posted:

lets do another one

Write a program that reads positive integers from STDIN. For each integer, print the number of times the digit '1' occurs when counting from zero to that integer.

code:
in.txt:
1
2
5
20
30
40
82
10568

out.txt:
1
1
1
12
13
14
19
4786

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

That Turkey Story posted:

... i think you're missing the point, bro

- somebody who wants their compiler to implement factorials

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

code:
// Generated by JSIL v0.5.0 build 22067. See [url]http://jsil.org/[/url] for more information. 

var $asm00 = JSIL.GetAssembly("8dabd52, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
var $asm01 = JSIL.GetAssembly("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
var $sig = new JSIL.MethodSignatureCache();

/* Generated by JSIL v0.5.0 build 22067. See [url]http://jsil.org/[/url] for more information. */ 
var $asm00 = JSIL.DeclareAssembly("8dabd52, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");

JSIL.MakeStaticClass("Program", true, [], function ($) {

  $.Method({Static:true , Public:true }, "Main", 
    $sig.get(17348, null, [], []), 
    function Main () {
      $asm01.System.Console.WriteLine("Hello JSIL World!");
    }
  );

});

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

JawnV6 posted:

lol let's load an entire shell just to run 5 lil instructions
code:
top: cmpb $0x0, (%eax)
je exit
inc 0x40(%eax)
inc eax
jmp top
exit:

now print the result in the same format

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ppp posted:

should i just write a pusha/popa macro for 64 bit x86
don't write asm, that's what compilers are for

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

I liked 'the ghetto' more

https://www.youtube.com/watch?v=zY-IueSMAPc
the back story for that is pretty hilarious

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

isn't it just a whiny ruby crank wrote a blog post

whiny ruby/erlang crank who is a good friend of mine

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ppp posted:

java is a piece of poo poo on unix

also on windows, probably beos

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Shaggar posted:

actually its the unix thats poo poo. also dont use non-oracle vms

don't use non-oracle OSes

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

does he victor-post less in real life?

yeah we mostly drink and karaoke

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

passionate dongs posted:

browsers are the de facto application platform because like it or not, yospos.

relying on users to install a thing? relying on users to update a thing? relying on users to configure a thing?

there is no need to have a compiled apps for 99.999999999% of regular person computer activity.

* rides lawnmower off into sunset *
it's true

Developing for HTML, CSS, and js means your poo poo works on every computer and every cell phone and every tablet today

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

MononcQc posted:

They changed something about something I'm used to. Curse you people!

People would literally complain about TV going widescreen just to say.

nah it's objectively worse

i watched my (ostensibly good with computers) dad try to reply to a gmail for a full minute a few weeks ago before I helped him find the mystery meat icon for it

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

TiMBuS posted:

->({});

8======D {} (;

me and i2's wife

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

my stepdads beer posted:

thunderbird is just so bad

another entry in the looooong list of "mail programs worse than sparrow"

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Otto Skorzeny posted:

now you have uncountably many problems
seriously if you're not writing a tutorial about monads using strained analogies to real-world things there's no reason to use Haskell

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ahhh spiders posted:

not flushing the toilet when you take a piss because you want to pretend you're a conservationist and are protecting the environment is the most moronic liberal guilt bullshit i've ever heard of
in rural places with self-contained septic systems it's not a liberal guilt thing but a legit practical thing to do so you don't have to call the honey wagon as often

but lol@ rurals live in a city morans

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ahhh spiders posted:

if that were the case why wouldn't you have a dual-flush toilet
'cause you installed the toilet in the '70s

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

threads? here's a nickel, buy yourself a real concurrency model :smugdog:

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
"i have a trivially parallelizable problem but no library to automatically shard my application based on the number of nodes in my cluster" - somebody using the wrong language

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

rotor posted:

UML is great if your handing off a spec to unwashed jabbering foreigners who don't speak english and not a goddamn thing else

UML sequence diagrams are unironically great for explaining how REST APIs work

(goatse.cx is great for explaining the bad xml kind shaggar likes)

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

java,

(python and erlang are older than java)
and java is missing some very important and useful features python has

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Shaggar posted:

middleware owns cause everyone uses all the good tools + languages unlike in 99% of frontend and some backend stuff.

but i thought you used java and eclipse

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ahhh spiders posted:

it's like athousand years old and even then it was for weirdos

and being a "pascal weenie" isn't a thing like being a "lisp weenie" is

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

HORATIO HORNBLOWER posted:

i have a real interview for a real actual job tomorrow and i could not be more nervous

its frustrating because i'm a C guy mainly i mean i can code a complex C program in my sleep without looking at a single reference and i can do C# and java too but i don't know them nearly as well and the job posting doesn't give a clue what i'd actually be using it has the usual C/C++/C#/Java/Perl/JavaScript/SQL/XML/HTML mumblemess of every programming language that has does or ever will exist and is it too much to ask that you let me know ahead of time what it is you actually epxect me to know

if it's a place you want to work for, they'll ask you about problem-solving and how you would do something from a high level

if it's a place you don't want to work for they'll ask dumb api trivia poo poo

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

HORATIO HORNBLOWER posted:

"place i want to work for" is literally defined as any place willing to pay me $45,000 or more regardless of how crappy the work is

sorry i didn't meanto interrupt im just having a miniature freakout

:staredog:

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

ahhh spiders posted:

you're tedious

Adbot
ADBOT LOVES YOU

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

HORATIO HORNBLOWER posted:

somebody loving hire me already im a loving genius

pm me ur resume

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply