|
LeftistMuslimObama posted:lol you know javascript is bad when a mumps developer takes issue
|
# ? Oct 6, 2016 18:00 |
|
|
# ? May 25, 2024 07:52 |
|
there's something satisfying about writing trivial JavaScript code. maybe that's why it's so popular in
|
# ? Oct 6, 2016 18:04 |
|
Powerful Two-Hander posted:2. i sent the new dev off [...], two weeks later this one is your fault to be fair
|
# ? Oct 6, 2016 18:18 |
|
Sapozhnik posted:tiny bugs child
|
# ? Oct 6, 2016 18:20 |
|
Bloody posted:the always-brilliant dan luu wrote a bunch more about verilog weirdness here: http://danluu.com/why-hardware-development-is-hard/ quote:You can think of hardware as some state, with pure functions connecting the state elements. This makes it natural to think about modeling hardware in a functional programming language. there's zero consideration for high end performance, like speed path/timing, and if you don't care about that why are we making hardware in the first place? like you make hardware because you really, really care about how the state is arranged, connected, and computed and i don't understand how FP aligns with that goal
|
# ? Oct 6, 2016 18:37 |
|
it is truly, deeply incredible to me that the entire internet is built on Javascript
|
# ? Oct 6, 2016 18:39 |
|
Sapozhnik posted:dear god svtb&ovm really cleaned up a lot of the interface concerns, I quite liked working with them. of course, to move to a FPGA model, all your fancy arrays and structures had to be flattened out, so parts of the hierarchy disappear and you get signal names like frontend_icache_31_8_tag
|
# ? Oct 6, 2016 18:45 |
|
Sapozhnik posted:dear god bingo
|
# ? Oct 6, 2016 18:54 |
|
i just want a low-level hardware description language that is capable of even trivially basic abstractions. like embedded c vs assembly
|
# ? Oct 6, 2016 18:57 |
|
Despite all that i really want to get into hw design because it looks fun How do i get babby's first hw design (well, probably validation monkey) job
|
# ? Oct 6, 2016 19:11 |
|
Sapozhnik posted:Despite all that i really want to get into hw design because it looks fun they're probably looking for intel people, or the job is at intel, but i've never cared enough about those sorts of jobs to ask them the basics, like, what is a platform validation technician (also because the headhunters do not know)
|
# ? Oct 6, 2016 19:13 |
|
FamDav posted:* don't rely on your database for pkey uniqueness also you don't get sequence id prediction attacks if you do use autoincrement keys, encrypt them before passing them out to a user
|
# ? Oct 6, 2016 19:18 |
|
dick traceroute posted:Oracle doesn't have a boolean type either (well ok, it does, but only in Pl sql, you can't query with it or store it) lol loving oracle.txt right there
|
# ? Oct 6, 2016 19:19 |
|
Deep Dish Fuckfest posted:why? i'm genuinely curious and i can't recall hearing about that before. or think of any advantages uuids would have off the top of my head autoincrement is bad for identity because people will use it for ordering then you can't backfill past data, which you'll eventually need to do autoincrement is bad because you can't do it when you need to shard, which you eventually will. use a uuid, use a timestamp, by default. if you don't know how autoincrement can fail, you shouldn't be using it
|
# ? Oct 6, 2016 19:26 |
|
Finster Dexter posted:lol loving oracle.txt right there
|
# ? Oct 6, 2016 19:29 |
|
I use random 64-bit ints for PKs. Well, 63-bit really, because negative integer PKs are icky. I mean, once upon a time the space of 64-bit integers was considered good enough for encryption key purposes, so it's probably fine, riiight?
|
# ? Oct 6, 2016 19:33 |
|
dick traceroute posted:Oracle doesn't have a boolean type either (well ok, it does, but only in Pl sql, you can't query with it or store it) yeah our old oracle poo poo did this too. the char(1) thing i understand because oracle has no boolean, but what's with the -999999? is NULL not NULL enough for oracle people???
|
# ? Oct 6, 2016 19:36 |
|
Sapozhnik posted:I use random 64-bit ints for PKs. Well, 63-bit really, because negative integer PKs are icky. how do you avoid collisions? cross your fingers?
|
# ? Oct 6, 2016 19:45 |
|
JewKiller 3000 posted:yeah our old oracle poo poo did this too. the char(1) thing i understand because oracle has no boolean, but what's with the -999999? is NULL not NULL enough for oracle people??? NULL = 0 is true iirc HoboMan fucked around with this message at 19:48 on Oct 6, 2016 |
# ? Oct 6, 2016 19:45 |
|
One of my favorite SO posts of all time: http://stackoverflow.com/questions/1705008/simple-proof-that-guid-is-not-unique
|
# ? Oct 6, 2016 19:47 |
|
HoboMan posted:how do you avoid collisions? cross your fingers? 2^-63 is a very small probability. You're going to have far more network errors than bounced requests due to random PK collisions unless your data store is truly gigantic. None of my applications are going to get THAT big.
|
# ? Oct 6, 2016 19:48 |
|
CRIP EATIN BREAD posted:im the guy fieri image in a text document aka "an emoji"
|
# ? Oct 6, 2016 19:48 |
|
there's one table in our db that has a "priority" column. possible values are high, medium and low. so obviously it's a char(1) column holding "H", "M" and "L" values. but okay, whatever. it's trivial enough at the database layer to code a function that converts it to a numerical enum. and indeed, we do have such a function. code:
lmao
|
# ? Oct 6, 2016 19:51 |
|
NihilCredo posted:there's one table in our db that has a "priority" column. possible values are high, medium and low. so obviously it's a char(1) column holding "H", "M" and "L" values. As long as that's encapsulated at the db layer, I don't see a problem? I've seen enums handled similarly before. I really am not a fan of storing enums as numbers in the db. Stringify it and then Enum.Parse it on the way back out, because it's way harder to know wtf is going on with a data problem in the db when you have nothing but int columns.
|
# ? Oct 6, 2016 19:56 |
|
tef posted:autoincrement is bad for identity because people will use it for ordering that's not really autoincrement's fault, though? it just means you've got a poorly designed schema, and are exposing a poorly designed interface to your data. all other things being equal, sure, nipping this sort of mis-use in the bud is nice but it seems to me like it's a symptom of a bigger problem tef posted:autoincrement is bad because you can't do it when you need to shard, which you eventually will. this also seems kind of a weird reason to me. it's like saying "don't use transactions, they're not available in some nosql dbs which you'll want to use to scale up! and even if they are, distributed transactions can be slow!" tef posted:if you don't know how autoincrement can fail, you shouldn't be using it well duh, that's true for basically everything
|
# ? Oct 6, 2016 20:01 |
|
Deep Dish Fuckfest posted:what the gently caress? how can this be common enough to be deemed an antipattern? what possible reason would you have to do this when there's a boolean type and null is handled differently from every- ah gently caress it why am i trying to make sense of this there was some project that had a composite unique constraint on some text and a boolean. the boolean was "deleted" or something. it was changed to nullable because turns out there can be several entities with the same code, but only one can be active at once. so code + false = currently active, not deleted. code + null = a soft-deleted instance, no longer active code + true (not used) apparently unique constraints don't apply to null.
|
# ? Oct 6, 2016 20:02 |
|
Wheany posted:code + false = currently active, not deleted. this is beautiful, they should have sent a poet
|
# ? Oct 6, 2016 20:05 |
|
HoboMan posted:NULL = 0 certainly not, null does not = anything. you are probably thinking of the oracle conflation of null and '' code:
|
# ? Oct 6, 2016 20:05 |
|
JewKiller 3000 posted:certainly not, null does not = anything. you are probably thinking of the oracle conflation of null and '' holy poo poo oracle is the p-lang of RDBMS! I will now call it poracle
|
# ? Oct 6, 2016 20:16 |
|
Finster Dexter posted:holy poo poo oracle is the p-lang of RDBMS! I will now call it poracle why do you think it's called pl/sql
|
# ? Oct 6, 2016 20:16 |
|
anthonypants posted:they're probably looking for intel people, or the job is at intel, but i've never cared enough about those sorts of jobs to ask them the basics, like, what is a platform validation technician (also because the headhunters do not know)
|
# ? Oct 6, 2016 20:17 |
|
St Evan Echoes posted:nothing on the loving (+) operator
|
# ? Oct 6, 2016 20:19 |
|
Bloody posted:i just want a low-level hardware description language that is capable of even trivially basic abstractions. like embedded c vs assembly i want to go back to GUI HDL's
|
# ? Oct 6, 2016 20:20 |
|
JawnV6 posted:i'd expect that role is doing post-silicon support, like sysadmin duties for new hardware. keeping BIOSes current, building specific images when requested for engineering customers. a good technician is worth their weight in gold, but it would be kinda far from HDL work. i do know a guy who's made that transition & is now an engineering manager though i can work openembedded (sort of), does that count lol
|
# ? Oct 6, 2016 20:21 |
|
JawnV6 posted:i'd expect that role is doing post-silicon support, like sysadmin duties for new hardware. keeping BIOSes current, building specific images when requested for engineering customers. a good technician is worth their weight in gold, but it would be kinda far from HDL work. i do know a guy who's made that transition & is now an engineering manager though
|
# ? Oct 6, 2016 20:24 |
|
Sapozhnik posted:intellij gets some really fancy stuff right and a whole bunch of extremely basic stuff completely wrong. i bought a license because i wanted to support the developers and i regret doing so. "want to add an extra level of indentation to wrapped lines?" what does this even mean? indenting when you line break an expression? intellij does that for me. none of the rest of that poo poo seems to be a problem for me either. except maybe the compiler plugin poo poo, but gently caress using compiler plugins for the most part. usually a miserable idea. maven integration is fantastic, especially compared to the poo poo show that is still Eclipse maven integration.
|
# ? Oct 6, 2016 20:29 |
|
so if i can access object properties like this: obj[1]=10,obj["gently caress you"]=420 and arrays can also have subscripts like obj["gently caress you"] what the gently caress is the point of an array in javascript? just a length property that becomes worthless if you put in string properties?
|
# ? Oct 6, 2016 20:30 |
|
it's not difficult from a technical chops perspective, most of the toolchains will be there already. it's dealing with the shithead engineers, troubleshooting hardware problems that may exist outside your scope entirely, etc. idk if that role would include reworks or if you'd just be responsible for tracking that work was getting done i was debug lead on a team with ~3 technicians supporting like 100 systems? with early silicon it's easy for 1 system to be responsible for a non-trivial percentage of your test content running
|
# ? Oct 6, 2016 20:30 |
|
Finster Dexter posted:As long as that's encapsulated at the db layer, I don't see a problem? check the function's signature
|
# ? Oct 6, 2016 20:31 |
|
|
# ? May 25, 2024 07:52 |
|
JewKiller 3000 posted:yeah our old oracle poo poo did this too. the char(1) thing i understand because oracle has no boolean, but what's with the -999999? is NULL not NULL enough for oracle people??? I have pondered this one quite a bit. Best explanation we've been able to come up with is he didn't know about nullable columns at the time.
|
# ? Oct 6, 2016 20:32 |