|
did you know? you cannot represent all digits of pi in base ten, owned mathailures
|
# ? Nov 18, 2015 03:54 |
|
|
# ? May 24, 2024 03:50 |
|
Jeffrey of YOSPOS posted:I'm glad that x86 has special instructions to, after adding two numbers, "clean up" the result as if those numbers had actually been BCD. for extra credit, are these instructions actually faster than doing it in software?
|
# ? Nov 18, 2015 03:56 |
|
Notorious b.s.d. posted:for extra credit, are these instructions actually faster than doing it in software? no
|
# ? Nov 18, 2015 04:19 |
|
why do they exist?
|
# ? Nov 18, 2015 04:27 |
|
someone with a lot of money needed them
|
# ? Nov 18, 2015 04:30 |
|
it probably made sense in the 1980s when the 386 isa was defined nothing in x86 ever seems to get removed, just more added
|
# ? Nov 18, 2015 04:34 |
|
i tried to read a 586 architecture book once. i actually understood some of the words in it and i got the sense that x86 is legacy_support.txt
|
# ? Nov 18, 2015 04:39 |
|
Notorious b.s.d. posted:nothing in x86 ever seems to get removed, just more added Your new processor still needs to be able to execute all your old software that you still want to use with it. If you break software compatibility it isn't really x86 any more, it's a new dialect that just happens to resemble it...
|
# ? Nov 18, 2015 05:15 |
|
JawnV6 posted:whats a parser and why do I want one Notorious b.s.d. posted:nothing in x86 ever seems to get removed, just more added Jabor posted:Your new processor still needs to be able to execute all your old software that you still want to use with it. If you break software compatibility it isn't really x86 any more, it's a new dialect that just happens to resemble it...
|
# ? Nov 18, 2015 06:01 |
|
don't forget to toggle your A20 gate every startup
|
# ? Nov 18, 2015 08:10 |
So tonight my first official contribution to open source got merged! It was removing an outdated lint in the Rust compiler. I feel pretty cool! Thanks to this thread for getting me inspired to actually go out and contribute. edit: specifically it was this post that got me to do it: fart simpson posted:do it. there's a lot of cool open source projects out there that have stuff that needs doing but nobody to do it VikingofRock fucked around with this message at 08:35 on Nov 18, 2015 |
|
# ? Nov 18, 2015 08:33 |
|
|
# ? Nov 18, 2015 09:11 |
|
tef posted:did you get fishmeched on facebook worse, I fishmeched someone on facebook and then shitposted when it got hopeless I just hope I didn't alienate a potential future employer well at least I was reminded of this remarkable little library
|
# ? Nov 18, 2015 10:45 |
|
shitposting wasn't very fishmech of me and I apologize
|
# ? Nov 18, 2015 10:51 |
|
hackbunny posted:just got into an incredibly stupid discussion on facebook (!) this is one of my favorite posts itt
|
# ? Nov 18, 2015 12:57 |
|
jony neuemonic posted:sql is a good dsl for working with data and using orms discourages you from learning and using it.
|
# ? Nov 18, 2015 13:23 |
|
use a stored proc with optional parameters, then theres a bit of boilerplate in your sql to null check
|
# ? Nov 18, 2015 13:29 |
|
just, whatever you do, don't do it through string concatenation
|
# ? Nov 18, 2015 13:45 |
|
yeah dont be tempted to write dynamic sql in ur proc, that way trouble lies
|
# ? Nov 18, 2015 13:50 |
|
drat, trap remains unsprung
|
# ? Nov 18, 2015 13:56 |
|
Sagacity posted:can you explain how you handle (without any orm) dynamically building up a query, e.g. when you have a bunch of search fields that may or may not be filled in? use something like arel
|
# ? Nov 18, 2015 13:57 |
|
string query = "SELECT " + select + " FROM " +table; // TODO: improve this somehow?
|
# ? Nov 18, 2015 13:58 |
|
Bloody posted:string query = "SELECT " + select + " FROM " +table; // TODO: improve this somehow?
|
# ? Nov 18, 2015 14:47 |
|
var query = $"SELECT {select} FROM {table}"; // updated for new features
|
# ? Nov 18, 2015 14:48 |
|
mysql_real_escape_string(query)
|
# ? Nov 18, 2015 14:53 |
|
Barnyard Protein posted:why do they exist? tef posted:someone with a lot of money needed them one of the early markets for microprocessors was desktop and handheld calculators. it makes sense to use bcd as the number format there since the output would have been seven segment displays for each digit and you would need to convert it to something bcd-like anyway
|
# ? Nov 18, 2015 15:20 |
|
Luigi Thirty posted:mysql_real_escape_string(query) i love this function
|
# ? Nov 18, 2015 15:53 |
|
i set up intellij for erlang and let me tell you having a sweet IDE doesn't mean you have any idea at all what you're doing
|
# ? Nov 18, 2015 17:00 |
|
it looks a lot nicer than notepad++ tho
|
# ? Nov 18, 2015 17:01 |
|
Captain Foo posted:i set up intellij for erlang and let me tell you having a sweet IDE doesn't mean you have any idea at all what you're doing
|
# ? Nov 18, 2015 17:03 |
|
being able to whizz around an ide is almost guaranteed to impress your manager more than being able to write good code they aren't listening to a god damned word you say anyway
|
# ? Nov 18, 2015 17:06 |
|
this is a side project that has 0 to do with my job but i am doing for fun in downtime
|
# ? Nov 18, 2015 17:15 |
|
is there a C source code style guide for accessibility? i remember reading somewhere a while back that screen readers could handle some syntax better than others. like, putting a space between 'if' and '(', so if (, not if(
|
# ? Nov 18, 2015 17:53 |
|
St Evan Echoes posted:being able to whizz around an ide is almost guaranteed to impress your manager more than being able to write good code all of our managers are programmers, all the way to the top. even the ceo and pres were programmers before they became money golems. there is no fooling anybody about your coding skills around here.
|
# ? Nov 18, 2015 18:12 |
|
LeftistMuslimObama posted:became money golems.
|
# ? Nov 18, 2015 18:14 |
|
LeftistMuslimObama posted:all of our managers are programmers, all the way to the top. even the ceo and pres were programmers before they became money golems. there is no fooling anybody about your coding skills around here.
|
# ? Nov 18, 2015 18:18 |
|
LeftistMuslimObama posted:all of our managers are programmers, all the way to the top. even the ceo and pres were programmers before they became money golems. there is no fooling anybody about your coding skills around here.
|
# ? Nov 18, 2015 18:18 |
|
St Evan Echoes posted:being able to whizz around an ide is almost guaranteed to impress your manager more than being able to write good code Hell yeah, people lol at me for using Eclipse and blindly say "lol use intellij " but if they could see me actually using Eclipse they would have no idea what I'm doing or how I'm doing it Meanwhile I get a message on lync with someone asking me how they can do a complete source code search in intellij
|
# ? Nov 18, 2015 21:00 |
|
Valeyard posted:Hell yeah, people lol at me for using Eclipse and blindly say "lol use intellij " but if they could see me actually using Eclipse they would have no idea what I'm doing or how I'm doing it open the terminal, type ag 'foo'
|
# ? Nov 18, 2015 21:11 |
|
|
# ? May 24, 2024 03:50 |
|
Valeyard posted:Hell yeah, people lol at me for using Eclipse and blindly say "lol use intellij " but if they could see me actually using Eclipse they would have no idea what I'm doing or how I'm doing it most people here haven't used an IDE since college my manager makes fun of people who have their vim way too pimped out
|
# ? Nov 18, 2015 21:12 |