|
fleshweasel posted:basically if your org is ie9 or earlier you're looking at bootstrap. it's disgusting that ie9 is still a thing
|
# ? Mar 24, 2017 22:45 |
|
|
# ? May 10, 2024 12:33 |
|
is there something that's really good at doing async http requests in java because apache-commons is annoying horseshit i just gotta blast off like a million rest updates, in java this is to replace a script written with asyncio in python
|
# ? Mar 24, 2017 22:46 |
|
Maluco Marinero posted:it's concerning how much stock developers put into not understanding css. or at least, they want a framework to 'take the pain of css away', missing that most frameworks aren't nice clean abstractions of CSS and thus don't really obviate the need to actually understand CSS unless you follow their examples. a lot of the "css frameworks" like bootstrap are a blessing because they help get you some basic layouts without having to learn absurd hacks. even flexbox alone isn't good enough for general purpose layout afaik region based layouts are still experimental poo poo
|
# ? Mar 24, 2017 23:30 |
|
what im saying is people would probably in general be more open to properly learning css if it wasn't historically such a steaming pile of poo poo. idk if it's actually gotten any better (i have low hopes)
|
# ? Mar 24, 2017 23:35 |
|
i think there are 3 steps you can take that make css pretty powerful for designing user interfaces: 1. read this, take with a grain of salt: http://maintainablecss.com/chapters/introduction/ 2. use less or sass or whatever the gently caress you want preprocessor that gives you variables and so on 3. keep the flexbox cheat sheet handy when you're learning: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ honestly, I am finding react/typescript/flexbox based web apps to be a lot more productive to create than native apps at this point. comedyblissoption posted:the problem with css is it wasn't designed properly for common UI lay out concerns for graphical applications and you had to learn a bunch of hacks and "css tricks" for what should otherwise be straightforward concerns. of course people are going to get frustrated having only absurd hacks as their primitives for composing what they want. can you tell me about some case where flexbox wasn't adequate to create the user interface you were trying to create? and what do you mean by region-based layouts
|
# ? Mar 25, 2017 00:18 |
|
Share Bear posted:is there something that's really good at doing async http requests in java because apache-commons is annoying horseshit OkHttp by Square?
|
# ? Mar 25, 2017 00:40 |
|
good news: someone fixed GCC 6 so you can cross-compile to 68k amigas again hooray bad news: I can't get the C standard library to work yet lambdas!
|
# ? Mar 25, 2017 01:03 |
|
Share Bear posted:is there something that's really good at doing async http requests in java because apache-commons is annoying horseshit asynchttpclient which in turn is a wrapper around netty you might be able to use netty directly but it's low-level as gently caress; you operate at the level of objects that model individual http request and response messages that are in flight. which gets complicated if, say, you need to be able to transparently handle redirects and re-issue your requests to whatever you get redirected to. so, if transparent handling of redirects is a thing you need to worry about then use ahc, otherwise try going with netty. why are you replacing a perfectly good script written in python though? i don't like python very much but java's support for async io is loving garbage. check my post history for my rants about java's stdlib future class being abominably lovely
|
# ? Mar 25, 2017 01:42 |
|
edit: it's so bad that Netty defines its own Future interface which files off some of the worst of the following list of shittyness. and of course ahc also defines its own similar-but-not-quite-identical Future interface, because netty is an implementation detail of ahc.Sapozhnik posted:Throws the checked InterruptedException like most other multithreading things in Java. It's consistent at least, but it's still a pain.
|
# ? Mar 25, 2017 01:44 |
|
HoboMan posted:still better than that same person crashing the filesystem (and server) by spamming a 2 mb xml every second into a random folder somewhere we once had a hilarious issue where a service crashed trying to send a 17mb xml message then sent the log out via email including the message to like 50 people. it also got stuck in a loop doing this every 10 seconds so it crashed all the messaging servers. edit: if you clicked the mail in outlook with preview on it would just crash as well lol Powerful Two-Hander fucked around with this message at 01:47 on Mar 25, 2017 |
# ? Mar 25, 2017 01:45 |
|
Call the python script from Java, imo
|
# ? Mar 25, 2017 02:12 |
|
Luigi Thirty posted:bad news: I can't get the C standard library to work yet You might want to try newlib - it's a smaller standard library designed for embedded systems that builds for a number of systems including 68k ones. It's also the C library cygwin uses. https://sourceware.org/newlib/
|
# ? Mar 25, 2017 02:26 |
|
I have some sort if spatial impairment and I have to close my eyes and think really hard to remember which element is vertical and which is horizontal in a coordinate pair (and then I have to figure out what horizontal even means, man). So, luigis adventures in 3d programming make me sick to my stomach.
|
# ? Mar 25, 2017 03:02 |
|
ulmont posted:You might want to try newlib - it's a smaller standard library designed for embedded systems that builds for a number of systems including 68k ones. yeah the toolchain includes newlib, clib2 (the old amiga C standard library), and libnix, i just can't get my junk set up right for it
|
# ? Mar 25, 2017 03:33 |
|
MALE SHOEGAZE posted:I have some sort if spatial impairment and I have to close my eyes and think really hard to remember which element is vertical and which is horizontal in a coordinate pair (and then I have to figure out what horizontal even means, man). So, luigis adventures in 3d programming make me sick to my stomach. the horizon is horizontal dood
|
# ? Mar 25, 2017 04:03 |
|
Sapozhnik posted:the horizon is horizontal dood
|
# ? Mar 25, 2017 04:59 |
|
don't worry my adventures in 3d programming make me sick too. how did they figure this poo poo out way back when without yospos, snack overflow, and doing it in 486s/NeXT cubes?Sapozhnik posted:the horizon is horizontal dood +X is right +Y is up +Z is into the screen KSP is fun since there's no up in space prograde is in the direction of your velocity vector, retrograde is opposite your velocity vector. you use this axis to increase and decrease your orbital altitude normal is perpendicular to your velocity vector facing high inclination relative to the body you're orbiting, antinormal is facing low inclination. you use this axis to change your orbital inclination radial/antiradial faces toward/away the orbit's focal point parallel to the orbital plane but people don't use it for maneuvering because it's inefficient compared to the other axes anyway, i got the cross-compiler working Luigi Thirty fucked around with this message at 05:22 on Mar 25, 2017 |
# ? Mar 25, 2017 05:15 |
Luigi Thirty posted:+X is right Ewww, left-handed coordinates. Is that standard in graphics programming?
|
|
# ? Mar 25, 2017 05:18 |
|
VikingofRock posted:Ewww, left-handed coordinates. Is that standard in graphics programming? DirectX and Glide are left-handed, OpenGL is right-handed. i didn't really know what i was doing when i wrote the rasterization code so i made it left-handed
|
# ? Mar 25, 2017 05:26 |
|
Help guys Android wifi direct a poo poo. Do I need to join the wifi direct group first before I can connect to a service? I'm asking this because if seems that you can discover services before you connect to a group so what's group connection for anyway?
|
# ? Mar 25, 2017 06:27 |
|
Terrible programmer status: better than whoever did this https://twitter.com/robotlolita/status/845361020038266880
|
# ? Mar 25, 2017 06:51 |
|
Luigi Thirty posted:Terrible programmer status: better than whoever did this
|
# ? Mar 25, 2017 07:08 |
|
that taskbar? dock? texture, tho
|
# ? Mar 25, 2017 07:59 |
|
since i'm at a startup where I have a chance to influence the direction of the codebase, I've been working really hard on commenting my code and writing better unit tests. be the change you want to see in the world. it's hard but it's getting easier. my comments are getting a lot better. i've never really appreciated how much a few simple comments in a pipeline operation can break up the chunks into something much more digestible. writing good tests is and always will be harder than writing good code but i'm starting to see them as one and the same. also my excel exporter works really well. some of the better code i've written. we might open source it. DONT THREAD ON ME fucked around with this message at 17:34 on Mar 25, 2017 |
# ? Mar 25, 2017 17:31 |
assertThat(myAss).contains(dicks);
|
|
# ? Mar 25, 2017 17:43 |
my current project has me writing at least some unit tests with each feature i make. last project here the whole thing contained a single unit test (the example one when you make a new project) it's an improvement i guess, but i think the tests have only caught a single bug to date
|
|
# ? Mar 25, 2017 17:44 |
|
Wheany posted:that taskbar? dock? texture, tho every 90s operating system needs a clone of the nextstep dock the texture is bad because it's a 256-color image and the desktop is set to 16 colors because OCS
|
# ? Mar 25, 2017 18:09 |
|
Share Bear posted:is there something that's really good at doing async http requests in java because apache-commons is annoying horseshit Is there a reason you're writing your own asynch threading for what sounds like a generic batching job? I've written millions of updates (including REST calls for some POC Elasticsearch indexing) using spring integration with zero issues. IIRC they have support for asynch gateways. double edit: oh wow disregard this post, took a second read to realize you only care about the asynch http implementation TheresNoThyme fucked around with this message at 18:29 on Mar 25, 2017 |
# ? Mar 25, 2017 18:13 |
|
Luigi Thirty posted:every 90s operating system needs a clone of the nextstep dock ditch the crappy dock and use ToolsDaemon to put all your most-used software in a menu.
|
# ? Mar 25, 2017 20:05 |
|
Sweevo posted:ditch the crappy dock and use ToolsDaemon to put all your most-used software in a menu. i have the dock and ToolsDaemon the guy fixing up GCC 6.3 also got g++ working for amigas too. at last, modern language features code:
|
# ? Mar 25, 2017 20:18 |
|
if youre writing tests make sure the only things you ever mock are interfaces external to your program (e.g. file system, network calls). mocking too much and having a bunch of useless tests is a very common trap someone told me that you shouldn't even mock at all and design your program so it's easy to test everything w/o even calling out to external systems. i dont have experience w/ this at all but maybe he's right.
|
# ? Mar 25, 2017 22:27 |
|
PokeJoe posted:assertThat(myAss).contains(dicks); why are you asserting against a constant value
|
# ? Mar 25, 2017 22:53 |
|
comedyblissoption posted:if youre writing tests make sure the only things you ever mock are interfaces external to your program (e.g. file system, network calls). mocking too much and having a bunch of useless tests is a very common trap this sometimes works. all you do is write a deterministic function that does your business logic, then write a wrapper function that does I/O or network poo poo and then runs your business logic on the stuff that come from disk or network. it falls short when you conditionally need to do a fetch based on the results of another fetch, etc. because you either have to just fetch everything upfront or do some kind of sequencing in your function that directly touches I/O that pretty much turns it into a business logic function.
|
# ? Mar 25, 2017 23:21 |
|
fleshweasel posted:this sometimes works. all you do is write a deterministic function that does your business logic, then write a wrapper function that does I/O or network poo poo and then runs your business logic on the stuff that come from disk or network. it falls short when you conditionally need to do a fetch based on the results of another fetch, etc. because you either have to just fetch everything upfront or do some kind of sequencing in your function that directly touches I/O that pretty much turns it into a business logic function. rust doesnt really have a mocking library afaik and i was wondering how people do tests in rust. i guess the best you can do is passing in a test version that mocks a trait and try to limit this to the outermost shell of your program.
|
# ? Mar 25, 2017 23:24 |
|
AmigaOS 3.1 posted:Flood fill is a technique for filling an arbitrary shape with a color. sorry, flood fill overwrote the operating system
|
# ? Mar 25, 2017 23:47 |
|
fleshweasel posted:it falls short when you conditionally need to do a fetch based on the results of another fetch, etc. because you either have to just fetch everything upfront or do some kind of sequencing in your function that directly touches I/O that pretty much turns it into a business logic function. my brother have you heard the good news of our lord and savior Moh-n'ad
|
# ? Mar 26, 2017 01:42 |
|
aaag makefiles i have main.cpp, reversi.cpp, and board.cpp. main.cpp includes reversi.h. reversi.h includes board.h. when I make with this makefile, I get a linker error saying /home/Luigi/dev/reversi/src/main.cpp:40: undefined reference to `ReversiBoard::initForNewGame()' which is defined in board.h. what's wrong here? (yes, CC and CXXFLAGS is correct here) code:
|
# ? Mar 26, 2017 05:29 |
|
from Living Clojure, chapter 5 Here’s an illustration of each naming convention: this_is_snake_case this-is-kebab-case ThisIsCamelCase edit: oops, meant to post this in the lang thread. oh well
|
# ? Mar 26, 2017 06:33 |
redleader posted:why are you asserting against a constant value do you know what thread you're in
|
|
# ? Mar 26, 2017 08:12 |
|
|
# ? May 10, 2024 12:33 |
|
Ator posted:from Living Clojure, chapter 5 c'mon snake case is obviously like this: thissssssIssssssSsssnakeCasssseee~
|
# ? Mar 26, 2017 12:24 |