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
redleader
Aug 18, 2005

Engage according to operational parameters
isn't intellij like big $$$?

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006
significant whitespace is dumb as gently caress

gonadic io
Feb 16, 2011

>>=

redleader posted:

isn't intellij like big $$$?

no it is in fact $0

redleader
Aug 18, 2005

Engage according to operational parameters

gonadic io posted:

no it is in fact $0

big if true

redleader
Aug 18, 2005

Engage according to operational parameters
i've been ignoring it because i thought it was a hecka enterprisy big dollar big licence ide

gonadic io
Feb 16, 2011

>>=


i mean you can pay if you like (work pays for mine for example) but it doesn't give you much and does cost infinity dollars yes.

for rust specifically you can pay to use clion's built-in debugger instead of loving around with lldb and that's the only thing

e: maybe database tools?

gonadic io fucked around with this message at 22:05 on Sep 18, 2018

gonadic io
Feb 16, 2011

>>=
also for the purposes of playing around with code snippets and poo poo when following the book you can even just use the web code-runner (not really an ide) https://play.rust-lang.org/

mystes
May 31, 2006

Vscode also appears to work to some degree for rust if you're willing to wait 5 minutes every time you stop typing for errors to appear.

gonadic io
Feb 16, 2011

>>=

mystes posted:

Vscode also appears to work to some degree for rust if you're willing to wait 5 minutes every time you stop typing for errors to appear.

no you see it's 1.0 now

(yeah vscode is usable if you like really really really can't use intellij)

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

Spime Wrangler posted:

Thanks for this. I'm not sure I understand how it all works but it looks sweet and it's a direction to move in!

it's really simple.

here's a better example, i guess:

code:
// yay an interface
interface Yospos {
  fun bithc(): String
  val lol: String
}

// here's a concrete implementation
class YosposBithc : Yospos {
  override fun bithc() = "your os is a pos"
  override val lol = "lol, just lol"
}

// here's our wrapper that uses a delegate thing
// the constructor takes a parameter "item"
// the YosposWrapper implements Yospos, which is delegated BY "item"
class YosposWrapper(item: Yospos) : Yospos by item {
  // lets ONLY override bithc(), let it delegate everything else to the wrapped item
  override fun bithc() = "well how about that"
}

fun main(args: Array<String>) {
  val og: Yospos = YosposBithc()
  val wrapped: Yospos = YosposWrapper(i)
  println("original: ${og.bithc()}, ${og.lol}")
  println("wrapped: ${wrapped.bithc()}, ${wrapped.lol}")
}

// this outputs:
// "original: your os is a pos, lol, just lol"
// "wrapped: well how about that, lol, just lol"

gonadic io
Feb 16, 2011

>>=
so it's a subclass

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

gonadic io posted:

so it's a subclass

its implementing an interface but delegating everything automatically.

Spime Wrangler
Feb 23, 2003

Because we can.

awesome, thanks. in the 20 minutes I got to play with it today that was what seemed like the answer but your second example really helped make it clear. itís v. helpful to know that that a certain approach is indeed how youíre supposed to do a thing and not just me being captain square-peg-round-hole with some jerkís breathless medium tutorial

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 11 years!)

Spime Wrangler posted:

some jerkís breathless medium tutorial

god i hate those

MrMoo
Sep 14, 2000

cinci zoo sniper posted:

canít wait what will happen in october 2019 when eu does the one last, final dst switch and every terrible coder has to fix hardcoded time zones for an entire continent

mmm, I just know I'm going to have to chase up for timezone updates to servers for this.

Schadenboner
Aug 15, 2011

by Shine

cinci zoo sniper posted:

canít wait what will happen in october 2019 when eu does the one last, final dst switch and every terrible coder has to fix hardcoded time zones for an entire continent

Oh god, SAP is going to blow up.

