목록전체 글 (83)
종우의 컴퓨터 공간

# 개요 플러터에서 FutureBuilder는 비동기(async) 작업을 수행하고 결과를 화면에 표시하는데 사용되는 위젯 중 하나입니다. 이는 일반적으로 Future 객체가 완료될 때까지 기다리고, 그 결과에 따라 UI를 업데이트 할 때 유용합니다. FutureBuilder는 주로 네트워크 호출 또는 데이터베이스 쿼리와 같은 비동기 작업을 처리할 때 활용됩니다. # 매개변수 future: 비동기 작업을 나타내는 Future 객체 builder: future가 완료된 후에 UI를 빌드하는데 사용되는 콜백 함수 initialData: (선택 사항) future가 아직 완료되지 않았을 때 사용할 초기 데이터 # 예제 이 코드에서 fetchData 함수는 2초 후에 완료되는 가상의 비동기 작업을 수행합니다. F..

다트 언어에서 readAsStringSync 메서드는 파일을 동기적으로 읽어서 문자열로 반환하는 메서드입니다. 이 메서드는 파일에서 데이터를 읽어오는데 사용됩니다. 다음은 readAsStringSync 메서드의 기본적인 사용 방법입니다. 이 코드에서 File 클래스는 파일을 다루는 데 사용되며, readAsStringSync 메서드는 해당 파일을 동기적으로 읽어서 문자열로 반환합니다. 파일이 존재하지 않거나 읽기 권한이 없는 경우에 예외(FileSystemException)가 발생할 수 있으므로 try-catch 블록을 사용하여 오류를 처리합니다. 물론, 비동기적으로 파일을 읽는 다른 메서드들도 존재합니다. readAsString과 같은 비동기 메서드는 Future을 반환하며, 해당 작업이 완료될 때까지..
1. Listing all buckets - aws s3 ls 2. Creating a bucket in AWS CLI - aws s3api create-bucket --bucket jongwoo-presigned-test-bucket - It is also possible to set the region of our choice but it is not necessary since the bucket is in global region. 3. Uploading a file to the bucket - aws s3api put-object --bucket jongwoo-presigned-test-bucket --key test-presigned.txt --body /home/jongwoo/text.txt..

Go is not a OOP language like Java or Python. To use it as an OOP language, we can use this design pattern of what is called custom type. Custom type can be created by using one of the existing primitive data types such as string, integer, or slice. It is possible to use receiver function to add functionality to it which only can be accessible through using it. (고는 자바나 파이썬처럼 객체지향 언어가 아니다. 하지만 커스..
Array: fixed length list of things every element in an array must be of the same type Slice: another type of array that can grow or shrink every element in a slice must be of the same type
Types of packages: executable: generates a file that we can run e.g. package main ("main: is special. must have a func called "main") reusable: code used as "helpers" a good place to put reusable logic e.g. package (defines a package that can be used as a dependency; helper code) import statement: it is used to gain access to another package inside of the one that we are authoring it can be eith..
go build: compiles a bunch of go source code files go run: compiles and executes one or two files go fmt: formats all the code in each file in the current directory go install: compiles and "installs" a package go get: downloads in raw source code of someone else's package go test: runs any tests associated with the current project