:(

VikingofRock
Aug 24, 2008




today I saw how to make (& wrap) a burrito with 44 different recipes on my reddit feed and at first glance assumed it was a rust monad tutorial

Fiedler
Jun 29, 2002

I, for one, welcome our new mouse overlords.

Powerful Two-Hander posted:

followup to my dB source control quesitons, I looked at flyaway dB and thought "hmm so I have to janitor my scripts to use a specific filename and this just logs execution of specific scripts with a bit of wrapping I don't really need, this just moves the problem around" and then went and talked to a team using liquibase and they basically said "yeah so we use it and now we spend ages janitoring the liquibase xml files so we've really just moved the problem around".


so Shaggar was right: all solutions suck.

Think I'm just going to go down the low friction route which is to maintain tables as a create script then sequential patch scripts for alters so that for a total deployment you run everything but for incremental changes you run the output of a Git diff of the branch vs the master.

just use a loving sql server database project. like file > new sql server database project. right-click in solution explorer, import from database, shazam you're loving done check it in.

cinci zoo sniper
Mar 15, 2013




redleader posted:

i've been ignoring it because i thought it was a hecka enterprisy big dollar big licence ide

lol no itís not more, often less, than 30 usd per month for the enterprise editions, should you need it, with rolling permanent licence left in wake of 12 months of subscription

Maximum Leader
Dec 5, 2014
Iím still on my free student IntelliJ Ultimate but community really isnít bad if you donít need JavaScript

cinci zoo sniper
Mar 15, 2013




Maximum Leader posted:

Iím still on my free student IntelliJ Ultimate but community really isnít bad if you donít need JavaScript

same, i only have pycharm pro because i need remote python interpreter stuff. community was needs suiting for years

VostokProgram
Feb 20, 2014

hello i am a terrible test engineer trying to become a terrible programmer, is this the right thread for me

gonadic io
Feb 16, 2011

>>=

VostokProgram posted:

hello i am a terrible test engineer trying to become a terrible programmer, is this the right thread for me

most certainly

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


Fiedler posted:

just use a loving sql server database project. like file > new sql server database project. right-click in solution explorer, import from database, shazam you're loving done check it in.

yeah this is what I've already done, I was just looking for a way to avoid having butts.table.sql, butts.table.v1.sql, butts.Table.v2.sql etc to capture the initial create and then incremental alters but whatever you use it basically ends up being that so I'll embrace it

Main Paineframe
Oct 27, 2010

I'M SCARED OF SKELETONS!!!
argh, javascript canvas images are complete bullshit to work with as media files

who in the gently caress thought this would be an acceptable replacement for flash or literally any other media format

Shaggar
Apr 26, 2006

Fiedler posted:

just use a loving sql server database project. like file > new sql server database project. right-click in solution explorer, import from database, shazam you're loving done check it in.

thats fine until you go to deploy it to the next environment at which point you have to pick out which individual objects you want to migrate since your checkin will contain objects from different applications/work in progress

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 11 years!)

Main Paineframe posted:

argh, javascript canvas images are complete bullshit to work with as media files

who in the gently caress thought this would be an acceptable replacement for flash or literally any other media format

works4me for games at least

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

Main Paineframe posted:

argh, javascript canvas images are complete bullshit to work with as media files

who in the gently caress thought this would be an acceptable replacement for flash or literally any other media format

web pages are supposed to be pages

CPColin
Sep 9, 2003

Big ol' smile.
"Hmm. Browsers and phones default to this smooth scrolling thing, but wouldn't it be nice if we added a bunch of JavaScript that made everybody have to use it, even if they've turned it off on purpose?" ó Some rear end in a top hat

Shaggar
Apr 26, 2006
javascript is the worst thing

prisoner of waffles
May 8, 2007

Ah! well a-day! what evil looks
Had I from old and young!
Instead of the cross, the fishmech
About my neck was hung.

Main Paineframe posted:

argh, javascript canvas images are complete bullshit to work with as media files

who in the gently caress thought this would be an acceptable replacement for flash or literally any other media format

what are you trying to do that's giving you trouble? I assume you're talking about consuming an image that was generated by a canvas? there are definitely some APIs where it's like, "give me a URL, an <img>, or a <canvas>" where I'm pretty sure that option 3 works more jankily.

like one escape hatch is to create a blob URL for your image and then use that

this guy: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob

blob URLs: a way to take javascript-generated content and get your browser to use it in a sane fashion

MrMoo
Sep 14, 2000

Probably data URLs? idk, the nomenclature is quite specific otherwise you hit multiple different possibilities.

Blobs are JavaScript's binary values, so you can have a data URL, convert to a Blob using fetch(), convert that to an ImageBitmap using CreateImageBitmap(), then paint that to a canvas in an async chain.

brap
Aug 23, 2004

Grimey Drawer

CRIP EATIN BREAD posted:

its implementing an interface but delegating everything automatically.

yep, itís like an auto-adapter. presumably(?) you can use ďbyĒ for more than one interface.

Main Paineframe
Oct 27, 2010

I'M SCARED OF SKELETONS!!!

prisoner of waffles posted:

what are you trying to do that's giving you trouble? I assume you're talking about consuming an image that was generated by a canvas? there are definitely some APIs where it's like, "give me a URL, an <img>, or a <canvas>" where I'm pretty sure that option 3 works more jankily.

like one escape hatch is to create a blob URL for your image and then use that

this guy: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob

blob URLs: a way to take javascript-generated content and get your browser to use it in a sane fashion

1) imagine using canvas stuff as a replacement for Flash, by coding interactive or animated "images" in javascript

2) now imagine a webpage that pulls in arbitrary user-supplied media of any type via AJAX and then displays it on the page. this includes animated or interactive media, like Flash and various obscure plugin poo poo

3) now remember that browsers are killing plugins and even Flash is on the chopping block, and thus that page was in need of the ability to support "modern, web-compliant" media formats that can accomplish the same things Flash does but with native browser support

combine those three things and you have a roadmap to the circle of hell i'm currently in

the worst part is that i probably could have stopped it if i'd pushed back much harder and much earlier, but i took way too long to realize just how bad it was going to be

Bloody
Mar 3, 2013

cinci zoo sniper posted:

lol no itís not more, often less, than 30 usd per month for the enterprise editions, should you need it, with rolling permanent licence left in wake of 12 months of subscription

yeah i had a personal license of everything of theirs for a while and it was very reasonably priced

prisoner of waffles
May 8, 2007

Ah! well a-day! what evil looks
Had I from old and young!
Instead of the cross, the fishmech
About my neck was hung.

Main Paineframe posted:

1) imagine using canvas stuff as a replacement for Flash, by coding interactive or animated "images" in javascript

2) now imagine a webpage that pulls in arbitrary user-supplied media of any type via AJAX and then displays it on the page. this includes animated or interactive media, like Flash and various obscure plugin poo poo

3) now remember that browsers are killing plugins and even Flash is on the chopping block, and thus that page was in need of the ability to support "modern, web-compliant" media formats that can accomplish the same things Flash does but with native browser support

combine those three things and you have a roadmap to the circle of hell i'm currently in

the worst part is that i probably could have stopped it if i'd pushed back much harder and much earlier, but i took way too long to realize just how bad it was going to be

I'm sure the actual requirements for your task were way more concrete than your quick sketch description but yeah, push push push back hard

prisoner of waffles
May 8, 2007

Ah! well a-day! what evil looks
Had I from old and young!
Instead of the cross, the fishmech
About my neck was hung.
did u know? canvas can get tainted https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#Security_and_tainted_canvases

DELETE CASCADE
Oct 25, 2017

i haven't washed my penis since i jerked it to a phtotograph of george w. bush in 2003
my taint is a canvas you can paint on with your tongue

prisoner of waffles
May 8, 2007

Ah! well a-day! what evil looks
Had I from old and young!
Instead of the cross, the fishmech
About my neck was hung.

DELETE CASCADE posted:

my taint is a canvas you can paint on with your tongue

wish I could document.removeChild(you)

Adbot
ADBOT LOVES YOU

cinci zoo sniper
Mar 15, 2013




Bloody posted:

yeah i had a personal license of everything of theirs for a while and it was very reasonably priced

same, subscribed to full package and itís 30 eur, so 30 dollars+vat

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